Skip to content

Commit 67dbc31

Browse files
Automatically update Dotnet SDK
1 parent 3596cae commit 67dbc31

11 files changed

Lines changed: 43 additions & 33 deletions

src/TrophyApi.sln

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrophyApi", "TrophyApi\TrophyApi.csproj", "{25DE29B6-AA57-41FF-9D1D-D779BC336E5B}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrophyApi", "TrophyApi\TrophyApi.csproj", "{2A1709DC-8188-456A-9AA8-5F9E563DCC1A}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrophyApi.Test", "TrophyApi.Test\TrophyApi.Test.csproj", "{BB07A58B-9AD1-42CD-8540-348E8FB0A16E}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrophyApi.Test", "TrophyApi.Test\TrophyApi.Test.csproj", "{E3E3EEBB-7D32-4EB2-B49D-18BD94E44002}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -16,13 +16,13 @@ Global
1616
HideSolutionNode = FALSE
1717
EndGlobalSection
1818
GlobalSection(ProjectConfigurationPlatforms) = postSolution
19-
{25DE29B6-AA57-41FF-9D1D-D779BC336E5B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20-
{25DE29B6-AA57-41FF-9D1D-D779BC336E5B}.Debug|Any CPU.Build.0 = Debug|Any CPU
21-
{25DE29B6-AA57-41FF-9D1D-D779BC336E5B}.Release|Any CPU.ActiveCfg = Release|Any CPU
22-
{25DE29B6-AA57-41FF-9D1D-D779BC336E5B}.Release|Any CPU.Build.0 = Release|Any CPU
23-
{BB07A58B-9AD1-42CD-8540-348E8FB0A16E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24-
{BB07A58B-9AD1-42CD-8540-348E8FB0A16E}.Debug|Any CPU.Build.0 = Debug|Any CPU
25-
{BB07A58B-9AD1-42CD-8540-348E8FB0A16E}.Release|Any CPU.ActiveCfg = Release|Any CPU
26-
{BB07A58B-9AD1-42CD-8540-348E8FB0A16E}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{2A1709DC-8188-456A-9AA8-5F9E563DCC1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
20+
{2A1709DC-8188-456A-9AA8-5F9E563DCC1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
21+
{2A1709DC-8188-456A-9AA8-5F9E563DCC1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
22+
{2A1709DC-8188-456A-9AA8-5F9E563DCC1A}.Release|Any CPU.Build.0 = Release|Any CPU
23+
{E3E3EEBB-7D32-4EB2-B49D-18BD94E44002}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{E3E3EEBB-7D32-4EB2-B49D-18BD94E44002}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{E3E3EEBB-7D32-4EB2-B49D-18BD94E44002}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{E3E3EEBB-7D32-4EB2-B49D-18BD94E44002}.Release|Any CPU.Build.0 = Release|Any CPU
2727
EndGlobalSection
2828
EndGlobal

src/TrophyApi/Leaderboards/Types/LeaderboardsAllResponseItem.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public record LeaderboardsAllResponseItem
7171
/// The user-facing description of the leaderboard.
7272
/// </summary>
7373
[JsonPropertyName("description")]
74-
public required string Description { get; set; }
74+
public string? Description { get; set; }
7575

7676
/// <summary>
7777
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -98,10 +98,10 @@ public record LeaderboardsAllResponseItem
9898
public LeaderboardResponseRunUnit? RunUnit { get; set; }
9999

100100
/// <summary>
101-
/// The interval between repetitions, relative to the start date and repetition type.
101+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
102102
/// </summary>
103103
[JsonPropertyName("runInterval")]
104-
public required int RunInterval { get; set; }
104+
public int? RunInterval { get; set; }
105105

106106
/// <summary>
107107
/// Additional properties received from the response, if any.

src/TrophyApi/TrophyApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<!-- 🔹 NuGet Metadata -->
1111
<PackageId>Trophy</PackageId>
12-
<Version>1.0.34</Version>
12+
<Version>1.0.35</Version>
1313
<Authors>Trophy Labs, Inc</Authors>
1414
<Description>.NET SDK for the Trophy API</Description>
1515
<PackageTags>trophy; api; gamification; sdk</PackageTags>

src/TrophyApi/Types/LeaderboardResponse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public record LeaderboardResponse
6868
/// The user-facing description of the leaderboard.
6969
/// </summary>
7070
[JsonPropertyName("description")]
71-
public required string Description { get; set; }
71+
public string? Description { get; set; }
7272

7373
/// <summary>
7474
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -95,10 +95,10 @@ public record LeaderboardResponse
9595
public LeaderboardResponseRunUnit? RunUnit { get; set; }
9696

9797
/// <summary>
98-
/// The interval between repetitions, relative to the start date and repetition type.
98+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
9999
/// </summary>
100100
[JsonPropertyName("runInterval")]
101-
public required int RunInterval { get; set; }
101+
public int? RunInterval { get; set; }
102102

103103
/// <summary>
104104
/// Additional properties received from the response, if any.

src/TrophyApi/Types/LeaderboardResponseWithRankings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public record LeaderboardResponseWithRankings
7777
/// The user-facing description of the leaderboard.
7878
/// </summary>
7979
[JsonPropertyName("description")]
80-
public required string Description { get; set; }
80+
public string? Description { get; set; }
8181

8282
/// <summary>
8383
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -104,10 +104,10 @@ public record LeaderboardResponseWithRankings
104104
public LeaderboardResponseRunUnit? RunUnit { get; set; }
105105

106106
/// <summary>
107-
/// The interval between repetitions, relative to the start date and repetition type.
107+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
108108
/// </summary>
109109
[JsonPropertyName("runInterval")]
110-
public required int RunInterval { get; set; }
110+
public int? RunInterval { get; set; }
111111

112112
/// <summary>
113113
/// Additional properties received from the response, if any.

src/TrophyApi/Types/MetricEventLeaderboardResponse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public record MetricEventLeaderboardResponse
9595
/// The user-facing description of the leaderboard.
9696
/// </summary>
9797
[JsonPropertyName("description")]
98-
public required string Description { get; set; }
98+
public string? Description { get; set; }
9999

100100
/// <summary>
101101
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -116,10 +116,10 @@ public record MetricEventLeaderboardResponse
116116
public LeaderboardResponseRunUnit? RunUnit { get; set; }
117117

118118
/// <summary>
119-
/// The interval between repetitions, relative to the start date and repetition type.
119+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
120120
/// </summary>
121121
[JsonPropertyName("runInterval")]
122-
public required int RunInterval { get; set; }
122+
public int? RunInterval { get; set; }
123123

124124
/// <summary>
125125
/// Additional properties received from the response, if any.

src/TrophyApi/Types/UserLeaderboardResponse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public record UserLeaderboardResponse
8080
/// The user-facing description of the leaderboard.
8181
/// </summary>
8282
[JsonPropertyName("description")]
83-
public required string Description { get; set; }
83+
public string? Description { get; set; }
8484

8585
/// <summary>
8686
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -107,10 +107,10 @@ public record UserLeaderboardResponse
107107
public LeaderboardResponseRunUnit? RunUnit { get; set; }
108108

109109
/// <summary>
110-
/// The interval between repetitions, relative to the start date and repetition type.
110+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
111111
/// </summary>
112112
[JsonPropertyName("runInterval")]
113-
public required int RunInterval { get; set; }
113+
public int? RunInterval { get; set; }
114114

115115
/// <summary>
116116
/// Additional properties received from the response, if any.

src/TrophyApi/Types/UserLeaderboardResponseWithHistory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public record UserLeaderboardResponseWithHistory
8686
/// The user-facing description of the leaderboard.
8787
/// </summary>
8888
[JsonPropertyName("description")]
89-
public required string Description { get; set; }
89+
public string? Description { get; set; }
9090

9191
/// <summary>
9292
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -113,10 +113,10 @@ public record UserLeaderboardResponseWithHistory
113113
public LeaderboardResponseRunUnit? RunUnit { get; set; }
114114

115115
/// <summary>
116-
/// The interval between repetitions, relative to the start date and repetition type.
116+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
117117
/// </summary>
118118
[JsonPropertyName("runInterval")]
119-
public required int RunInterval { get; set; }
119+
public int? RunInterval { get; set; }
120120

121121
/// <summary>
122122
/// Additional properties received from the response, if any.

src/TrophyApi/Types/WebhookUserLeaderboardResponse.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public record WebhookUserLeaderboardResponse
9292
/// The user-facing description of the leaderboard.
9393
/// </summary>
9494
[JsonPropertyName("description")]
95-
public required string Description { get; set; }
95+
public string? Description { get; set; }
9696

9797
/// <summary>
9898
/// The start date of the leaderboard in YYYY-MM-DD format.
@@ -119,10 +119,10 @@ public record WebhookUserLeaderboardResponse
119119
public LeaderboardResponseRunUnit? RunUnit { get; set; }
120120

121121
/// <summary>
122-
/// The interval between repetitions, relative to the start date and repetition type.
122+
/// The interval between repetitions, relative to the start date and repetition type. Null for one-time leaderboards.
123123
/// </summary>
124124
[JsonPropertyName("runInterval")]
125-
public required int RunInterval { get; set; }
125+
public int? RunInterval { get; set; }
126126

127127
/// <summary>
128128
/// Additional properties received from the response, if any.

src/TrophyApi/Users/Requests/UsersLeaderboardRequest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ public record UsersLeaderboardRequest
1212
[JsonIgnore]
1313
public string? Run { get; set; }
1414

15+
/// <summary>
16+
/// The number of events to return in the history array.
17+
/// </summary>
18+
[JsonIgnore]
19+
public int? NumEvents { get; set; }
20+
1521
/// <inheritdoc />
1622
public override string ToString()
1723
{

0 commit comments

Comments
 (0)