Class InviteFeedback
A class containing the feedback from invite requests.
Inheritance
System.Object
InviteFeedback
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class InviteFeedback : object
Constructors
InviteFeedback(String, String, InvitationState, String)
Creates an instance of a InviteFeedback class.
Declaration
public InviteFeedback(string userId, string protocol, InvitationState state, string reason)
Parameters
Type | Name | Description |
---|---|---|
System. |
userId | The user id of the user being invited. |
System. |
protocol | The protocol the original invite was using. |
Invitation |
state | The current state of the invite. |
System. |
reason | The detailed reason if available. |
Properties
Protocol
Gets the protocol the user was invited on.
Declaration
public string Protocol { get; }
Property Value
Type | Description |
---|---|
System. |
Reason
Gets the detailed reason for the state if available.
Declaration
public string Reason { get; }
Property Value
Type | Description |
---|---|
System. |
State
Gets the current state of the invite.
Declaration
public InvitationState State { get; }
Property Value
Type | Description |
---|---|
Invitation |
UserId
Gets the user id for the user being invited.
Declaration
public string UserId { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static InviteFeedback FromJson(string feedbackJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
feedbackJson | The JSON to deserialize. |
Returns
Type | Description |
---|---|
Invite |
The deserialized invite feedback. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(InviteFeedback)
Serializes an instance to JSON.
Declaration
public static string ToJson(InviteFeedback feedback)
Parameters
Type | Name | Description |
---|---|---|
Invite |
feedback | The invite feedback to serialize. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |