Ejemplo n.º 1
0
 public WebTradeNotifier(T data, PokeTradeTrainerInfo info, int code, IWebNotify <T> notifier)
 {
     Data      = data;
     Info      = info;
     Code      = code;
     WebNotify = notifier;
     Result    = new T();
 }
Ejemplo n.º 2
0
        private const int Code = 1111_7477; // while I test

        public WebBot(WebSettings settings, PokeTradeHub <PK8> hub)
        {
            Hub                 = hub;
            URI                 = settings.URIEndpoint;
            AuthID              = settings.AuthID;
            AuthString          = settings.AuthTokenOrString;
            QueueIndex          = settings.QueueIndex;
            WebNotifierInstance = new SignalRNotify <PK8>(AuthID, AuthString, URI);

            Task.Run(() => loopTrades((ulong)QueueIndex));
        }