Skip to content

Commit 7cd2d4f

Browse files
Automatically update Java SDK
1 parent cf21bd1 commit 7cd2d4f

9 files changed

Lines changed: 165 additions & 69 deletions

File tree

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<!-- General project information -->
99
<groupId>so.trophy</groupId>
1010
<artifactId>trophy-java</artifactId>
11-
<version>1.10.0</version>
11+
<version>1.11.0</version>
1212
<packaging>jar</packaging>
1313
<name>Trophy</name>
1414
<description>Java client library for the Trophy API</description>

‎src/main/java/so/trophy/core/ClientOptions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private ClientOptions(Environment environment, Map<String, String> headers,
3030
this.environment = environment;
3131
this.headers = new HashMap<>();
3232
this.headers.putAll(headers);
33-
this.headers.putAll(new HashMap<String,String>() {{put("X-Fern-Language", "JAVA");put("X-Fern-SDK-Name", "com.trophy.fern:api-sdk");put("X-Fern-SDK-Version", "0.0.3547");}});
33+
this.headers.putAll(new HashMap<String,String>() {{put("X-Fern-Language", "JAVA");put("X-Fern-SDK-Name", "com.trophy.fern:api-sdk");put("X-Fern-SDK-Version", "0.0.3815");}});
3434
this.headerSuppliers = headerSuppliers;
3535
this.httpClient = httpClient;
3636
this.timeout = timeout;

‎src/main/java/so/trophy/resources/users/AsyncRawUsersClient.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,23 +1102,23 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
11021102
}
11031103

11041104
/**
1105-
* Get a user's rank, value, and history for a specific leaderboard.
1105+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
11061106
*/
11071107
public CompletableFuture<TrophyApiHttpResponse<UserLeaderboardResponseWithHistory>> leaderboard(
11081108
String id, String key) {
11091109
return leaderboard(id,key,UsersLeaderboardRequest.builder().build());
11101110
}
11111111

11121112
/**
1113-
* Get a user's rank, value, and history for a specific leaderboard.
1113+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
11141114
*/
11151115
public CompletableFuture<TrophyApiHttpResponse<UserLeaderboardResponseWithHistory>> leaderboard(
11161116
String id, String key, UsersLeaderboardRequest request) {
11171117
return leaderboard(id,key,request,null);
11181118
}
11191119

11201120
/**
1121-
* Get a user's rank, value, and history for a specific leaderboard.
1121+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
11221122
*/
11231123
public CompletableFuture<TrophyApiHttpResponse<UserLeaderboardResponseWithHistory>> leaderboard(
11241124
String id, String key, UsersLeaderboardRequest request,

‎src/main/java/so/trophy/resources/users/AsyncUsersClient.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,22 +305,22 @@ public CompletableFuture<List<UsersPointsEventSummaryResponseItem>> pointsEventS
305305
}
306306

307307
/**
308-
* Get a user's rank, value, and history for a specific leaderboard.
308+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
309309
*/
310310
public CompletableFuture<UserLeaderboardResponseWithHistory> leaderboard(String id, String key) {
311311
return this.rawClient.leaderboard(id, key).thenApply(response -> response.body());
312312
}
313313

314314
/**
315-
* Get a user's rank, value, and history for a specific leaderboard.
315+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
316316
*/
317317
public CompletableFuture<UserLeaderboardResponseWithHistory> leaderboard(String id, String key,
318318
UsersLeaderboardRequest request) {
319319
return this.rawClient.leaderboard(id, key, request).thenApply(response -> response.body());
320320
}
321321

322322
/**
323-
* Get a user's rank, value, and history for a specific leaderboard.
323+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
324324
*/
325325
public CompletableFuture<UserLeaderboardResponseWithHistory> leaderboard(String id, String key,
326326
UsersLeaderboardRequest request, RequestOptions requestOptions) {

‎src/main/java/so/trophy/resources/users/RawUsersClient.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,23 +863,23 @@ public TrophyApiHttpResponse<List<UsersPointsEventSummaryResponseItem>> pointsEv
863863
}
864864

865865
/**
866-
* Get a user's rank, value, and history for a specific leaderboard.
866+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
867867
*/
868868
public TrophyApiHttpResponse<UserLeaderboardResponseWithHistory> leaderboard(String id,
869869
String key) {
870870
return leaderboard(id,key,UsersLeaderboardRequest.builder().build());
871871
}
872872

873873
/**
874-
* Get a user's rank, value, and history for a specific leaderboard.
874+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
875875
*/
876876
public TrophyApiHttpResponse<UserLeaderboardResponseWithHistory> leaderboard(String id,
877877
String key, UsersLeaderboardRequest request) {
878878
return leaderboard(id,key,request,null);
879879
}
880880

881881
/**
882-
* Get a user's rank, value, and history for a specific leaderboard.
882+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
883883
*/
884884
public TrophyApiHttpResponse<UserLeaderboardResponseWithHistory> leaderboard(String id,
885885
String key, UsersLeaderboardRequest request, RequestOptions requestOptions) {

‎src/main/java/so/trophy/resources/users/UsersClient.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,22 +297,22 @@ public List<UsersPointsEventSummaryResponseItem> pointsEventSummary(String id, S
297297
}
298298

299299
/**
300-
* Get a user's rank, value, and history for a specific leaderboard.
300+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
301301
*/
302302
public UserLeaderboardResponseWithHistory leaderboard(String id, String key) {
303303
return this.rawClient.leaderboard(id, key).body();
304304
}
305305

306306
/**
307-
* Get a user's rank, value, and history for a specific leaderboard.
307+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
308308
*/
309309
public UserLeaderboardResponseWithHistory leaderboard(String id, String key,
310310
UsersLeaderboardRequest request) {
311311
return this.rawClient.leaderboard(id, key, request).body();
312312
}
313313

314314
/**
315-
* Get a user's rank, value, and history for a specific leaderboard.
315+
* Get a user's rank, value, and daily ranking history for a specific leaderboard.
316316
*/
317317
public UserLeaderboardResponseWithHistory leaderboard(String id, String key,
318318
UsersLeaderboardRequest request, RequestOptions requestOptions) {

‎src/main/java/so/trophy/resources/users/requests/UsersLeaderboardRequest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public Optional<String> getRun() {
4949
}
5050

5151
/**
52-
* @return The number of events to return in the history array.
52+
* @return The number of days to return in the leaderboard history for the user.
5353
*/
5454
@JsonProperty("numEvents")
5555
public Optional<Integer> getNumEvents() {
@@ -123,7 +123,7 @@ public Builder run(String run) {
123123
}
124124

125125
/**
126-
* <p>The number of events to return in the history array.</p>
126+
* <p>The number of days to return in the leaderboard history for the user.</p>
127127
*/
128128
@JsonSetter(
129129
value = "numEvents",

0 commit comments

Comments
 (0)