Class: ReceivedInvitation

ReceivedInvitation

ReceivedInvitation
Defines an invitation received by this client


<abstract> new ReceivedInvitation()

Fires:

Extends

Methods


<static> getAvailableEvents()

Returns available events for this class

Returns:
Type
Array.<string>

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:
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