Class InviteFeedback
A class containing the feedback from invite requests.
Inheritance
System.Object
InviteFeedback
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class InviteFeedback
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.String | userId | The user id of the user being invited. |
System.String | protocol | The protocol the original invite was using. |
InvitationState | state | The current state of the invite. |
System.String | 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.String |
Reason
Gets the detailed reason for the state if available.
Declaration
public string Reason { get; }
Property Value
Type | Description |
---|---|
System.String |
State
Gets the current state of the invite.
Declaration
public InvitationState State { get; }
Property Value
Type | Description |
---|---|
InvitationState |
UserId
Gets the user id for the user being invited.
Declaration
public string UserId { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static InviteFeedback FromJson(string feedbackJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | feedbackJson | The JSON to deserialize. |
Returns
Type | Description |
---|---|
InviteFeedback | The deserialized invite feedback. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(InviteFeedback)
Serializes an instance to JSON.
Declaration
public static string ToJson(InviteFeedback feedback)
Parameters
Type | Name | Description |
---|---|---|
InviteFeedback | feedback | The invite feedback to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |