Exemple #1
0
        internal MarketEvent(EventType evtType, Subscription subscription) //use for unsubscribing
        {
            this._messages = new List <Message>();

            switch (evtType)
            {
            case EventType.SUBSCRIPTION_STATUS:
                base._type = evtType;
                MarketMessageSubscriptionCanceled msgCancel = new MarketMessageSubscriptionCanceled(subscription);
                this._messages.Add(msgCancel);
                break;

            default:
                break;
            }
        }
Exemple #2
0
 internal MarketElementSubscriptionCanceled(MarketMessageSubscriptionCanceled arg)
 {
     this._reason = (MarketElementSubscriptionCancelReason)arg["reason"];
 }