You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a9c16b1
Browse filesBrowse the repository at this point in the historyBrowse files
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
494
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
502
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
510
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
518
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
Copy file name to clipboardExpand all lines: src/main/java/so/trophy/src/main/java/resources/users/AsyncUsersClient.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -151,30 +151,30 @@ public CompletableFuture<UserPreferencesResponse> getPreferences(String id,
151
151
}
152
152
153
153
/**
154
-
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
154
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
161
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
169
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
177
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
Copy file name to clipboardExpand all lines: src/main/java/so/trophy/src/main/java/resources/users/RawUsersClient.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -398,30 +398,30 @@ public TrophyApiHttpResponse<UserPreferencesResponse> getPreferences(String id,
398
398
}
399
399
400
400
/**
401
-
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
401
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
408
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
416
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
424
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
Copy file name to clipboardExpand all lines: src/main/java/so/trophy/src/main/java/resources/users/UsersClient.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -147,29 +147,29 @@ public UserPreferencesResponse getPreferences(String id, RequestOptions requestO
147
147
}
148
148
149
149
/**
150
-
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
150
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
157
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
164
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
* Update a user's notification and streak preferences. Streak preferences require streak customization to be enabled in your Trophy dashboard settings.
172
+
* Update a user's notification and streak preferences. Streak preferences other than <code>streak.enabled</code> require streak customization to be enabled in your Trophy dashboard settings.
@@ -66,6 +71,14 @@ public Optional<List<StreakMetricPreference>> getMetrics() {
66
71
returnmetrics;
67
72
}
68
73
74
+
/**
75
+
* @return Days of the week that do not count toward the user's daily streak. Represented as zero-based integers matching JavaScript <code>Date.getDay()</code> (0 = Sunday, 6 = Saturday). For example, <code>[0, 6]</code> means Sunday and Saturday are days off. Only applied when streak frequency is daily. Users can still increase their streak on these days; if they do not, the streak stays paused at its current length instead of being lost.
76
+
*/
77
+
@JsonProperty("daysOff")
78
+
publicOptional<List<Integer>> getDaysOff() {
79
+
returndaysOff;
80
+
}
81
+
69
82
@java.lang.Override
70
83
publicbooleanequals(Objectother) {
71
84
if (this == other) returntrue;
@@ -78,12 +91,12 @@ public Map<String, Object> getAdditionalProperties() {
@@ -115,6 +130,7 @@ public Builder from(StreakPreferences other) {
115
130
enabled(other.getEnabled());
116
131
evaluationMode(other.getEvaluationMode());
117
132
metrics(other.getMetrics());
133
+
daysOff(other.getDaysOff());
118
134
returnthis;
119
135
}
120
136
@@ -166,8 +182,25 @@ public Builder metrics(List<StreakMetricPreference> metrics) {
166
182
returnthis;
167
183
}
168
184
185
+
/**
186
+
* <p>Days of the week that do not count toward the user's daily streak. Represented as zero-based integers matching JavaScript <code>Date.getDay()</code> (0 = Sunday, 6 = Saturday). For example, <code>[0, 6]</code> means Sunday and Saturday are days off. Only applied when streak frequency is daily. Users can still increase their streak on these days; if they do not, the streak stays paused at its current length instead of being lost.</p>
0 commit comments