Class GDMessage

  • All Implemented Interfaces:
    GDEntity

    public final class GDMessage
    extends Object
    • Method Detail

      • getSenderID

        public long getSenderID()
      • getSenderName

        public String getSenderName()
      • getSubject

        public String getSubject()
      • getBody

        public reactor.core.publisher.Mono<String> getBody()
        Gets the message body. This has also the side-effect of marking the message as read server-side. Though it won't change the value returned by isRead().
        Returns:
        a Mono emitting the message body
      • isRead

        public boolean isRead()
      • getTimestamp

        public String getTimestamp()
      • equals

        public boolean equals​(Object obj)
      • getId

        public final long getId()
        Description copied from interface: GDEntity
        The unique identifier for the entity.
        Specified by:
        getId in interface GDEntity
        Returns:
        an ID
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object