Пример #1
0
 internal OAuthWrapper(HSReplayNetConfig config, Data.Account account, ApiWrapper api)
 {
     _config             = config;
     _account            = account;
     _api                = api;
     _uploadTokenHistory = new UploadTokenHistory(config.DataDirectory);
     Load();
 }
Пример #2
0
 internal HSReplayNet(HSReplayNetConfig config)
 {
     Config       = config;
     Events       = new HSReplayNetEvents();
     Account      = Account.Serializer.Load(config.DataDirectory);
     Api          = new ApiWrapper(config, Account);
     OAuth        = new OAuthWrapper(config, Account, Api);
     LogUploader  = new LogUploader(Api);
     PackUploader = new PackUploader(Api);
     Twitch       = new TwitchDataManager(OAuth, config);
 }
Пример #3
0
 internal ApiWrapper(HSReplayNetConfig config, Account account)
 {
     _account = account;
     _client  = new HsReplayClient(config.ApiKey, config.UserAgent);
 }