Class Message.ReceivedStatus
-
- All Implemented Interfaces:
public class Message.ReceivedStatus
The status of the received message.
It is a bitwise-marked enumeration that supports bitwise operations.
-
-
Field Summary
Fields Modifier and Type Field Description public int
flag
public boolean
isRead
public boolean
isListened
public boolean
isDownload
public boolean
isRetrieved
public boolean
isMultipleReceive
-
Constructor Summary
Constructors Constructor Description Message.ReceivedStatus(int flag)
Constructor.
-
Method Summary
Modifier and Type Method Description int
getFlag()
Retrieves the status identifier. boolean
isRead()
Retrieves the read status. boolean
isListened()
Retrieves whether the message has been listened to. boolean
isDownload()
Retrieves the download status of the file. boolean
isRetrieved()
Checks whether it has already been charged. boolean
isMultipleReceive()
Indicates whether the message has been received by other devices simultaneously. void
setRead()
Sets the read status. void
setListened()
Specifies whether the status has been listened to. void
setDownload()
Sets the status of whether the file has been downloaded. void
setRetrieved()
Mark as received. void
setMultipleReceive()
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.
-
-
-
-