Class RecallNotificationMessage
-
- All Implemented Interfaces:
public class RecallNotificationMessageMessage Recall Notification Class
The message recall notification class is used to display notifications on the UI when a user recalls a message or receives a recall signal message.
-
-
Field Summary
Fields Modifier and Type Field Description public MessageContentoriginalMessageContentpublic StringrecallContentpublic longrecallActionTimepublic 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 MessageContentgetOriginalMessageContent()voidsetOriginalMessageContent(MessageContent originalMessageContent)StringgetRecallContent()Get the content of the recalled message voidsetRecallContent(String recallContent)Sets the content for recalled messages longgetRecallActionTime()Get the send time of the recalled message voidsetRecallActionTime(long recallActionTime)Sets the send time of the recalled message Array<byte>encode()Serializes the data that needs to be transmitted. voidwriteToParcel(Parcel dest, int flags)intdescribeContents()StringgetOperatorId()Retrieves the user ID of the user who initiated the message recall. longgetRecallTime()Get the recall time in milliseconds StringgetOriginalObjectName()Retrieves the message type name of the original message. voidsetOriginalObjectName(String originalObjectName)booleanisAdmin()Indicates whether the operation is performed by an administrator booleanisDelete()Whether to delete -
-
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()
Get the content of the recalled message
- Returns:
The content of the recalled message
-
setRecallContent
void setRecallContent(String recallContent)
Sets the content for recalled messages
-
getRecallActionTime
long getRecallActionTime()
Get the send time of the recalled message
- Returns:
Specifies the send time of the recalled message
-
setRecallActionTime
void setRecallActionTime(long recallActionTime)
Sets the send time of the recalled message
- Parameters:
recallActionTime- The send time of the recalled message
-
encode
Array<byte> encode()
Serializes the data that needs to be transmitted.
- Returns:
The serialized data to be transmitted.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
getOperatorId
String getOperatorId()
Retrieves the user ID of the user who initiated the message recall.
- Returns:
The user ID of the user who initiated the message recall.
-
getRecallTime
long getRecallTime()
Get the recall time in milliseconds
- Returns:
The recall time in milliseconds
-
getOriginalObjectName
String getOriginalObjectName()
Retrieves the message type name of the original message.
- Returns:
The message type name of the original message.
-
setOriginalObjectName
void setOriginalObjectName(String originalObjectName)
-
isAdmin
boolean isAdmin()
Indicates whether the operation is performed by an administrator
- Returns:
Indicates whether the operation is performed by an administrator
-
isDelete
boolean isDelete()
Whether to delete
- Returns:
Indicates whether to delete
-
-
-
-