Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Conversation

Index

Constructors

constructor

  • new Conversation(conversationId: string, conversationType: string, lastMessage: any, conversationWith: Group | User, unreadMessageCount: number, tags: String[]): Conversation
  • Parameters

    • conversationId: string
    • conversationType: string
    • lastMessage: any
    • conversationWith: Group | User
    • unreadMessageCount: number
    • tags: String[]

    Returns Conversation

Methods

getConversationId

  • getConversationId(): string
  • Method to get conversation ID of the conversation.

    Returns string

getConversationType

  • getConversationType(): string
  • Method to get conversation type of the conversation.

    Returns string

getConversationWith

  • Method to get conversationWith of the conversation.

    Returns Group | User

getLastMessage

  • getLastMessage(): any
  • Method to get last message of the conversation.

    Returns any

getTags

  • getTags(): String[]
  • Method to get tags of conversation.

    Returns String[]

getUnreadMessageCount

  • getUnreadMessageCount(): number
  • Method to get unread message count of the conversation.

    Returns number

setConversationId

  • setConversationId(conversationId: string): void
  • Method to set conversation ID of the conversation.

    Parameters

    • conversationId: string

    Returns void

setConversationType

  • setConversationType(conversationType: string): void
  • Method to set conversation type of the conversation.

    Parameters

    • conversationType: string

    Returns void

setConversationWith

  • setConversationWith(conversationWith: Group | User): void
  • Method to set conversationWith of the conversation.

    Parameters

    Returns void

setLastMessage

  • setLastMessage(lastMessage: any): void
  • Method to set last message of the conversation.

    Parameters

    • lastMessage: any

    Returns void

setUnreadMessageCount

  • setUnreadMessageCount(unreadMessageCount: number): void
  • Method to set unread message count of the conversation.

    Parameters

    • unreadMessageCount: number

    Returns void