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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Message.ReceivedStatus

        Message.ReceivedStatus(int flag)
        Constructor.
        Parameters:
        flag - Status identifier.
    • 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.

      • setMultipleReceive

         void setMultipleReceive()

        Set to indicate that the message has been received by another device.