IMSDK
即时通信 IM 提供全球接入、单聊、群聊、消息推送、资料关系链托管、帐号鉴权等全方位解决方案,并提供完备的 App 接入、后台管理接口。
Message

Public 成员函数

String getMsgID ()
 
int getMessageType ()
 
void setMessageType (int messageType)
 
long getTimestamp ()
 
long getClientTime ()
 
void setClientTime (long clientTime)
 
String getSenderUserID ()
 
void setSenderUserID (String senderUserID)
 
String getReceiverUserID ()
 
void setReceiverUserID (String receiverUserID)
 
String getNickName ()
 
String getFriendRemark ()
 
String getFaceUrl ()
 
String getNameCard ()
 
String getGroupID ()
 
void setGroupID (String groupID)
 
boolean isForward ()
 
void setForward (boolean forward)
 
boolean isMessageSender ()
 
void setIsMessageSender (boolean isMessageSender)
 
boolean isSelfRead ()
 
boolean isPeerRead ()
 
long getRandom ()
 
long getSeq ()
 
int getLifeTime ()
 
void setLifeTime (int lifeTime)
 
int getMessageStatus ()
 
void setMessageStatus (int status)
 
int getPriority ()
 
void setPriority (int priority)
 
MessageOfflinePushInfo getOfflinePushInfo ()
 
void setOfflinePushInfo (MessageOfflinePushInfo offlinePushInfo)
 
int getLocalCustomNumber ()
 
void setLocalCustomNumber (int customNumberInfo)
 
String getLocalCustomString ()
 
void setLocalCustomString (String customStringInfo)
 
String getCloudCustomString ()
 
void setCloudCustomString (String cloudCustomData)
 
void addElement (MessageBaseElement messageBaseElement)
 
List< MessageBaseElementgetMessageBaseElements ()
 
int getPlatform ()
 
void setPlatform (int platform)
 
void setMessageBaseElements (List< MessageBaseElement > messageBaseElements)
 
void setMessageGroupAtInfoList (List< MessageAtInfo > messageGroupAtInfoList)
 
List< MessageAtInfogetMessageGroupAtInfoList ()
 
MessageKey getMessageKey ()
 
void update (Message message)
 

静态 Public 属性

static int MESSAGE_TYPE_UNKNOWN = 0x0
 
static int MESSAGE_TYPE_C2C = 0x1
 
static int MESSAGE_TYPE_GROUP = 0x2
 
static int MESSAGE_TYPE_MULTI_SYNC = 0x3
 
static int PLATFORM_OTHER = 0
 
static int PLATFORM_WINDOWS = 1
 
static int PLATFORM_ANDROID = 2
 
static int PLATFORM_IOS = 3
 
static int PLATFORM_MAC = 4
 
static int PLATFORM_SIMULATOR = 5
 
static final int V2TIM_MSG_STATUS_SENDING = 1
 
static final int V2TIM_MSG_STATUS_SUCCESS = 2
 
static final int V2TIM_MSG_STATUS_SEND_FAILED = 3
 
static final int V2TIM_MSG_STATUS_DELETED = 4
 
static final int V2TIM_MSG_STATUS_LOCAL_IMPORTED = 5
 
static final int V2TIM_MSG_STATUS_REVOKED = 6
 

成员函数说明

◆ getMsgID()

String getMsgID ( )
inline

◆ getMessageType()

int getMessageType ( )
inline

◆ setMessageType()

void setMessageType ( int  messageType)
inline

◆ getTimestamp()

long getTimestamp ( )
inline

◆ getClientTime()

long getClientTime ( )
inline

◆ setClientTime()

void setClientTime ( long  clientTime)
inline

◆ getSenderUserID()

String getSenderUserID ( )
inline

◆ setSenderUserID()

void setSenderUserID ( String  senderUserID)
inline

◆ getReceiverUserID()

String getReceiverUserID ( )
inline

◆ setReceiverUserID()

void setReceiverUserID ( String  receiverUserID)
inline

◆ getNickName()

String getNickName ( )
inline

◆ getFriendRemark()

String getFriendRemark ( )
inline

◆ getFaceUrl()

String getFaceUrl ( )
inline

◆ getNameCard()

String getNameCard ( )
inline

◆ getGroupID()

String getGroupID ( )
inline

◆ setGroupID()

void setGroupID ( String  groupID)
inline

◆ isForward()

boolean isForward ( )
inline

◆ setForward()

