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
Copy file name to clipboardExpand all lines: lib/trophy_api_client/types/event_response.rb
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,11 @@ class EventResponse
17
17
attr_reader:achievements
18
18
# @return [TrophyApiClient::MetricEventStreakResponse] The user's current streak.
19
19
attr_reader:current_streak
20
-
# @return [Hash{String => TrophyApiClient::MetricEventPointsResponse}] A map of points systems by key.
20
+
# @return [Hash{String => TrophyApiClient::MetricEventPointsResponse}] A map of points systems by key. Only contains points systems that were affected
21
+
# by the event.
21
22
attr_reader:points
22
-
# @return [Hash{String => TrophyApiClient::MetricEventLeaderboardResponse}] A map of leaderboards by key.
23
+
# @return [Hash{String => TrophyApiClient::MetricEventLeaderboardResponse}] A map of leaderboards by key. Only contains leaderboards that were affected by
24
+
# the event.
23
25
attr_reader:leaderboards
24
26
# @return [String] The idempotency key used for the event, if one was provided.
25
27
attr_reader:idempotency_key
@@ -38,8 +40,10 @@ class EventResponse
38
40
# @param total [Float] The user's new total progress against the metric.
39
41
# @param achievements [Array<TrophyApiClient::CompletedAchievementResponse>] Achievements completed as a result of this event.
40
42
# @param current_streak [TrophyApiClient::MetricEventStreakResponse] The user's current streak.
41
-
# @param points [Hash{String => TrophyApiClient::MetricEventPointsResponse}] A map of points systems by key.
42
-
# @param leaderboards [Hash{String => TrophyApiClient::MetricEventLeaderboardResponse}] A map of leaderboards by key.
43
+
# @param points [Hash{String => TrophyApiClient::MetricEventPointsResponse}] A map of points systems by key. Only contains points systems that were affected
44
+
# by the event.
45
+
# @param leaderboards [Hash{String => TrophyApiClient::MetricEventLeaderboardResponse}] A map of leaderboards by key. Only contains leaderboards that were affected by
46
+
# the event.
43
47
# @param idempotency_key [String] The idempotency key used for the event, if one was provided.
44
48
# @param idempotent_replayed [Boolean] Whether the event was replayed due to idempotency.
45
49
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
0 commit comments