Skip to content

Commit 3ec39f6

Browse files
author
Justin
committed
Fixing some unsigned typed issues.
1 parent cf8f2eb commit 3ec39f6

25 files changed

Lines changed: 67 additions & 63 deletions

src/SteamWebAPI2/AutoMapperConfiguration.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,11 @@ public static void Initialize()
382382

383383
#region Endpoint: SteamRemoteStorage
384384

385-
x.CreateMap<uint, PublishedFileVisibility>();
385+
x.CreateMap<uint, PublishedFileVisibility>()
386+
.ConvertUsing(src =>
387+
{
388+
return (PublishedFileVisibility)src;
389+
});
386390
x.CreateMap<PublishedFileDetails, PublishedFileDetailsModel>()
387391
.ForMember(dest => dest.FileUrl, opts => opts.MapFrom(source => new Uri(source.FileUrl)))
388392
.ForMember(dest => dest.PreviewUrl, opts => opts.MapFrom(source => new Uri(source.PreviewUrl)));

src/SteamWebAPI2/Interfaces/SteamNews.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public SteamNews(string steamWebApiKey, ISteamWebInterface steamWebInterface = n
3232
/// <returns></returns>
3333
public async Task<ISteamWebResponse<SteamNewsResultModel>> GetNewsForAppAsync(uint appId, uint? maxLength = null, DateTime? endDate = null, uint? count = null)
3434
{
35-
long? endDateUnixTimeStamp = null;
35+
ulong? endDateUnixTimeStamp = null;
3636

3737
if (endDate.HasValue)
3838
{

src/SteamWebAPI2/Interfaces/SteamUserStats.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public async Task<ISteamWebResponse<IReadOnlyCollection<GlobalAchievementPercent
5656
/// <returns></returns>
5757
public async Task<ISteamWebResponse<IReadOnlyCollection<GlobalStatModel>>> GetGlobalStatsForGameAsync(uint appId, IReadOnlyList<string> statNames, DateTime? startDate = null, DateTime? endDate = null)
5858
{
59-
long? startDateUnixTimeStamp = null;
60-
long? endDateUnixTimeStamp = null;
59+
ulong? startDateUnixTimeStamp = null;
60+
ulong? endDateUnixTimeStamp = null;
6161

6262
if (startDate.HasValue)
6363
{

src/SteamWebAPI2/Models/CSGO/ServerStatusResultContainer.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace SteamWebAPI2.Models.CSGO
66
{
77
internal class ServerStatusApp
88
{
9-
public int Version { get; set; }
10-
public long Timestamp { get; set; }
9+
public uint Version { get; set; }
10+
public ulong Timestamp { get; set; }
1111
public string Time { get; set; }
1212
}
1313

@@ -23,16 +23,16 @@ internal class ServerStatusMatchmaking
2323
public string Scheduler { get; set; }
2424

2525
[JsonProperty(PropertyName = "online_servers")]
26-
public int OnlineServers { get; set; }
26+
public uint OnlineServers { get; set; }
2727

2828
[JsonProperty(PropertyName = "online_players")]
29-
public int OnlinePlayers { get; set; }
29+
public uint OnlinePlayers { get; set; }
3030

3131
[JsonProperty(PropertyName = "searching_players")]
32-
public int SearchingPlayers { get; set; }
32+
public uint SearchingPlayers { get; set; }
3333

3434
[JsonProperty(PropertyName = "search_seconds_avg")]
35-
public int SearchSecondsAverage { get; set; }
35+
public uint SearchSecondsAverage { get; set; }
3636
}
3737

3838
internal class ServerStatusServices

src/SteamWebAPI2/Models/DOTA2/MatchDetailResultContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ internal class MatchDetailResult
9999
public uint Duration { get; set; }
100100

101101
[JsonProperty(PropertyName = "start_time")]
102-
public long StartTime { get; set; }
102+
public ulong StartTime { get; set; }
103103

104104
[JsonProperty(PropertyName = "match_id")]
105105
public ulong MatchId { get; set; }

src/SteamWebAPI2/Models/DOTA2/TeamInfoResultContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal class TeamInfo
99
public uint TeamId { get; set; }
1010
public string Name { get; set; }
1111
public string Tag { get; set; }
12-
public long TimeCreated { get; set; }
12+
public ulong TimeCreated { get; set; }
1313
public string Rating { get; set; }
1414
public ulong Logo { get; set; }
1515
public ulong LogoSponsor { get; set; }

src/SteamWebAPI2/Models/SchemaForGameResultContainer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ internal class SchemaGameStat
99
public string Name { get; set; }
1010

1111
[JsonProperty("defaultvalue")]
12-
public int DefaultValue { get; set; }
12+
public uint DefaultValue { get; set; }
1313

1414
[JsonProperty("displayName")]
1515
public string DisplayName { get; set; }
@@ -21,13 +21,13 @@ internal class SchemaGameAchievement
2121
public string Name { get; set; }
2222

2323
[JsonProperty("defaultvalue")]
24-
public int DefaultValue { get; set; }
24+
public uint DefaultValue { get; set; }
2525

2626
[JsonProperty("displayName")]
2727
public string DisplayName { get; set; }
2828

2929
[JsonProperty("hidden")]
30-
public int Hidden { get; set; }
30+
public uint Hidden { get; set; }
3131

3232
[JsonProperty("description")]
3333
public string Description { get; set; }

src/SteamWebAPI2/Models/SteamAppListResultContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace SteamWebAPI2.Models
66
internal class SteamApp
77
{
88
[JsonProperty("appid")]
9-
public int AppId { get; set; }
9+
public uint AppId { get; set; }
1010

1111
[JsonProperty("name")]
1212
public string Name { get; set; }

src/SteamWebAPI2/Models/SteamAppUpToDateCheckResultContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal class SteamAppUpToDateCheckResult
1414
public bool VersionIsListable { get; set; }
1515

1616
[JsonProperty("required_version")]
17-
public int RequiredVersion { get; set; }
17+
public uint RequiredVersion { get; set; }
1818

1919
[JsonProperty("message")]
2020
public string Message { get; set; }

src/SteamWebAPI2/Models/SteamCommunity/GlobalStatsForGameResultContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class GlobalStatsForGameResult
1717
public IList<GlobalStat> GlobalStats { get; set; }
1818

1919
[JsonProperty("result")]
20-
public int Status { get; set; }
20+
public uint Status { get; set; }
2121
}
2222

2323
internal class GlobalStatsForGameResultContainer

0 commit comments

Comments
 (0)