void setForward ( boolean  forward)
inline

◆ isMessageSender()

boolean isMessageSender ( )
inline

◆ setIsMessageSender()

void setIsMessageSender ( boolean  isMessageSender)
inline

◆ isSelfRead()

boolean isSelfRead ( )
inline

◆ isPeerRead()

boolean isPeerRead ( )
inline

◆ getRandom()

long getRandom ( )
inline

◆ getSeq()

long getSeq ( )
inline

◆ getLifeTime()

int getLifeTime ( )
inline

◆ setLifeTime()

void setLifeTime ( int  lifeTime)
inline

◆ getMessageStatus()

int getMessageStatus ( )
inline

◆ setMessageStatus()

void setMessageStatus ( int  status)
inline

◆ getPriority()

int getPriority ( )
inline

◆ setPriority()

void setPriority ( int  priority)
inline

◆ getOfflinePushInfo()

MessageOfflinePushInfo getOfflinePushInfo ( )
inline

◆ setOfflinePushInfo()

void setOfflinePushInfo ( MessageOfflinePushInfo  offlinePushInfo)
inline

◆ getLocalCustomNumber()

int getLocalCustomNumber ( )
inline

◆ setLocalCustomNumber()

void setLocalCustomNumber ( int  customNumberInfo)
inline

◆ getLocalCustomString()

String getLocalCustomString ( )
inline

◆ setLocalCustomString()

void setLocalCustomString ( String  customStringInfo)
inline

◆ getCloudCustomString()

String getCloudCustomString ( )
inline

◆ setCloudCustomString()

void setCloudCustomString ( String  cloudCustomData)
inline

◆ addElement()

void addElement ( MessageBaseElement  messageBaseElement)
inline

◆ getMessageBaseElements()

List<MessageBaseElement> getMessageBaseElements ( )
inline

◆ getPlatform()

int getPlatform ( )
inline

◆ setPlatform()

void setPlatform ( int  platform)
inline

◆ setMessageBaseElements()

void setMessageBaseElements ( List< MessageBaseElement messageBaseElements)
inline

◆ addMessageGroupAtInfo()

void addMessageGroupAtInfo ( MessageAtInfo  messageAtInfo)
inlineprotected

◆ setMessageGroupAtInfoList()

void setMessageGroupAtInfoList ( List< MessageAtInfo messageGroupAtInfoList)
inline

◆ getMessageGroupAtInfoList()

List<MessageAtInfo> getMessageGroupAtInfoList ( )
inline

◆ getMessageKey()

MessageKey getMessageKey ( )
inline

◆ update()

void update ( Message  message)
inline

结构体成员变量说明

◆ MESSAGE_TYPE_UNKNOWN

int MESSAGE_TYPE_UNKNOWN = 0x0
static

◆ MESSAGE_TYPE_C2C

int MESSAGE_TYPE_C2C = 0x1
static

◆ MESSAGE_TYPE_GROUP

int MESSAGE_TYPE_GROUP = 0x2
static

◆ MESSAGE_TYPE_MULTI_SYNC

int MESSAGE_TYPE_MULTI_SYNC = 0x3
static

◆ PLATFORM_OTHER

int PLATFORM_OTHER = 0
static

◆ PLATFORM_WINDOWS

int PLATFORM_WINDOWS = 1
static

◆ PLATFORM_ANDROID

int PLATFORM_ANDROID = 2
static

◆ PLATFORM_IOS

int PLATFORM_IOS = 3
static

◆ PLATFORM_MAC

int PLATFORM_MAC = 4
static

◆ PLATFORM_SIMULATOR

int PLATFORM_SIMULATOR = 5
static

◆ V2TIM_MSG_STATUS_SENDING

final int V2TIM_MSG_STATUS_SENDING = 1
static

◆ V2TIM_MSG_STATUS_SUCCESS

final int V2TIM_MSG_STATUS_SUCCESS = 2
static

◆ V2TIM_MSG_STATUS_SEND_FAILED

final int V2TIM_MSG_STATUS_SEND_FAILED = 3
static

◆ V2TIM_MSG_STATUS_DELETED

final int V2TIM_MSG_STATUS_DELETED = 4
static

◆ V2TIM_MSG_STATUS_LOCAL_IMPORTED

final int V2TIM_MSG_STATUS_LOCAL_IMPORTED = 5
static

◆ V2TIM_MSG_STATUS_REVOKED

final int V2TIM_MSG_STATUS_REVOKED = 6
static