//use for unsubscribing internal EventMarket(EventType evtType, Subscription subscription) { this._messages = new List<Message>(); switch (evtType) { case EventType.SUBSCRIPTION_STATUS: base._type = evtType; MessageMarketSubscriptionCanceled msgCancel = new MessageMarketSubscriptionCanceled(subscription); this._messages.Add(msgCancel); break; default: break; } }
internal ElementMarketSubscriptionCanceled(MessageMarketSubscriptionCanceled arg) { this._reason = (ElementMarketSubscriptionCancelReason)arg["reason"]; }