Options
All
  • Public
  • Public/Protected
  • All
Menu

The MessagesStore class is used for dealing with hat messages and various kinds of chat signal that controls the IM state.

Hierarchy

Index

Constructors

constructor

Accessors

chatConvasationMessageId

  • get chatConvasationMessageId(): Map<string, MessageItem>

chatConvasationUserUuid

chatMuted

  • get chatMuted(): boolean
  • Whether the chat is muted or not

    Returns boolean

newMessageFlag

  • get newMessageFlag(): boolean
  • Returns boolean

roomChatConversations

roomChatMessages

roomChatMessagesMessageId

  • get roomChatMessagesMessageId(): Map<string, MessageItem>

unreadMessageCount

  • get unreadMessageCount(): number
  • Number of unread message count

    Returns number

Methods

addChatMessage

  • Adds a message to the message list

    Parameters

    Returns void

addConversationChatMessage

addRoomChatConversation

getConversationHistoryChatMessage

  • getConversationHistoryChatMessage(data: { nextId: string; sort: number; studentUuid: string }): Promise<void>
  • 根据学生 ID 获取学生的提问消息

    Parameters

    • data: { nextId: string; sort: number; studentUuid: string }
      • nextId: string
      • sort: number
      • studentUuid: string

    Returns Promise<void>

getConversationList

  • getConversationList(data: { nextId: string; sort: number }): Promise<any>
  • 获取 提问列表用户信息

    Parameters

    • data: { nextId: string; sort: number }
      • nextId: string
      • sort: number

    Returns Promise<any>

getHistoryChatMessage

  • getHistoryChatMessage(data: { nextId: string; sort: number }): Promise<any>
  • 获取房间历史的聊天消息

    Parameters

    • data: { nextId: string; sort: number }
      • nextId: string
      • sort: number

    Returns Promise<any>

incrementUnreadMessageCount

  • incrementUnreadMessageCount(): void
  • Increment unread messages count

    Returns void

muteChat

  • muteChat(): Promise<void>
  • Mutes chat

    Returns Promise<void>

onDestroy

  • onDestroy(): void

onInstall

  • onInstall(): void

resetUnreadMessageCount

  • resetUnreadMessageCount(): void
  • Resets unread messages count

    Returns void

sendMessage

  • sendMessage(message: string): Promise<void>
  • Sends a message

    Parameters

    • message: string

    Returns Promise<void>

sendMessageToConversation

  • sendMessageToConversation(message: string, conversation: Conversation): Promise<void>
  • Sends message to a conversation

    Parameters

    Returns Promise<void>

unmuteChat

  • unmuteChat(): Promise<void>
  • Unmutes chat

    Returns Promise<void>