Class: ReceivedInvitation

ReceivedInvitation

ReceivedInvitation
Defines an invitation received by this client


<abstract> new ReceivedInvitation()

Fires:

Extends

Methods


accept()

Accepts this invitation & notifies sender

Returns:
Type
Promise.<any>

decline(reason)

Declines this invitation & notifies sender

Parameters:
Name Type Description
reason string
Returns:
Type
Void

getId()

Returns invitation id

Returns:
Type
string

getReceiveTime()

Returns invitation receive time

Returns:
Type
Date

getSender()

Returns invitation / request sender

Returns:
Type
Contact

on(listener)

Adds a listener to a Observable event

Parameters:
Name Type Description
listener function
Inherited From:
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:
Returns:

this instance for chaining

Type
Observable

Events


statusChange

Emitted invitation status change

Type: StatusChangeInfo