Class TextMessage

  • All Implemented Interfaces:

    
    public class TextMessage
    
                        

    Text Message

    Text message, which will be stored and counted as unread messages.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public String content
      public final static Creator<TextMessage> CREATOR
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getContent() Retrieves the content of the text message.
      void setContent(String content) Set the content of the text message.
      static TextMessage obtain(String text)
      Array<byte> encode() Serializes the local message object into message data.
      void writeToParcel(Parcel dest, int flags) Writes the class's data into the provided Parcel.
      int describeContents() Describes the type of special objects included in the arrangement information of the Parcelable object.
      List<String> getSearchableWord()
      String toString()
      • Methods inherited from class java.lang.Object

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

      • TextMessage

        TextMessage(String content)
        Constructor.
        Parameters:
        content - The content of the text message.
      • TextMessage

        TextMessage(Array<byte> data)
      • TextMessage

        TextMessage(Parcel in)
        Constructor.
        Parameters:
        in - The Parcel passed during initialization.
    • Method Detail

      • getContent

         String getContent()

        Retrieves the content of the text message.

        Returns:

        The content of the text message.

      • setContent

         void setContent(String content)

        Set the content of the text message.

        Parameters:
        content - The content of the text message.
      • encode

         Array<byte> encode()

        Serializes the local message object into message data.

        Returns:

        The message data.

      • writeToParcel

         void writeToParcel(Parcel dest, int flags)

        Writes the class's data into the provided Parcel.

        Parameters:
        dest - The Parcel into which the object is written.
        flags - Additional flags about how the object should be written, can be 0 or PARCELABLE_WRITE_RETURN_VALUE.
      • describeContents

         int describeContents()

        Describes the type of special objects included in the arrangement information of the Parcelable object.

        Returns:

        A flag indicating the arrangement of the special object type collection of the Parcelable object.