Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class SerializedMessageData

    Message JSON and binary messages. For messages and events, it will not contain the command.

    Inheritance
    System.Object
    SerializedMessageData
    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 Source

    SerializedMessageData(JToken)

    Encapsulates JSON data only.

    Declaration
    public SerializedMessageData(JToken payload)
    Parameters
    Type Name Description
    Newtonsoft.Json.Linq.JToken payload

    JSON payload.

    | Improve this Doc View Source

    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.

    System.Byte[] binaryData

    Binary message.

    | Improve this Doc View Source

    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.

    System.Collections.Generic.IEnumerable<System.Byte[]> binaryMessages

    All binary messages.

    Properties

    | Improve this Doc View Source

    BinaryMessages

    Message binary messages.

    Declaration
    public IEnumerable<byte[]> BinaryMessages { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.Byte[]>
    | Improve this Doc View Source

    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

    Methods

    | Improve this Doc View Source

    IsError()

    Is response an error?

    Declaration
    public bool IsError()
    Returns
    Type Description
    System.Boolean

    True if response is an error; otherwise false.