Class SerializedMessageData
Message JSON and binary messages. For messages and events, it will not contain the command.
Namespace: TehGM.Wolfringo.Messages.Serialization
Assembly: Wolfringo.Core.dll
Syntax
public class SerializedMessageData
Remarks
This class bundles message and response JSON data and binary data for easy passing as a parameter.
Constructors
| Improve this Doc View SourceSerializedMessageData(JToken)
Encapsulates JSON data only.
Declaration
public SerializedMessageData(JToken payload)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Linq.JToken | payload | JSON payload. |
SerializedMessageData(JToken, Byte[])
Creates message JSON and binary data bundle.
Declaration
public SerializedMessageData(JToken payload, byte[] binaryData)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Linq.JToken | payload | JSON payload. |
Byte[] | binaryData | Binary message. |
SerializedMessageData(JToken, IEnumerable<Byte[]>)
Creates message JSON and binary data bundle.
Declaration
public SerializedMessageData(JToken payload, IEnumerable<byte[]> binaryMessages)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.Linq.JToken | payload | JSON payload. |
IEnumerable<Byte[]> | binaryMessages | All binary messages. |
Properties
| Improve this Doc View SourceBinaryMessages
Message binary messages.
Declaration
public IEnumerable<byte[]> BinaryMessages { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Byte[]> |
Payload
Message payload. For messages and events, it will not contain the command.
Declaration
public JToken Payload { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.Linq.JToken |