Class Message.ReceivedStatus
-
- All Implemented Interfaces:
public class Message.ReceivedStatusThe status of the received message.
It is a bitwise-marked enumeration that supports bitwise operations.
-
-
Field Summary
Fields Modifier and Type Field Description public intflagpublic booleanisReadpublic booleanisListenedpublic booleanisDownloadpublic booleanisRetrievedpublic booleanisMultipleReceive
-
Constructor Summary
Constructors Constructor Description Message.ReceivedStatus(int flag)Constructor.
-
Method Summary
Modifier and Type Method Description intgetFlag()Retrieves the status identifier. booleanisRead()Retrieves the read status. booleanisListened()Retrieves whether the message has been listened to. booleanisDownload()Retrieves the download status of the file. booleanisRetrieved()Checks whether it has already been charged. booleanisMultipleReceive()Indicates whether the message has been received by other devices simultaneously. voidsetRead()Sets the read status. voidsetListened()Specifies whether the status has been listened to. voidsetDownload()Sets the status of whether the file has been downloaded. voidsetRetrieved()Mark as received. voidsetMultipleReceive()Set to indicate that the message has been received by another device. -
-
Method Detail
-
getFlag
int getFlag()
Retrieves the status identifier.
- Returns:
The status identifier.
-
isRead
boolean isRead()
Retrieves the read status.
- Returns:
Indicates whether the message has been read.
-
isListened
boolean isListened()
Retrieves whether the message has been listened to.
- Returns:
Indicates whether the message has been listened to.
-
isDownload
boolean isDownload()
Retrieves the download status of the file.
- Returns:
Indicates whether the file has been downloaded.
-
isRetrieved
boolean isRetrieved()
Checks whether it has already been charged.
- Returns:
Indicates whether it has already been charged.
-
isMultipleReceive
boolean isMultipleReceive()
Indicates whether the message has been received by other devices simultaneously.
- Returns:
The status indicating whether the message has been simultaneously received.
-
setRead
void setRead()
Sets the read status.
-
setListened
void setListened()
Specifies whether the status has been listened to.
-
setDownload
void setDownload()
Sets the status of whether the file has been downloaded.
-
setRetrieved
void setRetrieved()
Mark as received.
-
setMultipleReceive
void setMultipleReceive()
Set to indicate that the message has been received by another device.
-
-
-
-