Options
All
  • Public
  • Public/Protected
  • All
Menu

Message object

Hierarchy

  • MessageItem

Index

Constructors

constructor

  • new MessageItem(data: { content: string; id: string; isBroadcast: boolean; isOwn?: boolean; messageId: string; role: EduRoleTypeEnum; ts: number; unread?: boolean; userName: string }): MessageItem
  • Parameters

    • data: { content: string; id: string; isBroadcast: boolean; isOwn?: boolean; messageId: string; role: EduRoleTypeEnum; ts: number; unread?: boolean; userName: string }
      • content: string
      • id: string
      • isBroadcast: boolean
      • Optional isOwn?: boolean
      • messageId: string
      • role: EduRoleTypeEnum
      • ts: number
      • Optional unread?: boolean
      • userName: string

    Returns MessageItem

Properties

content

content: string

id

id: string

isBroadcast

isBroadcast: boolean

Optional isOwn

isOwn?: boolean

messageId

messageId: string

role

ts

ts: number

Optional unread

unread?: boolean

userName

userName: string

Methods

toMessage

  • toMessage(): { content: string; id: string; isBroadcast: boolean; isOwn: undefined | boolean; role: string; timestamp: number; uid: string; unread: undefined | boolean; userName: string }
  • Returns { content: string; id: string; isBroadcast: boolean; isOwn: undefined | boolean; role: string; timestamp: number; uid: string; unread: undefined | boolean; userName: string }

    • content: string
    • id: string
    • isBroadcast: boolean
    • isOwn: undefined | boolean
    • role: string
    • timestamp: number
    • uid: string
    • unread: undefined | boolean
    • userName: string