Invite
Invitation
Member Summary
Public Members | ||
public |
Invite's sender uid |
|
public get |
Was this invitation accepted ? |
|
public get |
Was this invitation canceled ? |
|
public get |
Is this invitation waiting for a reply ? |
|
public get |
Was this invitation rejected ? |
|
public |
The id of the room associated to the invite |
|
public |
The invitation status :
|
|
public |
Invitee's uid |
|
public |
Invite message. |
|
public |
uid: * Invite's unique id |
Method Summary
Public Methods | ||
public |
Accept the invitation. |
|
public |
Cancels the invitation. |
|
public |
Un-register a callback for a status update |
|
public |
offStatusChange(callback: function) Un-register a callback for all status change events |
|
public |
Register a callback for a status update |
|
public |
onStatusChange(callback: function) Register a callback for all status change events |
|
public |
Rejects the invitation. |
Public Members
public status: string source
The invitation status :
- ONGOING - The receiver has not yet responded to the invitation
- ACCEPTED - The receiver has accepted the invitation
- REJECTED - The receiver has rejected the invitation
- CANCELED - The sender canceled the invitation
Public Methods
public accept(): Promise<Invite> source
Accept the invitation. Only the receiver can accept the invitation.
public cancel(reason: string): Promise<Invite> source
Cancels the invitation. Only the sender can cancel the invitation.
Params:
Name | Type | Attribute | Description |
reason | string |
|
The reason the sender is canceling the invite |
public offStatusChange(callback: function) source
Un-register a callback for all status change events
Params:
Name | Type | Attribute | Description |
callback | function |
|