Class: ReceivedConversationInvitation

ReceivedConversationInvitation

ReceivedConversationInvitation


new ReceivedConversationInvitation()

Extends

Methods


accept(stream, options)

Accepts this invitation & notifies sender

Parameters:
Name Type Description
stream Stream

Optional, if set, the stream will be published in the joined conversation.

options Object

join conversation options

Overrides:
Returns:

Conversation

Type
Promise.<Conversation>

decline()

Declines this invitation & notifies sender

Overrides:
Returns:
Type
Void

getConversation()

Returns associated conversation

Returns:
Type
Conversation

getId()

Returns invitation id

Inherited From:
Overrides:
Returns:
Type
string

getReceiveTime()

Returns invitation receive time

Inherited From:
Overrides:
Returns:
Type
Date

getSender()

Returns invitation / request sender

Inherited From:
Overrides:
Returns:
Type
Contact

on(listener)

Adds a listener to a Observable event

Parameters:
Name Type Description
listener function
Inherited From:
Overrides:
Returns:

this instance for chaining

Type
Observable

removeListener(eventType, listener)

Remove existing listener to Observable event

Parameters:
Name Type Description
eventType String
listener function
Inherited From:
Overrides:
Returns:

this instance for chaining

Type
Observable

Events


statusChange

Emitted invitation status change

Type: StatusChangeInfo
Inherited From:
Overrides: