示例#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 PackUploader(ApiWrapper api)
 {
     _api = api;
 }
示例#4
0
 internal LogUploader(ApiWrapper api)
 {
     _api = api;
 }