public WebTradeNotifier(T data, PokeTradeTrainerInfo info, int code, IWebNotify <T> notifier) { Data = data; Info = info; Code = code; WebNotify = notifier; Result = new T(); }
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)); }