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
# the case of daily streaks), one year (in the case of weekly streaks), or two
21
22
# years (in the case of monthly streaks).
22
23
#
23
-
# @param user_ids [Array<String>] Array of user IDs to restore streaks for. Maximum 100 users per request.
24
+
# @param users [Array<Hash>] Array of users to restore streaks for. Maximum 100 users per request.Request of type Array<TrophyApiClient::Admin::Streaks::RestoreStreaksRequestUsersItem>, as a Hash
# the case of daily streaks), one year (in the case of weekly streaks), or two
64
66
# years (in the case of monthly streaks).
65
67
#
66
-
# @param user_ids [Array<String>] Array of user IDs to restore streaks for. Maximum 100 users per request.
68
+
# @param users [Array<Hash>] Array of users to restore streaks for. Maximum 100 users per request.Request of type Array<TrophyApiClient::Admin::Streaks::RestoreStreaksRequestUsersItem>, as a Hash
# @return [String] The name of the metric associated with this achievement (only applicable if
32
34
# trigger = 'metric')
33
35
attr_reader:metric_name
36
+
# @return [Array<TrophyApiClient::AchievementResponseUserAttributesItem>] User attribute filters that must be met for this achievement to be completed.
37
+
# Only present if the achievement has user attribute filters configured.
38
+
attr_reader:user_attributes
39
+
# @return [TrophyApiClient::AchievementResponseEventAttribute] Event attribute filter that must be met for this achievement to be completed.
40
+
# Only present if the achievement has an event filter configured.
41
+
attr_reader:event_attribute
34
42
# @return [OpenStruct] Additional properties unmapped to the current class definition
35
43
attr_reader:additional_properties
36
44
# @return [Object]
@@ -54,20 +62,26 @@ class AchievementResponse
54
62
# trigger = 'metric')
55
63
# @param metric_name [String] The name of the metric associated with this achievement (only applicable if
56
64
# trigger = 'metric')
65
+
# @param user_attributes [Array<TrophyApiClient::AchievementResponseUserAttributesItem>] User attribute filters that must be met for this achievement to be completed.
66
+
# Only present if the achievement has user attribute filters configured.
67
+
# @param event_attribute [TrophyApiClient::AchievementResponseEventAttribute] Event attribute filter that must be met for this achievement to be completed.
68
+
# Only present if the achievement has an event filter configured.
57
69
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
obj.trigger.is_a?(TrophyApiClient::AchievementResponseTrigger) != false || raise("Passed value for field obj.trigger is not the expected type, validation failed.")
137
165
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
138
166
obj.badge_url&.is_a?(String) != false || raise("Passed value for field obj.badge_url is not the expected type, validation failed.")
139
-
obj.key.is_a?(String) != false || raise("Passed value for field obj.key is not the expected type, validation failed.")
167
+
obj.key&.is_a?(String) != false || raise("Passed value for field obj.key is not the expected type, validation failed.")
140
168
obj.streak_length&.is_a?(Integer) != false || raise("Passed value for field obj.streak_length is not the expected type, validation failed.")
141
169
obj.metric_id&.is_a?(String) != false || raise("Passed value for field obj.metric_id is not the expected type, validation failed.")
142
170
obj.metric_value&.is_a?(Float) != false || raise("Passed value for field obj.metric_value is not the expected type, validation failed.")
143
171
obj.metric_name&.is_a?(String) != false || raise("Passed value for field obj.metric_name is not the expected type, validation failed.")
172
+
obj.user_attributes&.is_a?(Array) != false || raise("Passed value for field obj.user_attributes is not the expected type, validation failed.")
0 commit comments