Class RTCMessageContent

  • All Implemented Interfaces:

    
    public abstract class RTCMessageContent
    
                        

    Base class for RTC message content.

    Custom message types in the RTC module should extend this class. This class is for internal RTC module use only. External developers should not call this directly.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ByteArray encode() Encodes the message content into a byte array.
      abstract Unit decode(ByteArray data) Decodes the message content from a byte array.
      abstract String getObjectName() Gets the message type identifier (object name).
      • Methods inherited from class java.lang.Object

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

      • RTCMessageContent

        RTCMessageContent()
    • Method Detail

      • encode

         abstract ByteArray encode()

        Encodes the message content into a byte array.

        Returns:

        encoded byte array, or null.

      • decode

         abstract Unit decode(ByteArray data)

        Decodes the message content from a byte array.

        Parameters:
        data - Encoded byte array
      • getObjectName

         abstract String getObjectName()

        Gets the message type identifier (object name).

        Returns:

        message type identifier, e.g. "RC:RTC:xxx".