IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMReceiveMessageOptInfo

Public Member Functions

int getStartHour ()
 
int getStartMinute ()
 
int getStartSecond ()
 
long getStartTimeStamp ()
 
long getDuration ()
 
int getAllReceiveMessageOpt ()
 
int getC2CReceiveMessageOpt ()
 
String getUserID ()
 

Member Function Documentation

◆ getStartHour()

int getStartHour ( )
inline

Get the hour field of the start time for do not disturb function

◆ getStartMinute()

int getStartMinute ( )
inline

Get the minute field of the start time for do not disturb function

◆ getStartSecond()

int getStartSecond ( )
inline

Get the second field of the start time for do not disturb function

◆ getStartTimeStamp()

long getStartTimeStamp ( )
inline

Get the start time for do not disturb function in UTC format.

Attention
  • If the returned startTimeStamp is greater than 0, you can use it directly.
  • If the returned startTimeStamp is equal to 0, you need to call getStartHour(), getStartMinute(), and getStartSecond() to get the relative start time of Do Not Disturb.

◆ getDuration()

long getDuration ( )
inline

Get duration for do not disturb function, unit: second

◆ getAllReceiveMessageOpt()

int getAllReceiveMessageOpt ( )
inline

Get all Message receiving option, V2TIMMessage.V2TIM_RECEIVE_NOT_NOTIFY_MESSAGE can be used for Do Not Disturb function

◆ getC2CReceiveMessageOpt()

int getC2CReceiveMessageOpt ( )
inline

Get the user message receiving option

◆ getUserID()

String getUserID ( )
inline

Get the userId of the message receiving option