Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Message<O>

Type parameters

  • O: boolean

Hierarchy

Index

Properties

body

body: string

The message's body

from

from: O extends true ? LoggedInUser : MessageUser

The message's sender

id

id: number

The message's ID

outgoing

outgoing: O

Whether the message is outgoing or not

read

read: boolean

Whether the message has been read

sentAt

sentAt: GDDate

When the message was sent

subject

subject: string

The message's subject

to

to: O extends true ? MessageUser : LoggedInUser

The message's recipient

Methods

delete

  • delete(): Promise<boolean>
  • Deletes this message from the server

    async

    Returns Promise<boolean>

    Whether the message deletion was successful

resolve

  • Resolves the message into a full message

    async

    Returns Promise<Message<O>>

    The full message from this searched message

Generated using TypeDoc