Class NewsMessage
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
The message contains information about the news.
[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "News")]
public class NewsMessage : BaseSubscriptionIdMessage<NewsMessage>, IMessage, ILocalTimeMessage, ICloneable, ISubscriptionIdMessage, IOriginalTransactionIdMessage, IServerTimeMessage, INullableSecurityIdMessage, ITransactionIdMessage, ISeqNumMessage
- Inheritance
-
NewsMessage
- Implements
- Inherited Members
- Extension Methods
Constructors
NewsMessage()
Initializes a new instance of the NewsMessage.
public NewsMessage()
Properties
Attachments
Attachments.
[DataMember]
public long[] Attachments { get; set; }
Property Value
- long[]
BoardCode
Electronic board code.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Board", Description = "BoardCode", GroupName = "General")]
public string BoardCode { get; set; }
Property Value
DataType
Data type info.
public override DataType DataType { get; }
Property Value
ExpiryDate
Expiration date.
[DataMember]
public DateTimeOffset? ExpiryDate { get; set; }
Property Value
Headline
Header.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Header", Description = "Header", GroupName = "General")]
public string Headline { get; set; }
Property Value
Id
News ID.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Id", Description = "NewsId", GroupName = "General")]
public string Id { get; set; }
Property Value
Language
Language.
[DataMember]
public string Language { get; set; }
Property Value
Priority
News priority.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Priority", Description = "NewsPriority", GroupName = "General")]
public NewsPriorities? Priority { get; set; }
Property Value
ProductId
Product id.
[DataMember]
[Browsable(false)]
public long ProductId { get; set; }
Property Value
SecurityId
Security ID.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Security", Description = "NewsSecurityId", GroupName = "General")]
public SecurityId? SecurityId { get; set; }
Property Value
SeqNum
Sequence number.
[DataMember]
public long SeqNum { get; set; }
Property Value
Remarks
Zero means no information.
ServerTime
Server time.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Time", Description = "NewsTime", GroupName = "General")]
public DateTimeOffset ServerTime { get; set; }
Property Value
Source
News source.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Source", Description = "NewsSource", GroupName = "General")]
public string Source { get; set; }
Property Value
Story
News text.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Text", Description = "NewsText", GroupName = "General")]
public string Story { get; set; }
Property Value
TransactionId
Request identifier.
[DataMember]
public long TransactionId { get; set; }
Property Value
Url
News link in the internet.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Link", Description = "NewsLink", GroupName = "General")]
public string Url { get; set; }
Property Value
Methods
CopyTo(NewsMessage)
Copy the message into the destination
.
public override void CopyTo(NewsMessage destination)
Parameters
destination
NewsMessageThe object, to which copied information.
ToString()
public override string ToString()