Esempio n. 1
0
 internal HttpProfileClient(OverwatchConfig config) : base(config)
 {
     _client = new HttpClient
     {
         BaseAddress = new Uri("https://playoverwatch.com/en-gb/career/")
     };
 }
Esempio n. 2
0
 public MockProfileClient(OverwatchConfig config) : base(config)
 {
     _mockData = new ProfileRequestData("https://playoverwatch.com/en-gb/career/pc/eu/SirDoombox-2603", File.ReadAllText("TestSource.txt"), Platform.Pc);
 }
Esempio n. 3
0
 public OverwatchClient(OverwatchConfig config = null)
 {
     _profileParser = new ProfileParser();
     Config         = config ?? new OverwatchConfig.Builder().Default();
     _profileClient = new HttpProfileClient(Config);
 }
Esempio n. 4
0
 internal OverwatchClient(ProfileClient profileClient, OverwatchConfig config)
 {
     _profileClient = profileClient;
     _profileParser = new ProfileParser();
     Config         = config;
 }
 protected ProfileClient(OverwatchConfig config)
 {
     _config = config;
 }