Class RecallNotificationMessage
-
- All Implemented Interfaces:
public class RecallNotificationMessage
Message 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 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()
Get the content of the recalled message void
setRecallContent(String recallContent)
Sets the content for recalled messages long
getRecallActionTime()
Get the send time of the recalled message void
setRecallActionTime(long recallActionTime)
Sets the send time of the recalled message Array<byte>
encode()
Serializes the data that needs to be transmitted. void
writeToParcel(Parcel dest, int flags)
int
describeContents()
String
getOperatorId()
Retrieves the user ID of the user who initiated the message recall. long
getRecallTime()
Get the recall time in milliseconds String
getOriginalObjectName()
Retrieves the message type name of the original message. void
setOriginalObjectName(String originalObjectName)
boolean
isAdmin()
Indicates whether the operation is performed by an administrator boolean
isDelete()
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
-
-
-
-