fm.liveswitch.Invitation Class Reference

An invitation to join a channel. More...

Public Member Functions

void addOnStateChanging (fm.liveswitch.IAction1< fm.liveswitch.Invitation > value)
 Adds a handler that is raised when the state changes. More...
 
fm.liveswitch.Future< Object > cancel ()
 Attempts to cancel the invitation. More...
 
String getChannelId ()
 Gets the channel id that this invitation is for. More...
 
String getInviteKey ()
 Gets the key for this invitation. More...
 
String getProtocol ()
 Gets the protocol that this user was invited on. More...
 
String getReason ()
 Gets the reason for a state if available. More...
 
fm.liveswitch.InvitationState getState ()
 Gets the current state of the invitation. More...
 
String getUserId ()
 Gets the user id of the user being invited. More...
 
void removeOnStateChanging (fm.liveswitch.IAction1< fm.liveswitch.Invitation > value)
 Removes a handler that is raised when the state changes. More...
 

Detailed Description

An invitation to join a channel.

Member Function Documentation

◆ addOnStateChanging()

void fm.liveswitch.Invitation.addOnStateChanging ( fm.liveswitch.IAction1< fm.liveswitch.Invitation value)

Adds a handler that is raised when the state changes.

◆ cancel()

fm.liveswitch.Future<Object> fm.liveswitch.Invitation.cancel ( )

Attempts to cancel the invitation.

May fail if the invitation is acted upon before being canceled.

Returns
A promise that resolves if the cancel succeeds.

◆ getChannelId()

String fm.liveswitch.Invitation.getChannelId ( )

Gets the channel id that this invitation is for.

◆ getInviteKey()

String fm.liveswitch.Invitation.getInviteKey ( )

Gets the key for this invitation.

◆ getProtocol()

String fm.liveswitch.Invitation.getProtocol ( )

Gets the protocol that this user was invited on.

◆ getReason()

String fm.liveswitch.Invitation.getReason ( )

Gets the reason for a state if available.

◆ getState()

fm.liveswitch.InvitationState fm.liveswitch.Invitation.getState ( )

Gets the current state of the invitation.

See InviteFeedbackState for possible values.

◆ getUserId()

String fm.liveswitch.Invitation.getUserId ( )

Gets the user id of the user being invited.

◆ removeOnStateChanging()

void fm.liveswitch.Invitation.removeOnStateChanging ( fm.liveswitch.IAction1< fm.liveswitch.Invitation value)

Removes a handler that is raised when the state changes.