activitysmith 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +130 -12
- data/generated/activitysmith_openapi/api/app_icon_badges_api.rb +4 -4
- data/generated/activitysmith_openapi/api/devices_api.rb +100 -0
- data/generated/activitysmith_openapi/api/live_activities_api.rb +4 -4
- data/generated/activitysmith_openapi/api/metrics_api.rb +87 -4
- data/generated/activitysmith_openapi/api/push_notifications_api.rb +67 -0
- data/generated/activitysmith_openapi/models/account_device.rb +367 -0
- data/generated/activitysmith_openapi/models/account_device_list_response.rb +239 -0
- data/generated/activitysmith_openapi/models/account_device_list_response_meta.rb +299 -0
- data/generated/activitysmith_openapi/models/app_icon_badge_count_update_response.rb +1 -1
- data/generated/activitysmith_openapi/models/content_state_start.rb +24 -3
- data/generated/activitysmith_openapi/models/content_state_update.rb +23 -2
- data/generated/activitysmith_openapi/models/live_activity_end_request.rb +42 -4
- data/generated/activitysmith_openapi/models/live_activity_start_request.rb +42 -4
- data/generated/activitysmith_openapi/models/live_activity_stream_delete_request.rb +42 -4
- data/generated/activitysmith_openapi/models/live_activity_stream_delete_response.rb +12 -1
- data/generated/activitysmith_openapi/models/live_activity_stream_request.rb +42 -4
- data/generated/activitysmith_openapi/models/live_activity_update_request.rb +42 -4
- data/generated/activitysmith_openapi/models/metric.rb +411 -0
- data/generated/activitysmith_openapi/models/metric_response.rb +221 -0
- data/generated/activitysmith_openapi/models/metric_upsert_request.rb +370 -0
- data/generated/activitysmith_openapi/models/metric_value_update_response.rb +14 -4
- data/generated/activitysmith_openapi/models/no_recipients_error.rb +21 -1
- data/generated/activitysmith_openapi/models/push_notification_action.rb +1 -1
- data/generated/activitysmith_openapi/models/push_notification_dismiss_response.rb +257 -0
- data/generated/activitysmith_openapi/models/push_notification_replace_request.rb +1 -1
- data/generated/activitysmith_openapi/models/push_notification_request.rb +30 -1
- data/generated/activitysmith_openapi/models/stream_content_state.rb +24 -3
- data/generated/activitysmith_openapi/version.rb +1 -1
- data/generated/activitysmith_openapi.rb +8 -0
- data/generated/openapi-source.json +2 -2
- data/lib/activitysmith/client.rb +3 -1
- data/lib/activitysmith/devices.rb +30 -0
- data/lib/activitysmith/metrics.rb +15 -1
- data/lib/activitysmith/notifications.rb +11 -0
- data/lib/activitysmith/version.rb +1 -1
- data/lib/activitysmith.rb +1 -0
- metadata +11 -2
|
@@ -31,6 +31,9 @@ module OpenapiClient
|
|
|
31
31
|
|
|
32
32
|
attr_accessor :alert
|
|
33
33
|
|
|
34
|
+
# Optional sound for the end. Ends are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
35
|
+
attr_accessor :sound
|
|
36
|
+
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
@@ -39,7 +42,8 @@ module OpenapiClient
|
|
|
39
42
|
:'content_state' => :'content_state',
|
|
40
43
|
:'action' => :'action',
|
|
41
44
|
:'secondary_action' => :'secondary_action',
|
|
42
|
-
:'alert' => :'alert'
|
|
45
|
+
:'alert' => :'alert',
|
|
46
|
+
:'sound' => :'sound'
|
|
43
47
|
}
|
|
44
48
|
end
|
|
45
49
|
|
|
@@ -56,7 +60,8 @@ module OpenapiClient
|
|
|
56
60
|
:'content_state' => :'StreamContentState',
|
|
57
61
|
:'action' => :'LiveActivityAction',
|
|
58
62
|
:'secondary_action' => :'LiveActivityAction',
|
|
59
|
-
:'alert' => :'AlertPayload'
|
|
63
|
+
:'alert' => :'AlertPayload',
|
|
64
|
+
:'sound' => :'String'
|
|
60
65
|
}
|
|
61
66
|
end
|
|
62
67
|
|
|
@@ -108,6 +113,10 @@ module OpenapiClient
|
|
|
108
113
|
if attributes.key?(:'alert')
|
|
109
114
|
self.alert = attributes[:'alert']
|
|
110
115
|
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'sound')
|
|
118
|
+
self.sound = attributes[:'sound']
|
|
119
|
+
end
|
|
111
120
|
end
|
|
112
121
|
|
|
113
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,6 +128,14 @@ module OpenapiClient
|
|
|
119
128
|
invalid_properties.push('invalid value for "metadata", number of items must be less than or equal to 50.')
|
|
120
129
|
end
|
|
121
130
|
|
|
131
|
+
if !@sound.nil? && @sound.to_s.length > 50
|
|
132
|
+
invalid_properties.push('invalid value for "sound", the character length must be smaller than or equal to 50.')
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if !@sound.nil? && @sound.to_s.length < 1
|
|
136
|
+
invalid_properties.push('invalid value for "sound", the character length must be great than or equal to 1.')
|
|
137
|
+
end
|
|
138
|
+
|
|
122
139
|
invalid_properties
|
|
123
140
|
end
|
|
124
141
|
|
|
@@ -127,6 +144,8 @@ module OpenapiClient
|
|
|
127
144
|
def valid?
|
|
128
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
129
146
|
return false if !@metadata.nil? && @metadata.length > 50
|
|
147
|
+
return false if !@sound.nil? && @sound.to_s.length > 50
|
|
148
|
+
return false if !@sound.nil? && @sound.to_s.length < 1
|
|
130
149
|
true
|
|
131
150
|
end
|
|
132
151
|
|
|
@@ -144,6 +163,24 @@ module OpenapiClient
|
|
|
144
163
|
@metadata = metadata
|
|
145
164
|
end
|
|
146
165
|
|
|
166
|
+
# Custom attribute writer method with validation
|
|
167
|
+
# @param [Object] sound Value to be assigned
|
|
168
|
+
def sound=(sound)
|
|
169
|
+
if sound.nil?
|
|
170
|
+
fail ArgumentError, 'sound cannot be nil'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
if sound.to_s.length > 50
|
|
174
|
+
fail ArgumentError, 'invalid value for "sound", the character length must be smaller than or equal to 50.'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if sound.to_s.length < 1
|
|
178
|
+
fail ArgumentError, 'invalid value for "sound", the character length must be great than or equal to 1.'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@sound = sound
|
|
182
|
+
end
|
|
183
|
+
|
|
147
184
|
# Checks equality by comparing each attribute.
|
|
148
185
|
# @param [Object] Object to be compared
|
|
149
186
|
def ==(o)
|
|
@@ -154,7 +191,8 @@ module OpenapiClient
|
|
|
154
191
|
content_state == o.content_state &&
|
|
155
192
|
action == o.action &&
|
|
156
193
|
secondary_action == o.secondary_action &&
|
|
157
|
-
alert == o.alert
|
|
194
|
+
alert == o.alert &&
|
|
195
|
+
sound == o.sound
|
|
158
196
|
end
|
|
159
197
|
|
|
160
198
|
# @see the `==` method
|
|
@@ -166,7 +204,7 @@ module OpenapiClient
|
|
|
166
204
|
# Calculates hash code according to all attributes.
|
|
167
205
|
# @return [Integer] Hash code
|
|
168
206
|
def hash
|
|
169
|
-
[metadata, tags, content_state, action, secondary_action, alert].hash
|
|
207
|
+
[metadata, tags, content_state, action, secondary_action, alert, sound].hash
|
|
170
208
|
end
|
|
171
209
|
|
|
172
210
|
# Builds the object from hash
|
|
@@ -37,6 +37,10 @@ module OpenapiClient
|
|
|
37
37
|
|
|
38
38
|
attr_accessor :forced_completion
|
|
39
39
|
|
|
40
|
+
# Present when the stream had a current Live Activity. True when the end was sent to at least one device, or queued for a device that has not registered yet. False when no device received it, so the Live Activity may stay on the Lock Screen until iOS removes it or someone dismisses it.
|
|
41
|
+
attr_accessor :delivered
|
|
42
|
+
|
|
43
|
+
# Explains why the end may not have removed the Live Activity, for example because iOS had already ended a Live Activity that started more than 8 hours ago.
|
|
40
44
|
attr_accessor :warning
|
|
41
45
|
|
|
42
46
|
# Per-device delivery errors when some devices could not be reached.
|
|
@@ -77,6 +81,7 @@ module OpenapiClient
|
|
|
77
81
|
:'ignored' => :'ignored',
|
|
78
82
|
:'message' => :'message',
|
|
79
83
|
:'forced_completion' => :'forced_completion',
|
|
84
|
+
:'delivered' => :'delivered',
|
|
80
85
|
:'warning' => :'warning',
|
|
81
86
|
:'errors' => :'errors'
|
|
82
87
|
}
|
|
@@ -100,6 +105,7 @@ module OpenapiClient
|
|
|
100
105
|
:'ignored' => :'Boolean',
|
|
101
106
|
:'message' => :'String',
|
|
102
107
|
:'forced_completion' => :'Boolean',
|
|
108
|
+
:'delivered' => :'Boolean',
|
|
103
109
|
:'warning' => :'String',
|
|
104
110
|
:'errors' => :'Array<String>'
|
|
105
111
|
}
|
|
@@ -175,6 +181,10 @@ module OpenapiClient
|
|
|
175
181
|
self.forced_completion = attributes[:'forced_completion']
|
|
176
182
|
end
|
|
177
183
|
|
|
184
|
+
if attributes.key?(:'delivered')
|
|
185
|
+
self.delivered = attributes[:'delivered']
|
|
186
|
+
end
|
|
187
|
+
|
|
178
188
|
if attributes.key?(:'warning')
|
|
179
189
|
self.warning = attributes[:'warning']
|
|
180
190
|
end
|
|
@@ -248,6 +258,7 @@ module OpenapiClient
|
|
|
248
258
|
ignored == o.ignored &&
|
|
249
259
|
message == o.message &&
|
|
250
260
|
forced_completion == o.forced_completion &&
|
|
261
|
+
delivered == o.delivered &&
|
|
251
262
|
warning == o.warning &&
|
|
252
263
|
errors == o.errors
|
|
253
264
|
end
|
|
@@ -261,7 +272,7 @@ module OpenapiClient
|
|
|
261
272
|
# Calculates hash code according to all attributes.
|
|
262
273
|
# @return [Integer] Hash code
|
|
263
274
|
def hash
|
|
264
|
-
[success, operation, stream_key, activity_id, devices_queued, devices_notified, timestamp, ignored, message, forced_completion, warning, errors].hash
|
|
275
|
+
[success, operation, stream_key, activity_id, devices_queued, devices_notified, timestamp, ignored, message, forced_completion, delivered, warning, errors].hash
|
|
265
276
|
end
|
|
266
277
|
|
|
267
278
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module OpenapiClient
|
|
|
36
36
|
# Optional tags to organize and filter notification history.
|
|
37
37
|
attr_accessor :tags
|
|
38
38
|
|
|
39
|
+
# Optional sound for this call. A call that starts a Live Activity plays the Live Activities sound picked on the device unless you set one. Updates are silent unless you set one. A sound on an update also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
40
|
+
attr_accessor :sound
|
|
41
|
+
|
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
43
|
def self.attribute_map
|
|
41
44
|
{
|
|
@@ -46,7 +49,8 @@ module OpenapiClient
|
|
|
46
49
|
:'alert' => :'alert',
|
|
47
50
|
:'channels' => :'channels',
|
|
48
51
|
:'target' => :'target',
|
|
49
|
-
:'tags' => :'tags'
|
|
52
|
+
:'tags' => :'tags',
|
|
53
|
+
:'sound' => :'sound'
|
|
50
54
|
}
|
|
51
55
|
end
|
|
52
56
|
|
|
@@ -65,7 +69,8 @@ module OpenapiClient
|
|
|
65
69
|
:'alert' => :'AlertPayload',
|
|
66
70
|
:'channels' => :'Array<String>',
|
|
67
71
|
:'target' => :'ChannelTarget',
|
|
68
|
-
:'tags' => :'Array<String>'
|
|
72
|
+
:'tags' => :'Array<String>',
|
|
73
|
+
:'sound' => :'String'
|
|
69
74
|
}
|
|
70
75
|
end
|
|
71
76
|
|
|
@@ -129,6 +134,10 @@ module OpenapiClient
|
|
|
129
134
|
self.tags = value
|
|
130
135
|
end
|
|
131
136
|
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'sound')
|
|
139
|
+
self.sound = attributes[:'sound']
|
|
140
|
+
end
|
|
132
141
|
end
|
|
133
142
|
|
|
134
143
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -148,6 +157,14 @@ module OpenapiClient
|
|
|
148
157
|
invalid_properties.push('invalid value for "channels", number of items must be greater than or equal to 1.')
|
|
149
158
|
end
|
|
150
159
|
|
|
160
|
+
if !@sound.nil? && @sound.to_s.length > 50
|
|
161
|
+
invalid_properties.push('invalid value for "sound", the character length must be smaller than or equal to 50.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if !@sound.nil? && @sound.to_s.length < 1
|
|
165
|
+
invalid_properties.push('invalid value for "sound", the character length must be great than or equal to 1.')
|
|
166
|
+
end
|
|
167
|
+
|
|
151
168
|
invalid_properties
|
|
152
169
|
end
|
|
153
170
|
|
|
@@ -158,6 +175,8 @@ module OpenapiClient
|
|
|
158
175
|
return false if !@metadata.nil? && @metadata.length > 50
|
|
159
176
|
return false if @content_state.nil?
|
|
160
177
|
return false if !@channels.nil? && @channels.length < 1
|
|
178
|
+
return false if !@sound.nil? && @sound.to_s.length > 50
|
|
179
|
+
return false if !@sound.nil? && @sound.to_s.length < 1
|
|
161
180
|
true
|
|
162
181
|
end
|
|
163
182
|
|
|
@@ -189,6 +208,24 @@ module OpenapiClient
|
|
|
189
208
|
@channels = channels
|
|
190
209
|
end
|
|
191
210
|
|
|
211
|
+
# Custom attribute writer method with validation
|
|
212
|
+
# @param [Object] sound Value to be assigned
|
|
213
|
+
def sound=(sound)
|
|
214
|
+
if sound.nil?
|
|
215
|
+
fail ArgumentError, 'sound cannot be nil'
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if sound.to_s.length > 50
|
|
219
|
+
fail ArgumentError, 'invalid value for "sound", the character length must be smaller than or equal to 50.'
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if sound.to_s.length < 1
|
|
223
|
+
fail ArgumentError, 'invalid value for "sound", the character length must be great than or equal to 1.'
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
@sound = sound
|
|
227
|
+
end
|
|
228
|
+
|
|
192
229
|
# Checks equality by comparing each attribute.
|
|
193
230
|
# @param [Object] Object to be compared
|
|
194
231
|
def ==(o)
|
|
@@ -201,7 +238,8 @@ module OpenapiClient
|
|
|
201
238
|
alert == o.alert &&
|
|
202
239
|
channels == o.channels &&
|
|
203
240
|
target == o.target &&
|
|
204
|
-
tags == o.tags
|
|
241
|
+
tags == o.tags &&
|
|
242
|
+
sound == o.sound
|
|
205
243
|
end
|
|
206
244
|
|
|
207
245
|
# @see the `==` method
|
|
@@ -213,7 +251,7 @@ module OpenapiClient
|
|
|
213
251
|
# Calculates hash code according to all attributes.
|
|
214
252
|
# @return [Integer] Hash code
|
|
215
253
|
def hash
|
|
216
|
-
[metadata, content_state, action, secondary_action, alert, channels, target, tags].hash
|
|
254
|
+
[metadata, content_state, action, secondary_action, alert, channels, target, tags, sound].hash
|
|
217
255
|
end
|
|
218
256
|
|
|
219
257
|
# Builds the object from hash
|
|
@@ -31,6 +31,9 @@ module OpenapiClient
|
|
|
31
31
|
# Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
|
|
32
32
|
attr_accessor :secondary_action
|
|
33
33
|
|
|
34
|
+
# Optional sound for this update. Updates are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
|
|
35
|
+
attr_accessor :sound
|
|
36
|
+
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
@@ -39,7 +42,8 @@ module OpenapiClient
|
|
|
39
42
|
:'tags' => :'tags',
|
|
40
43
|
:'content_state' => :'content_state',
|
|
41
44
|
:'action' => :'action',
|
|
42
|
-
:'secondary_action' => :'secondary_action'
|
|
45
|
+
:'secondary_action' => :'secondary_action',
|
|
46
|
+
:'sound' => :'sound'
|
|
43
47
|
}
|
|
44
48
|
end
|
|
45
49
|
|
|
@@ -56,7 +60,8 @@ module OpenapiClient
|
|
|
56
60
|
:'tags' => :'Array<String>',
|
|
57
61
|
:'content_state' => :'ContentStateUpdate',
|
|
58
62
|
:'action' => :'LiveActivityAction',
|
|
59
|
-
:'secondary_action' => :'LiveActivityAction'
|
|
63
|
+
:'secondary_action' => :'LiveActivityAction',
|
|
64
|
+
:'sound' => :'String'
|
|
60
65
|
}
|
|
61
66
|
end
|
|
62
67
|
|
|
@@ -112,6 +117,10 @@ module OpenapiClient
|
|
|
112
117
|
if attributes.key?(:'secondary_action')
|
|
113
118
|
self.secondary_action = attributes[:'secondary_action']
|
|
114
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'sound')
|
|
122
|
+
self.sound = attributes[:'sound']
|
|
123
|
+
end
|
|
115
124
|
end
|
|
116
125
|
|
|
117
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -135,6 +144,14 @@ module OpenapiClient
|
|
|
135
144
|
invalid_properties.push('invalid value for "content_state", content_state cannot be nil.')
|
|
136
145
|
end
|
|
137
146
|
|
|
147
|
+
if !@sound.nil? && @sound.to_s.length > 50
|
|
148
|
+
invalid_properties.push('invalid value for "sound", the character length must be smaller than or equal to 50.')
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if !@sound.nil? && @sound.to_s.length < 1
|
|
152
|
+
invalid_properties.push('invalid value for "sound", the character length must be great than or equal to 1.')
|
|
153
|
+
end
|
|
154
|
+
|
|
138
155
|
invalid_properties
|
|
139
156
|
end
|
|
140
157
|
|
|
@@ -146,6 +163,8 @@ module OpenapiClient
|
|
|
146
163
|
return false if @activity_id.nil?
|
|
147
164
|
return false if !@tags.nil? && @tags.length > 20
|
|
148
165
|
return false if @content_state.nil?
|
|
166
|
+
return false if !@sound.nil? && @sound.to_s.length > 50
|
|
167
|
+
return false if !@sound.nil? && @sound.to_s.length < 1
|
|
149
168
|
true
|
|
150
169
|
end
|
|
151
170
|
|
|
@@ -177,6 +196,24 @@ module OpenapiClient
|
|
|
177
196
|
@tags = tags
|
|
178
197
|
end
|
|
179
198
|
|
|
199
|
+
# Custom attribute writer method with validation
|
|
200
|
+
# @param [Object] sound Value to be assigned
|
|
201
|
+
def sound=(sound)
|
|
202
|
+
if sound.nil?
|
|
203
|
+
fail ArgumentError, 'sound cannot be nil'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if sound.to_s.length > 50
|
|
207
|
+
fail ArgumentError, 'invalid value for "sound", the character length must be smaller than or equal to 50.'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if sound.to_s.length < 1
|
|
211
|
+
fail ArgumentError, 'invalid value for "sound", the character length must be great than or equal to 1.'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@sound = sound
|
|
215
|
+
end
|
|
216
|
+
|
|
180
217
|
# Checks equality by comparing each attribute.
|
|
181
218
|
# @param [Object] Object to be compared
|
|
182
219
|
def ==(o)
|
|
@@ -187,7 +224,8 @@ module OpenapiClient
|
|
|
187
224
|
tags == o.tags &&
|
|
188
225
|
content_state == o.content_state &&
|
|
189
226
|
action == o.action &&
|
|
190
|
-
secondary_action == o.secondary_action
|
|
227
|
+
secondary_action == o.secondary_action &&
|
|
228
|
+
sound == o.sound
|
|
191
229
|
end
|
|
192
230
|
|
|
193
231
|
# @see the `==` method
|
|
@@ -199,7 +237,7 @@ module OpenapiClient
|
|
|
199
237
|
# Calculates hash code according to all attributes.
|
|
200
238
|
# @return [Integer] Hash code
|
|
201
239
|
def hash
|
|
202
|
-
[metadata, activity_id, tags, content_state, action, secondary_action].hash
|
|
240
|
+
[metadata, activity_id, tags, content_state, action, secondary_action, sound].hash
|
|
203
241
|
end
|
|
204
242
|
|
|
205
243
|
# Builds the object from hash
|