mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-06 01:22:11 +00:00
86 lines
2.0 KiB
C#
86 lines
2.0 KiB
C#
namespace StockSharp.Messages;
|
|
|
|
/// <summary>
|
|
/// Message boards lookup for specified criteria.
|
|
/// </summary>
|
|
[DataContract]
|
|
[Serializable]
|
|
public class BoardLookupMessage : BaseSubscriptionMessage
|
|
{
|
|
/// <summary>
|
|
/// The filter for board search.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string Like { get; set; }
|
|
|
|
/// <summary>
|
|
/// Disable translates the result of the request into the archive <see cref="SubscriptionFinishedMessage.Body"/>.
|
|
/// </summary>
|
|
[DataMember]
|
|
public bool DisableArchive { get; set; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="BoardLookupMessage"/>.
|
|
/// </summary>
|
|
public BoardLookupMessage()
|
|
: base(MessageTypes.BoardLookup)
|
|
{
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override DataType DataType => DataType.Board;
|
|
|
|
/// <summary>
|
|
/// Create a copy of <see cref="BoardLookupMessage"/>.
|
|
/// </summary>
|
|
/// <returns>Copy.</returns>
|
|
public override Message Clone()
|
|
{
|
|
return CopyTo(new BoardLookupMessage());
|
|
}
|
|
|
|
/// <summary>
|
|
/// Copy the message into the <paramref name="destination" />.
|
|
/// </summary>
|
|
/// <param name="destination">The object, to which copied information.</param>
|
|
/// <returns>The object, to which copied information.</returns>
|
|
protected BoardLookupMessage CopyTo(BoardLookupMessage destination)
|
|
{
|
|
base.CopyTo(destination);
|
|
|
|
destination.Like = Like;
|
|
destination.DisableArchive = DisableArchive;
|
|
|
|
return destination;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override string ToString()
|
|
{
|
|
var str = base.ToString();
|
|
|
|
if (!Like.IsEmpty())
|
|
str += $",Like={Like}";
|
|
|
|
if (DisableArchive)
|
|
str += $",Archive={DisableArchive}";
|
|
|
|
return str;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
[DataMember]
|
|
public override DateTimeOffset? From => null;
|
|
|
|
/// <inheritdoc />
|
|
[DataMember]
|
|
public override DateTimeOffset? To => DateTimeOffset.MaxValue /* prevent for online mode */;
|
|
|
|
/// <inheritdoc />
|
|
[DataMember]
|
|
public override bool IsSubscribe => true;
|
|
|
|
/// <inheritdoc />
|
|
[DataMember]
|
|
public override long OriginalTransactionId => 0;
|
|
} |