using System; namespace Krs.Ats.IBNet { /// /// Update News Bulletin Event Arguments /// [Serializable()] public class UpdateNewsBulletinEventArgs : EventArgs { private string message; private int msgId; private NewsType msgType; private string originExchange; /// /// Full Constructor /// /// The bulletin ID, incrementing for each new bulletin. /// Specifies the type of bulletin. /// The bulletin's message text. /// The exchange from which this message originated. public UpdateNewsBulletinEventArgs(int msgId, NewsType msgType, string message, string originExchange) { this.msgId = msgId; this.originExchange = originExchange; this.message = message; this.msgType = msgType; } /// /// Uninitialized Constructor for Serialization /// public UpdateNewsBulletinEventArgs() { } /// /// The bulletin ID, incrementing for each new bulletin. /// public int MsgId { get { return msgId; } set { msgId = value; } } /// /// Specifies the type of bulletin. /// /// public NewsType MsgType { get { return msgType; } set { msgType = value; } } /// /// The bulletin's message text. /// public string Message { get { return message; } set { message = value; } } /// /// The exchange from which this message originated. /// public string OriginExchange { get { return originExchange; } set { originExchange = value; } } } }