Class News
- Namespace
- ATAS.DataFeedsCore
- Assembly
- ATAS.DataFeedsCore.dll
Text message sent to the user by a connector or the trading server; raised through the connector news event.
public class News : IEntity
- Inheritance
-
objectNews
- Implements
- Extension Methods
Constructors
News()
public News()
Properties
AccountID
Account the message relates to; null when it does not relate to an account.
public string AccountID { get; set; }
Property Value
- string
EntityType
Always News.
[Browsable(false)]
public EntityType EntityType { get; }
Property Value
Id
Database identifier of the message.
public long Id { get; set; }
Property Value
- long
IsHandled
Set by the trading server once the message has been delivered to an online session of the user.
public bool IsHandled { get; set; }
Property Value
- bool
Source
Source of the message, e.g. a URL or the name of the sending system; may be null.
public string Source { get; set; }
Property Value
- string
Text
Body of the message; may be null.
public string Text { get; set; }
Property Value
- string
Time
Time of the message; default when the source does not provide it.
public DateTime Time { get; set; }
Property Value
- DateTime
Title
Headline of the message.
public string Title { get; set; }
Property Value
- string
Type
Kind of the message.
public NewsType Type { get; set; }
Property Value
User
Recipient of the message; setting it also updates UserId.
public User? User { get; set; }
Property Value
UserId
Identifier of the recipient User; 0 when not set.
public long UserId { get; set; }
Property Value
- long
Methods
OnPropertyChanged(string)
Raises PropertyChanged.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyNamestringName of the changed property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
PropertyChanged
Occurs when a property changes.
<p>Added in ATAS 8.0.15.</p>
public event PropertyChangedEventHandler? PropertyChanged
Event Type
- PropertyChangedEventHandler