Chatroom

Chatroom

new Chatroom()

Source:
Properties:
Name Type Description
id string

Chatroom ID

title string

Chatroom title

isPrivate boolean

chatroom private flag

numberOfVisitors number

Number of joined visitors

managers Array.<Manager>

Joined managers

Methods

(static) buildFromInfo()

Source:

Static builder for Chatroom class. Builds instance using passed API response object

getId()

Source:

Gets Chatroom ID

getIsPrivate()

Source:

Gets is chatroom private or not

getManagers()

Source:

Gets connected managers

getNumberOfVisitors()

Source:

Gets number of Chatroom visitors

getTitle()

Source:

Gets chatroom title

getTotalNumberOfUsers()

Source:

Gets number of totally connected users (visitors + managers)

setId(id)

Source:

Sets Chatroom ID

Parameters:
Name Type Description
id string

Chatroom ID to be set

setIsPrivate(isPrivate)

Source:

Sets Chatroom privacy flag

Parameters:
Name Type Description
isPrivate boolean

Chatroom privacy flag value

setManagers(managers)

Source:

Sets connected managers

Parameters:
Name Type Description
managers Array.<Manager>

Array of connected managers

setNumberOfVisitors(num)

Source:

Sets number of connected visitors

Parameters:
Name Type Description
num number

Number of currently connected visitors to Chatroom

setTitle(title)

Source:

Sets Chatroom title

Parameters:
Name Type Description
title string

Chatroom title to be set