namespace StockSharp.Messages;
///
/// The message, informing about the emulator state change.
///
public class EmulationStateMessage : Message, IErrorMessage
{
///
/// Date in history for starting the paper trading.
///
public DateTime StartDate { get; set; }
///
/// Date in history to stop the paper trading (date is included).
///
public DateTime StopDate { get; set; }
///
/// State.
///
public ChannelStates State { get; set; }
///
public Exception Error { get; set; }
///
/// Initializes a new instance of the .
///
public EmulationStateMessage()
: base(MessageTypes.EmulationState)
{
}
///
/// Create a copy of .
///
/// Copy.
public override Message Clone()
{
var clone = new EmulationStateMessage
{
State = State,
StartDate = StartDate,
StopDate = StopDate,
Error = Error,
};
CopyTo(clone);
return clone;
}
}