Package io.rong.message
Class RecallCommandMessage
-
- All Implemented Interfaces:
public class RecallCommandMessage撤回命令消息类
撤回命令消息类,需要撤回消息的时候发送的信令消息,此消息不存储不计数。
-
-
Field Summary
Fields Modifier and Type Field Description public StringmessageUIdpublic StringtargetIdpublic intconversationTypepublic longsentTimepublic StringchannelIdpublic booleanisAdminpublic booleanisDeletepublic final static Creator<RecallCommandMessage>CREATOR
-
Constructor Summary
Constructors Constructor Description RecallCommandMessage(String UId)RecallCommandMessage(String UId, String ex)RecallCommandMessage(Array<byte> data)RecallCommandMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description StringgetMessageUId()获取撤回消息的 uid voidsetMessageUId(String messageUId)设置撤回消息的 uid StringgetTargetId()获取目标会话 id voidsetTargetId(String targetId)设置目标会话 id intgetConversationType()获取会话类型 voidsetConversationType(int conversationType)设置会话类型 longgetSentTime()获取消息发送时间 voidsetSentTime(long sentTime)设置消息发送时间 StringgetChannelId()voidsetChannelId(String channelId)booleanisAdmin()是否是管理员操作 voidsetAdmin(boolean admin)设置是否是管理员操作 booleanisDelete()是否删除 voidsetDelete(boolean delete)设置消息是否删除 Array<byte>encode()序列化需要传输的数据。 voidwriteToParcel(Parcel dest, int flags)intdescribeContents()-
-
Constructor Detail
-
RecallCommandMessage
RecallCommandMessage(String UId)
-
RecallCommandMessage
RecallCommandMessage(String UId, String ex)
-
RecallCommandMessage
RecallCommandMessage(Array<byte> data)
-
RecallCommandMessage
RecallCommandMessage(Parcel in)
-
-
Method Detail
-
getMessageUId
String getMessageUId()
获取撤回消息的 uid
- Returns:
撤回消息的 uid
-
setMessageUId
void setMessageUId(String messageUId)
设置撤回消息的 uid
- Parameters:
messageUId- 撤回消息的 uid
-
getTargetId
String getTargetId()
获取目标会话 id
- Returns:
目标会话 id
-
setTargetId
void setTargetId(String targetId)
设置目标会话 id
- Parameters:
targetId- 目标会话 id
-
getConversationType
int getConversationType()
获取会话类型
- Returns:
会话类型
-
setConversationType
void setConversationType(int conversationType)
设置会话类型
- Parameters:
conversationType- 会话类型
-
getSentTime
long getSentTime()
获取消息发送时间
- Returns:
消息发送时间
-
setSentTime
void setSentTime(long sentTime)
设置消息发送时间
- Parameters:
sentTime- 消息发送时间
-
getChannelId
String getChannelId()
-
setChannelId
void setChannelId(String channelId)
-
isAdmin
boolean isAdmin()
是否是管理员操作
- Returns:
是否是管理员操作
-
setAdmin
void setAdmin(boolean admin)
设置是否是管理员操作
- Parameters:
admin- 是否是管理员操作
-
isDelete
boolean isDelete()
是否删除
- Returns:
是否删除
-
setDelete
void setDelete(boolean delete)
设置消息是否删除
- Parameters:
delete- 是否删除(true删除,false不删除)
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-