using Newtonsoft.Json.Linq;
using System;
namespace CryptoExchange.Net.Sockets
{
///
/// Message received event
///
public class MessageEvent
{
///
/// The connection the message was received on
///
public SocketConnection Connection { get; set; }
///
/// The json object of the data
///
public JToken JsonData { get; set; }
///
/// The originally received string data
///
public string? OriginalData { get; set; }
///
/// The timestamp of when the data was received
///
public DateTime ReceivedTimestamp { get; set; }
///
/// ctor
///
///
///
///
///
public MessageEvent(SocketConnection connection, JToken jsonData, string? originalData, DateTime timestamp)
{
Connection = connection;
JsonData = jsonData;
OriginalData = originalData;
ReceivedTimestamp = timestamp;
}
}
}