Skip to content

Commit 71c10a3

Browse files
author
Justin
committed
Changing over to unsigned numerical types since Valve responses use it. Tired of overflows.
Improving some response parsing and handling.
1 parent fd971bf commit 71c10a3

85 files changed

Lines changed: 588 additions & 471 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SteamWebAPI2.Net451/SteamWebAPI2.Net451.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
4040
<Private>True</Private>
4141
</Reference>
42-
<Reference Include="Steam.Models, Version=1.0.0.53, Culture=neutral, processorArchitecture=MSIL">
43-
<HintPath>..\packages\Steam.Models.1.0.0.53\lib\net451\Steam.Models.dll</HintPath>
42+
<Reference Include="Steam.Models, Version=2.0.0.1, Culture=neutral, processorArchitecture=MSIL">
43+
<HintPath>..\packages\Steam.Models.2.0.0.1\lib\net451\Steam.Models.dll</HintPath>
4444
<Private>True</Private>
4545
</Reference>
4646
<Reference Include="System" />

SteamWebAPI2.Net451/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<packages>
33
<package id="AutoMapper" version="4.2.1" targetFramework="net451" />
44
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net451" />
5-
<package id="Steam.Models" version="1.0.0.53" targetFramework="net451" />
5+
<package id="Steam.Models" version="2.0.0.1" targetFramework="net451" />
66
</packages>

SteamWebAPI2.Net452/SteamWebAPI2.Net452.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
4040
<Private>True</Private>
4141
</Reference>
42-
<Reference Include="Steam.Models, Version=1.0.0.53, Culture=neutral, processorArchitecture=MSIL">
43-
<HintPath>..\packages\Steam.Models.1.0.0.53\lib\net452\Steam.Models.dll</HintPath>
42+
<Reference Include="Steam.Models, Version=2.0.0.1, Culture=neutral, processorArchitecture=MSIL">
43+
<HintPath>..\packages\Steam.Models.2.0.0.1\lib\net452\Steam.Models.dll</HintPath>
4444
<Private>True</Private>
4545
</Reference>
4646
<Reference Include="System" />

SteamWebAPI2.Net452/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<packages>
33
<package id="AutoMapper" version="4.2.1" targetFramework="net452" />
44
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
5-
<package id="Steam.Models" version="1.0.0.53" targetFramework="net452" />
5+
<package id="Steam.Models" version="2.0.0.1" targetFramework="net452" />
66
</packages>

SteamWebAPI2.Tests/SteamWebAPI2.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
<HintPath>..\packages\Moq.4.5.30\lib\net45\Moq.dll</HintPath>
4545
<Private>True</Private>
4646
</Reference>
47-
<Reference Include="Steam.Models, Version=1.0.0.53, Culture=neutral, processorArchitecture=MSIL">
48-
<HintPath>..\packages\Steam.Models.1.0.0.53\lib\net46\Steam.Models.dll</HintPath>
47+
<Reference Include="Steam.Models, Version=2.0.0.1, Culture=neutral, processorArchitecture=MSIL">
48+
<HintPath>..\packages\Steam.Models.2.0.0.1\lib\net46\Steam.Models.dll</HintPath>
4949
<Private>True</Private>
5050
</Reference>
5151
<Reference Include="System" />

SteamWebAPI2.Tests/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<packages>
33
<package id="Castle.Core" version="3.3.3" targetFramework="net461" />
44
<package id="Moq" version="4.5.30" targetFramework="net461" />
5-
<package id="Steam.Models" version="1.0.0.53" targetFramework="net461" />
5+
<package id="Steam.Models" version="2.0.0.1" targetFramework="net461" />
66
</packages>

SteamWebAPI2/AutoMapperConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
using SteamWebAPI2.Models.SteamPlayer;
1818
using SteamWebAPI2.Models.SteamStore;
1919
using SteamWebAPI2.Models.TF2;
20-
using System;
2120
using SteamWebAPI2.Utilities;
21+
using System;
2222

2323
namespace SteamWebAPI2
2424
{

SteamWebAPI2/Interfaces/CSGOServers.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using Steam.Models.CSGO;
22
using SteamWebAPI2.Models.CSGO;
3-
using System.Threading.Tasks;
4-
using System.Linq;
53
using SteamWebAPI2.Utilities;
4+
using System.Threading.Tasks;
65

76
namespace SteamWebAPI2.Interfaces
87
{
@@ -19,8 +18,8 @@ public class CSGOServers : ICSGOServers
1918
/// <param name="steamWebApiKey"></param>
2019
public CSGOServers(string steamWebApiKey, ISteamWebInterface steamWebInterface = null)
2120
{
22-
this.steamWebInterface = steamWebInterface == null
23-
? new SteamWebInterface(steamWebApiKey, "ICSGOServers_730")
21+
this.steamWebInterface = steamWebInterface == null
22+
? new SteamWebInterface(steamWebApiKey, "ICSGOServers_730")
2423
: steamWebInterface;
2524
}
2625

SteamWebAPI2/Interfaces/DOTA2Econ.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using Steam.Models.DOTA2;
22
using SteamWebAPI2.Models.DOTA2;
3+
using SteamWebAPI2.Utilities;
34
using System;
45
using System.Collections.Generic;
56
using System.Linq;
67
using System.Threading.Tasks;
7-
using SteamWebAPI2.Utilities;
88

99
namespace SteamWebAPI2.Interfaces
1010
{
@@ -119,7 +119,7 @@ public async Task<IReadOnlyCollection<RarityModel>> GetRaritiesAsync(string lang
119119
/// </summary>
120120
/// <param name="leagueId"></param>
121121
/// <returns></returns>
122-
public async Task<int> GetTournamentPrizePoolAsync(int? leagueId = null)
122+
public async Task<uint> GetTournamentPrizePoolAsync(uint? leagueId = null)
123123
{
124124
List<SteamWebRequestParameter> parameters = new List<SteamWebRequestParameter>();
125125

SteamWebAPI2/Interfaces/DOTA2Fantasy.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using Steam.Models.DOTA2;
22
using SteamWebAPI2.Models.DOTA2;
3+
using SteamWebAPI2.Utilities;
34
using System.Collections.Generic;
45
using System.Threading.Tasks;
5-
using System.Linq;
6-
using System.Collections.ObjectModel;
7-
using SteamWebAPI2.Utilities;
86

97
namespace SteamWebAPI2.Interfaces
108
{

0 commit comments

Comments
 (0)