The chat message thread class.

Constructors

  • Creates a message thread.

    Parameters

    • params: {
          createAt: number;
          lastMessage?: any;
          memberCount: number;
          msgCount: number;
          msgId: string;
          owner: string;
          parentId: string;
          threadId: string;
          threadName: string;
      }
      • createAt: number
      • OptionallastMessage?: any
      • memberCount: number
      • msgCount: number
      • msgId: string
      • owner: string
      • parentId: string
      • threadId: string
      • threadName: string

    Returns ChatMessageThread

Properties

createAt: number

The Unix timestamp when the message thread is created. The unit is millisecond.

lastMessage?: ChatMessage

The last reply in the message thread. If it is empty, the last message is withdrawn.

memberCount: number

The count of members in the message thread.

msgCount: number

The count of messages in the message thread.

msgId: string

The ID of the parent message of the message thread.

owner: string

The creator of the message thread.

parentId: string

The group ID where the message thread belongs.

threadId: string

The message thread ID.

threadName: string

The name of the message thread.