A class containing the feedback from invite requests. More...
Public Member Functions | |
| String | getProtocol () |
| Gets the protocol the user was invited on. More... | |
| String | getReason () |
| Gets the detailed reason for the state if available. More... | |
| fm.liveswitch.InvitationState | getState () |
| Gets the current state of the invite. More... | |
| String | getUserId () |
| Gets the user id for the user being invited. More... | |
| InviteFeedback (String userId, String protocol, fm.liveswitch.InvitationState state, String reason) | |
| Creates an instance of a InviteFeedback class. More... | |
| String | toJson () |
| Serializes this instance to JSON. More... | |
Static Public Member Functions | |
| static fm.liveswitch.InviteFeedback | fromJson (String feedbackJson) |
| Deserializes an instance from JSON. More... | |
| static String | toJson (fm.liveswitch.InviteFeedback feedback) |
| Serializes an instance to JSON. More... | |
A class containing the feedback from invite requests.
| fm.liveswitch.InviteFeedback.InviteFeedback | ( | String | userId, |
| String | protocol, | ||
| fm.liveswitch.InvitationState | state, | ||
| String | reason | ||
| ) |
Creates an instance of a InviteFeedback class.
| userId | The user id of the user being invited. |
| protocol | The protocol the original invite was using. |
| state | The current state of the invite. |
| reason | The detailed reason if available. |
|
static |
Deserializes an instance from JSON.
| feedbackJson | The JSON to deserialize. |
| String fm.liveswitch.InviteFeedback.getProtocol | ( | ) |
Gets the protocol the user was invited on.
| String fm.liveswitch.InviteFeedback.getReason | ( | ) |
Gets the detailed reason for the state if available.
| fm.liveswitch.InvitationState fm.liveswitch.InviteFeedback.getState | ( | ) |
Gets the current state of the invite.
| String fm.liveswitch.InviteFeedback.getUserId | ( | ) |
Gets the user id for the user being invited.
| String fm.liveswitch.InviteFeedback.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
| feedback | The invite feedback to serialize. |