Class MessageInfo
Message information.
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 MessageInfo : Info
Properties
ChannelId
Gets or sets the channel identifier.
Declaration
public string ChannelId { get; set; }
Property Value
Type | Description |
---|---|
System. |
ClientId
Gets or sets the client identifier.
Declaration
public string ClientId { get; set; }
Property Value
Type | Description |
---|---|
System. |
DeviceId
Gets or sets the device identifier.
Declaration
public string DeviceId { get; set; }
Property Value
Type | Description |
---|---|
System. |
Payload
Gets or sets the message.
Declaration
public string Payload { get; set; }
Property Value
Type | Description |
---|---|
System. |
UserId
Gets or sets the user identifier.
Declaration
public string UserId { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static MessageInfo FromJson(string messageInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
messageInfoJson |
Returns
Type | Description |
---|---|
Message |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System. |
jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(MessageInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(MessageInfo messageInfo)
Parameters
Type | Name | Description |
---|---|---|
Message |
messageInfo |
Returns
Type | Description |
---|---|
System. |