Package io.rong.message
Class RecallNotificationMessage
-
- All Implemented Interfaces:
public class RecallNotificationMessage
撤回通知消息类
撤回通知消息类,当用户撤回消息或者收到一条撤回信令消息时,需要根据此通知消息在界面上进行展示。
-
-
Field Summary
Fields Modifier and Type Field Description public MessageContent
originalMessageContent
public String
recallContent
public long
recallActionTime
public final static Creator<RecallNotificationMessage>
CREATOR
-
Constructor Summary
Constructors Constructor Description RecallNotificationMessage(String operatorId, long recallTime, String originalObjectName, boolean isAdmin, boolean isDelete)
RecallNotificationMessage(String operatorId, long recallTime, String originalObjectName, boolean isAdmin, boolean isDelete, String recallContent, long recallActionTime)
RecallNotificationMessage(Array<byte> data)
RecallNotificationMessage(Parcel in)
-
Method Summary
Modifier and Type Method Description MessageContent
getOriginalMessageContent()
void
setOriginalMessageContent(MessageContent originalMessageContent)
String
getRecallContent()
获取撤回消息的内容 void
setRecallContent(String recallContent)
设置撤回消息的内容 long
getRecallActionTime()
获取撤回消息的发送时间 void
setRecallActionTime(long recallActionTime)
设置撤回消息的发送时间 String
getOperatorId()
获取发起撤回消息的用户 id long
getRecallTime()
获取撤回的时间(毫秒) String
getOriginalObjectName()
获取原消息的消息类型名 void
setOriginalObjectName(String originalObjectName)
boolean
isAdmin()
是否是管理员操作 boolean
isDelete()
是否删除 Array<byte>
encode()
序列化需要传输的数据。 int
describeContents()
void
writeToParcel(Parcel dest, int flags)
-
-
Constructor Detail
-
RecallNotificationMessage
RecallNotificationMessage(String operatorId, long recallTime, String originalObjectName, boolean isAdmin, boolean isDelete)
-
RecallNotificationMessage
RecallNotificationMessage(String operatorId, long recallTime, String originalObjectName, boolean isAdmin, boolean isDelete, String recallContent, long recallActionTime)
-
RecallNotificationMessage
RecallNotificationMessage(Array<byte> data)
-
RecallNotificationMessage
RecallNotificationMessage(Parcel in)
-
-
Method Detail
-
getOriginalMessageContent
MessageContent getOriginalMessageContent()
-
setOriginalMessageContent
void setOriginalMessageContent(MessageContent originalMessageContent)
-
getRecallContent
String getRecallContent()
获取撤回消息的内容
- Returns:
撤回消息的内容
-
setRecallContent
void setRecallContent(String recallContent)
设置撤回消息的内容
-
getRecallActionTime
long getRecallActionTime()
获取撤回消息的发送时间
- Returns:
撤回消息的发送时间
-
setRecallActionTime
void setRecallActionTime(long recallActionTime)
设置撤回消息的发送时间
- Parameters:
recallActionTime
- 撤回消息的发送时间
-
getOperatorId
String getOperatorId()
获取发起撤回消息的用户 id
- Returns:
发起撤回消息的用户 id
-
getRecallTime
long getRecallTime()
获取撤回的时间(毫秒)
- Returns:
撤回的时间(毫秒)
-
getOriginalObjectName
String getOriginalObjectName()
获取原消息的消息类型名
- Returns:
原消息的消息类型名
-
setOriginalObjectName
void setOriginalObjectName(String originalObjectName)
-
isAdmin
boolean isAdmin()
是否是管理员操作
- Returns:
是否是管理员操作
-
isDelete
boolean isDelete()
是否删除
- Returns:
是否删除
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-