@@ -59,6 +59,10 @@ public final class LeaderboardsAllResponseItem implements ILeaderboardResponse {
5959
6060 private final Optional <String > end ;
6161
62+ private final Optional <String > startTime ;
63+
64+ private final Optional <String > endTime ;
65+
6266 private final Optional <Integer > maxParticipants ;
6367
6468 private final Optional <LeaderboardResponseRunUnit > runUnit ;
@@ -73,10 +77,10 @@ private LeaderboardsAllResponseItem(String id, String name, String key,
7377 LeaderboardResponseRankBy rankBy , Optional <String > breakdownAttribute ,
7478 List <String > breakdownAttributes , Optional <String > metricKey , Optional <String > metricName ,
7579 Optional <String > pointsSystemKey , Optional <String > pointsSystemName ,
76- Optional <String > description , String start , Optional <String > end ,
77- Optional <Integer > maxParticipants , Optional <LeaderboardResponseRunUnit > runUnit ,
78- Optional <Integer > runInterval , LeaderboardsAllResponseItemStatus status ,
79- Map <String , Object > additionalProperties ) {
80+ Optional <String > description , String start , Optional <String > end , Optional < String > startTime ,
81+ Optional <String > endTime , Optional <Integer > maxParticipants ,
82+ Optional <LeaderboardResponseRunUnit > runUnit , Optional < Integer > runInterval ,
83+ LeaderboardsAllResponseItemStatus status , Map <String , Object > additionalProperties ) {
8084 this .id = id ;
8185 this .name = name ;
8286 this .key = key ;
@@ -90,6 +94,8 @@ private LeaderboardsAllResponseItem(String id, String name, String key,
9094 this .description = description ;
9195 this .start = start ;
9296 this .end = end ;
97+ this .startTime = startTime ;
98+ this .endTime = endTime ;
9399 this .maxParticipants = maxParticipants ;
94100 this .runUnit = runUnit ;
95101 this .runInterval = runInterval ;
@@ -213,6 +219,24 @@ public Optional<String> getEnd() {
213219 return end ;
214220 }
215221
222+ /**
223+ * @return When set, ranking only counts activity at or after this time of day in the user's timezone (HH:mm format).
224+ */
225+ @ JsonProperty ("startTime" )
226+ @ java .lang .Override
227+ public Optional <String > getStartTime () {
228+ return startTime ;
229+ }
230+
231+ /**
232+ * @return When set, ranking only counts activity before this time of day in the user's timezone (HH:mm format).
233+ */
234+ @ JsonProperty ("endTime" )
235+ @ java .lang .Override
236+ public Optional <String > getEndTime () {
237+ return endTime ;
238+ }
239+
216240 /**
217241 * @return The maximum number of participants in the leaderboard.
218242 */
@@ -259,12 +283,12 @@ public Map<String, Object> getAdditionalProperties() {
259283 }
260284
261285 private boolean equalTo (LeaderboardsAllResponseItem other ) {
262- return id .equals (other .id ) && name .equals (other .name ) && key .equals (other .key ) && rankBy .equals (other .rankBy ) && breakdownAttribute .equals (other .breakdownAttribute ) && breakdownAttributes .equals (other .breakdownAttributes ) && metricKey .equals (other .metricKey ) && metricName .equals (other .metricName ) && pointsSystemKey .equals (other .pointsSystemKey ) && pointsSystemName .equals (other .pointsSystemName ) && description .equals (other .description ) && start .equals (other .start ) && end .equals (other .end ) && maxParticipants .equals (other .maxParticipants ) && runUnit .equals (other .runUnit ) && runInterval .equals (other .runInterval ) && status .equals (other .status );
286+ return id .equals (other .id ) && name .equals (other .name ) && key .equals (other .key ) && rankBy .equals (other .rankBy ) && breakdownAttribute .equals (other .breakdownAttribute ) && breakdownAttributes .equals (other .breakdownAttributes ) && metricKey .equals (other .metricKey ) && metricName .equals (other .metricName ) && pointsSystemKey .equals (other .pointsSystemKey ) && pointsSystemName .equals (other .pointsSystemName ) && description .equals (other .description ) && start .equals (other .start ) && end .equals (other .end ) && startTime . equals ( other . startTime ) && endTime . equals ( other . endTime ) && maxParticipants .equals (other .maxParticipants ) && runUnit .equals (other .runUnit ) && runInterval .equals (other .runInterval ) && status .equals (other .status );
263287 }
264288
265289 @ java .lang .Override
266290 public int hashCode () {
267- return Objects .hash (this .id , this .name , this .key , this .rankBy , this .breakdownAttribute , this .breakdownAttributes , this .metricKey , this .metricName , this .pointsSystemKey , this .pointsSystemName , this .description , this .start , this .end , this .maxParticipants , this .runUnit , this .runInterval , this .status );
291+ return Objects .hash (this .id , this .name , this .key , this .rankBy , this .breakdownAttribute , this .breakdownAttributes , this .metricKey , this .metricName , this .pointsSystemKey , this .pointsSystemName , this .description , this .start , this .end , this .startTime , this . endTime , this . maxParticipants , this .runUnit , this .runInterval , this .status );
268292 }
269293
270294 @ java .lang .Override
@@ -385,6 +409,20 @@ public interface _FinalStage {
385409
386410 _FinalStage end (String end );
387411
412+ /**
413+ * <p>When set, ranking only counts activity at or after this time of day in the user's timezone (HH:mm format).</p>
414+ */
415+ _FinalStage startTime (Optional <String > startTime );
416+
417+ _FinalStage startTime (String startTime );
418+
419+ /**
420+ * <p>When set, ranking only counts activity before this time of day in the user's timezone (HH:mm format).</p>
421+ */
422+ _FinalStage endTime (Optional <String > endTime );
423+
424+ _FinalStage endTime (String endTime );
425+
388426 /**
389427 * <p>The maximum number of participants in the leaderboard.</p>
390428 */
@@ -429,6 +467,10 @@ public static final class Builder implements IdStage, NameStage, KeyStage, RankB
429467
430468 private Optional <Integer > maxParticipants = Optional .empty ();
431469
470+ private Optional <String > endTime = Optional .empty ();
471+
472+ private Optional <String > startTime = Optional .empty ();
473+
432474 private Optional <String > end = Optional .empty ();
433475
434476 private Optional <String > description = Optional .empty ();
@@ -466,6 +508,8 @@ public Builder from(LeaderboardsAllResponseItem other) {
466508 description (other .getDescription ());
467509 start (other .getStart ());
468510 end (other .getEnd ());
511+ startTime (other .getStartTime ());
512+ endTime (other .getEndTime ());
469513 maxParticipants (other .getMaxParticipants ());
470514 runUnit (other .getRunUnit ());
471515 runInterval (other .getRunInterval ());
@@ -608,6 +652,52 @@ public _FinalStage maxParticipants(Optional<Integer> maxParticipants) {
608652 return this ;
609653 }
610654
655+ /**
656+ * <p>When set, ranking only counts activity before this time of day in the user's timezone (HH:mm format).</p>
657+ * @return Reference to {@code this} so that method calls can be chained together.
658+ */
659+ @ java .lang .Override
660+ public _FinalStage endTime (String endTime ) {
661+ this .endTime = Optional .ofNullable (endTime );
662+ return this ;
663+ }
664+
665+ /**
666+ * <p>When set, ranking only counts activity before this time of day in the user's timezone (HH:mm format).</p>
667+ */
668+ @ java .lang .Override
669+ @ JsonSetter (
670+ value = "endTime" ,
671+ nulls = Nulls .SKIP
672+ )
673+ public _FinalStage endTime (Optional <String > endTime ) {
674+ this .endTime = endTime ;
675+ return this ;
676+ }
677+
678+ /**
679+ * <p>When set, ranking only counts activity at or after this time of day in the user's timezone (HH:mm format).</p>
680+ * @return Reference to {@code this} so that method calls can be chained together.
681+ */
682+ @ java .lang .Override
683+ public _FinalStage startTime (String startTime ) {
684+ this .startTime = Optional .ofNullable (startTime );
685+ return this ;
686+ }
687+
688+ /**
689+ * <p>When set, ranking only counts activity at or after this time of day in the user's timezone (HH:mm format).</p>
690+ */
691+ @ java .lang .Override
692+ @ JsonSetter (
693+ value = "startTime" ,
694+ nulls = Nulls .SKIP
695+ )
696+ public _FinalStage startTime (Optional <String > startTime ) {
697+ this .startTime = startTime ;
698+ return this ;
699+ }
700+
611701 /**
612702 * <p>The end date of the leaderboard in YYYY-MM-DD format, or null if it runs forever.</p>
613703 * @return Reference to {@code this} so that method calls can be chained together.
@@ -809,7 +899,7 @@ public _FinalStage breakdownAttribute(Optional<String> breakdownAttribute) {
809899
810900 @ java .lang .Override
811901 public LeaderboardsAllResponseItem build () {
812- return new LeaderboardsAllResponseItem (id , name , key , rankBy , breakdownAttribute , breakdownAttributes , metricKey , metricName , pointsSystemKey , pointsSystemName , description , start , end , maxParticipants , runUnit , runInterval , status , additionalProperties );
902+ return new LeaderboardsAllResponseItem (id , name , key , rankBy , breakdownAttribute , breakdownAttributes , metricKey , metricName , pointsSystemKey , pointsSystemName , description , start , end , startTime , endTime , maxParticipants , runUnit , runInterval , status , additionalProperties );
813903 }
814904
815905 @ java .lang .Override
0 commit comments