internal OAuthWrapper(HSReplayNetConfig config, Data.Account account, ApiWrapper api) { _config = config; _account = account; _api = api; _uploadTokenHistory = new UploadTokenHistory(config.DataDirectory); Load(); }
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); }
internal ApiWrapper(HSReplayNetConfig config, Account account) { _account = account; _client = new HsReplayClient(config.ApiKey, config.UserAgent); }