Class EventMessage

  • All Implemented Interfaces:
    Parcelable

    public final class EventMessage
    extends Object
    implements Parcelable
    An Event Message (emsg) as defined in ISO 23009-1.
    • Constructor Detail

      • EventMessage

        public EventMessage​(String schemeIdUri,
                            String value,
                            long durationMs,
                            long id,
                            byte[] messageData)
        Parameters:
        schemeIdUri - The message scheme.
        value - The value for the event.
        durationMs - The duration of the event in milliseconds.
        id - The instance identifier.
        messageData - The body of the message.
    • Method Detail

      • getSchemeIdUri

        public String getSchemeIdUri()
        The message scheme.
      • getValue

        public String getValue()
        The value for the event.
      • getDurationMs

        public long getDurationMs()
        The duration of the event in milliseconds.
      • getId

        public long getId()
        The instance identifier.
      • getMessageData

        public byte[] getMessageData()
        The body of the message.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object