Home > borogove > ChatMessage > (constructor)

ChatMessage.(constructor)

Constructs a new instance of the ChatMessage class

Signature:

protected constructor(params: {attachments?: borogove.ChatAttachment[] | null, direction?: enums.MessageDirection | null, encryption?: borogove.EncryptionInfo | null, from: borogove.JID, lang?: string | null, localId?: string | null, payloads?: borogove.Stanza[] | null, reactions?: Map<string markdown="1",borogove.Reaction[]> | null, recipients?: borogove.JID[] | null, replyId?: string | null, replyTo?: borogove.JID[] | null, replyToMessage?: borogove.ChatMessage | null, senderId: string, serverId?: string | null, serverIdBy?: string | null, stanza?: borogove.Stanza | null, status?: enums.MessageStatus | null, syncPoint?: boolean | null, text?: string | null, threadId?: string | null, timestamp: string, to: borogove.JID, type?: enums.MessageType | null, versions?: borogove.ChatMessage[] | null});

Parameters

Parameter Type Description
params {attachments?: borogove.ChatAttachment[] | null, direction?: enums.MessageDirection | null, encryption?: borogove.EncryptionInfo | null, from: borogove.JID, lang?: string | null, localId?: string | null, payloads?: borogove.Stanza[] | null, reactions?: Map<string,borogove.Reaction[]> | null, recipients?: borogove.JID[] | null, replyId?: string | null, replyTo?: borogove.JID[] | null, replyToMessage?: borogove.ChatMessage | null, senderId: string, serverId?: string | null, serverIdBy?: string | null, stanza?: borogove.Stanza | null, status?: enums.MessageStatus | null, syncPoint?: boolean | null, text?: string | null, threadId?: string | null, timestamp: string, to: borogove.JID, type?: enums.MessageType | null, versions?: borogove.ChatMessage[] | null}