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
ts: number
Optional unread?: boolean
userName: string
Properties
isBroadcast
isBroadcast: boolean
Optional isOwn
isOwn?: boolean
messageId
messageId: string
Optional unread
unread?: boolean
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
Message object