public Subscription(
     RtmClient client,
     string subscriptionId,
     SubscriptionModes mode,
     string filter,
     uint?period,
     string position,
     RtmSubscribeHistory history,
     ISubscriptionObserver observer)
     : base(subscriptionId, mode, filter, period, position, history, observer)
 {
     _client = client;
     _state  = new State.Unsubscribed(this);
 }
示例#2
0
        public SubscriptionFuture(
            string subscriptionId,
            SubscriptionModes mode,
            string filter,
            uint?period,
            string position,
            RtmSubscribeHistory history,
            ISubscriptionObserver observer)
        {
            SubscriptionId = subscriptionId;
            Mode           = mode;
            Filter         = filter;
            Period         = period;
            Position       = position;
            History        = history;

            Observer = observer ?? new SubscriptionObserver();
        }