Search Results for

    Show / Hide Table of Contents

    Class EventInfo

    Event information.

    Inheritance
    System.Object
    Info
    EventInfo
    Inherited Members
    Info.Id
    Info.ProcessBoolean(Boolean, Boolean)
    Info.ProcessShort(Int16, Int16)
    Info.ProcessInteger(Int32, Int32)
    Info.ProcessLong(Int64, Int64)
    Info.ProcessFloat(Single, Single)
    Info.ProcessDouble(Double, Double)
    Info.ProcessString(String, String)
    Info.ProcessBooleanArray(Boolean[], Boolean[])
    Info.ProcessShortArray(Int16[], Int16[])
    Info.ProcessIntegerArray(Int32[], Int32[])
    Info.ProcessLongArray(Int64[], Int64[])
    Info.ProcessFloatArray(Single[], Single[])
    Info.ProcessFloatArray(Double[], Double[])
    Info.ProcessObject<T>(T, T)
    Info.ProcessArray<T>(T[], T[])
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class EventInfo : Info

    Constructors

    EventInfo()

    Initializes a new event.

    Declaration
    public EventInfo()

    EventInfo(String)

    Initializes a new event.

    Declaration
    public EventInfo(string type)
    Parameters
    Type Name Description
    System.String type

    The type.

    Properties

    Channel

    Gets or sets the channel information.

    Declaration
    public ChannelInfo Channel { get; set; }
    Property Value
    Type Description
    ChannelInfo

    Client

    Gets or sets the client information.

    Declaration
    public ClientInfo Client { get; set; }
    Property Value
    Type Description
    ClientInfo

    Connection

    Gets or sets the connection information.

    Declaration
    public ConnectionInfo Connection { get; set; }
    Property Value
    Type Description
    ConnectionInfo

    Forced

    Gets or sets whether this event was forced.

    Declaration
    public bool Forced { get; set; }
    Property Value
    Type Description
    System.Boolean

    Message

    Gets or sets the message information.

    Declaration
    public MessageInfo Message { get; set; }
    Property Value
    Type Description
    MessageInfo

    Origin

    Gets or sets the event origin.

    Declaration
    public string Origin { get; set; }
    Property Value
    Type Description
    System.String

    Timestamp

    Gets or sets the event timestamp in milliseconds since epoch.

    Declaration
    public long Timestamp { get; set; }
    Property Value
    Type Description
    System.Int64

    Type

    Gets or sets the event type.

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    DeserializeProperties(String, String)

    Deserializes the properties.

    Declaration
    protected override void DeserializeProperties(string key, string valueJson)
    Parameters
    Type Name Description
    System.String key

    The key.

    System.String valueJson

    The value in JSON format.

    Overrides
    Info.DeserializeProperties(String, String)

    FromJson(String)

    Deserializes an instance from JSON.

    Declaration
    public static EventInfo FromJson(string eventJson)
    Parameters
    Type Name Description
    System.String eventJson
    Returns
    Type Description
    EventInfo

    FromJsonArray(String)

    Deserializes an array from JSON.

    Declaration
    public static EventInfo[] FromJsonArray(string eventJsons)
    Parameters
    Type Name Description
    System.String eventJsons
    Returns
    Type Description
    EventInfo[]

    SerializeProperties(Dictionary<String, String>)

    Serializes the properties.

    Declaration
    protected override void SerializeProperties(Dictionary<string, string> jsonObject)
    Parameters
    Type Name Description
    Dictionary<System.String, System.String> jsonObject

    The JSON object.

    Overrides
    Info.SerializeProperties(Dictionary<String, String>)

    ToJson()

    Serializes this instance to JSON.

    Declaration
    public string ToJson()
    Returns
    Type Description
    System.String

    ToJson(EventInfo)

    Serializes an instance to JSON.

    Declaration
    public static string ToJson(EventInfo evt)
    Parameters
    Type Name Description
    EventInfo evt
    Returns
    Type Description
    System.String

    ToJsonArray(EventInfo[])

    Serializes an array to JSON.

    Declaration
    public static string ToJsonArray(EventInfo[] events)
    Parameters
    Type Name Description
    EventInfo[] events
    Returns
    Type Description
    System.String
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0