Class RecallCommandMessage
-
- All Implemented Interfaces:
public class RecallCommandMessageRecall Command Message Class
The recall command message class is used to send signaling messages when recalling a message. This message is neither stored nor counted.
-
-
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()Retrieves the UID of the recalled message voidsetMessageUId(String messageUId)Sets the UID of the message to be recalled StringgetTargetId()Get the target conversation ID voidsetTargetId(String targetId)Sets the target conversation ID intgetConversationType()Get the conversation type voidsetConversationType(int conversationType)Set the conversation type longgetSentTime()Get the message sending time voidsetSentTime(long sentTime)Set the message sending time StringgetChannelId()voidsetChannelId(String channelId)booleanisAdmin()Indicates whether it is an admin operation voidsetAdmin(boolean admin)Sets whether the operation is performed by an admin booleanisDelete()Whether to delete voidsetDelete(boolean delete)Sets whether the message should be deleted Array<byte>encode()Serializes the data to be transmitted. 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()
Retrieves the UID of the recalled message
- Returns:
The UID of the recalled message
-
setMessageUId
void setMessageUId(String messageUId)
Sets the UID of the message to be recalled
- Parameters:
messageUId- The UID of the message to be recalled
-
getTargetId
String getTargetId()
Get the target conversation ID
- Returns:
The target conversation ID
-
setTargetId
void setTargetId(String targetId)
Sets the target conversation ID
- Parameters:
targetId- The target conversation ID
-
getConversationType
int getConversationType()
Get the conversation type
- Returns:
The conversation type
-
setConversationType
void setConversationType(int conversationType)
Set the conversation type
- Parameters:
conversationType- Specifies the conversation type
-
getSentTime
long getSentTime()
Get the message sending time
- Returns:
The message sending time
-
setSentTime
void setSentTime(long sentTime)
Set the message sending time
- Parameters:
sentTime- The message sending time
-
getChannelId
String getChannelId()
-
setChannelId
void setChannelId(String channelId)
-
isAdmin
boolean isAdmin()
Indicates whether it is an admin operation
- Returns:
Indicates whether it is an admin operation
-
setAdmin
void setAdmin(boolean admin)
Sets whether the operation is performed by an admin
- Parameters:
admin- Indicates whether the operation is performed by an admin
-
isDelete
boolean isDelete()
Whether to delete
- Returns:
Indicates whether to delete
-
setDelete
void setDelete(boolean delete)
Sets whether the message should be deleted
- Parameters:
delete- Indicates whether to delete the message (trueto delete,falseto keep)
-
encode
Array<byte> encode()
Serializes the data to be transmitted.
- Returns:
The serialized data to be transmitted.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
-
-
-