Package io.rong.message
Class RecallCommandMessage
-
- All Implemented Interfaces:
public class RecallCommandMessage
撤回命令消息类
撤回命令消息类,需要撤回消息的时候发送的信令消息,此消息不存储不计数。
-
-
Field Summary
Fields Modifier and Type Field Description public String
messageUId
public String
targetId
public int
conversationType
public long
sentTime
public String
channelId
public boolean
isAdmin
public boolean
isDelete
public 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 String
getMessageUId()
获取撤回消息的 uid void
setMessageUId(String messageUId)
设置撤回消息的 uid String
getTargetId()
获取目标会话 id void
setTargetId(String targetId)
设置目标会话 id int
getConversationType()
获取会话类型 void
setConversationType(int conversationType)
设置会话类型 long
getSentTime()
获取消息发送时间 void
setSentTime(long sentTime)
设置消息发送时间 String
getChannelId()
void
setChannelId(String channelId)
boolean
isAdmin()
是否是管理员操作 void
setAdmin(boolean admin)
设置是否是管理员操作 boolean
isDelete()
是否删除 void
setDelete(boolean delete)
设置消息是否删除 Array<byte>
encode()
序列化需要传输的数据。 void
writeToParcel(Parcel dest, int flags)
int
describeContents()
-
-
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()
-
-
-
-