Skip to main content

# Message

NOTES: implementing subtypes contain more fields

    interface Message {
      id: ID!
      title: String
      summary: String
      content: String
      toastKind: ToastKind!
      timestamp: DateTime
      severity: MessageSeverity
      unread: Boolean
      messageCenter: MessageCenter
      user: User
      sender: User
      topics: [String!]!
      details: [Property!]!
    }

### Fields​

#### `Message.id` ● `ID!` non-null scalar​

Unique ID for this message.

#### `Message.title` ● `String` scalar​

#### `Message.summary` ● `String` scalar​

#### `Message.content` ● `String` scalar​

Could be something else as well.

#### `Message.toastKind` ● `ToastKind!` non-null enum​

#### `Message.timestamp` ● `DateTime` scalar​

#### `Message.severity` ● `MessageSeverity` enum​

#### `Message.unread` ● `Boolean` scalar​

#### `Message.messageCenter` ● `MessageCenter` object​

#### `Message.user` ● `User` object​

#### `Message.sender` ● `User` object​

#### `Message.topics` ● `[String!]!` non-null scalar​

A simple list of string topics this message belongs to.

#### `Message.details` ● `[Property!]!` non-null object​

Here we can put anything we want. "systemIDs": "1,2,3,4,5"

### Returned By​

`onNewMessage` subscription

### Member Of​

`MessageCenter` object ● `MessagePage` object ● `MessagesCreatePayload` object ● `MessagesUpdatePayload` object

### Implemented By​

`DefaultMessage` object ● `JobMessage` object