activitysmith 1.12.0 → 1.14.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 +117 -11
- data/generated/activitysmith_openapi/api/push_notifications_api.rb +80 -2
- data/generated/activitysmith_openapi/models/app_icon_badge_count_update_response.rb +34 -4
- data/generated/activitysmith_openapi/models/billing_blocked_error.rb +296 -0
- data/generated/activitysmith_openapi/models/billing_blocked_error_trial_period.rb +237 -0
- data/generated/activitysmith_openapi/models/live_activity_end_response.rb +64 -4
- data/generated/activitysmith_openapi/models/live_activity_start_response.rb +35 -4
- data/generated/activitysmith_openapi/models/live_activity_stream_delete_response.rb +53 -4
- data/generated/activitysmith_openapi/models/live_activity_stream_put_response.rb +54 -4
- data/generated/activitysmith_openapi/models/live_activity_update_response.rb +76 -4
- data/generated/activitysmith_openapi/models/push_interruption_level.rb +41 -0
- data/generated/activitysmith_openapi/models/push_notification_replace_request.rb +434 -0
- data/generated/activitysmith_openapi/models/push_notification_replace_response.rb +298 -0
- data/generated/activitysmith_openapi/models/push_notification_request.rb +64 -1
- data/generated/activitysmith_openapi/models/push_notification_response.rb +66 -4
- data/generated/activitysmith_openapi/version.rb +1 -1
- data/generated/activitysmith_openapi.rb +5 -0
- data/generated/openapi-source.json +2 -2
- data/lib/activitysmith/notifications.rb +21 -3
- data/lib/activitysmith/push_interruption_level.rb +10 -0
- data/lib/activitysmith/version.rb +1 -1
- data/lib/activitysmith.rb +1 -0
- metadata +8 -2
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#ActivitySmith API
|
|
3
|
+
|
|
4
|
+
#Send push notifications and Live Activities to your own devices via a single API key.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.7.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module OpenapiClient
|
|
17
|
+
class BillingBlockedErrorTrialPeriod
|
|
18
|
+
attr_accessor :started_at
|
|
19
|
+
|
|
20
|
+
attr_accessor :ends_at
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'started_at' => :'started_at',
|
|
26
|
+
:'ends_at' => :'ends_at'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
|
31
|
+
def self.acceptable_attributes
|
|
32
|
+
attribute_map.values
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.openapi_types
|
|
37
|
+
{
|
|
38
|
+
:'started_at' => :'Time',
|
|
39
|
+
:'ends_at' => :'Time'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# List of attributes with nullable: true
|
|
44
|
+
def self.openapi_nullable
|
|
45
|
+
Set.new([
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::BillingBlockedErrorTrialPeriod` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::BillingBlockedErrorTrialPeriod`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'started_at')
|
|
65
|
+
self.started_at = attributes[:'started_at']
|
|
66
|
+
else
|
|
67
|
+
self.started_at = nil
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'ends_at')
|
|
71
|
+
self.ends_at = attributes[:'ends_at']
|
|
72
|
+
else
|
|
73
|
+
self.ends_at = nil
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
+
# @return Array for valid properties with the reasons
|
|
79
|
+
def list_invalid_properties
|
|
80
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
81
|
+
invalid_properties = Array.new
|
|
82
|
+
if @started_at.nil?
|
|
83
|
+
invalid_properties.push('invalid value for "started_at", started_at cannot be nil.')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if @ends_at.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "ends_at", ends_at cannot be nil.')
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
97
|
+
return false if @started_at.nil?
|
|
98
|
+
return false if @ends_at.nil?
|
|
99
|
+
true
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Checks equality by comparing each attribute.
|
|
103
|
+
# @param [Object] Object to be compared
|
|
104
|
+
def ==(o)
|
|
105
|
+
return true if self.equal?(o)
|
|
106
|
+
self.class == o.class &&
|
|
107
|
+
started_at == o.started_at &&
|
|
108
|
+
ends_at == o.ends_at
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @see the `==` method
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def eql?(o)
|
|
114
|
+
self == o
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Calculates hash code according to all attributes.
|
|
118
|
+
# @return [Integer] Hash code
|
|
119
|
+
def hash
|
|
120
|
+
[started_at, ends_at].hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Builds the object from hash
|
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
|
+
# @return [Object] Returns the model itself
|
|
126
|
+
def self.build_from_hash(attributes)
|
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
129
|
+
transformed_hash = {}
|
|
130
|
+
openapi_types.each_pair do |key, type|
|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = nil
|
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
134
|
+
# check to ensure the input is an array given that the attribute
|
|
135
|
+
# is documented as an array but the input is not
|
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
138
|
+
end
|
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
new(transformed_hash)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Deserializes the data based on type
|
|
147
|
+
# @param string type Data type
|
|
148
|
+
# @param string value Value to be deserialized
|
|
149
|
+
# @return [Object] Deserialized data
|
|
150
|
+
def self._deserialize(type, value)
|
|
151
|
+
case type.to_sym
|
|
152
|
+
when :Time
|
|
153
|
+
Time.parse(value)
|
|
154
|
+
when :Date
|
|
155
|
+
Date.parse(value)
|
|
156
|
+
when :String
|
|
157
|
+
value.to_s
|
|
158
|
+
when :Integer
|
|
159
|
+
value.to_i
|
|
160
|
+
when :Float
|
|
161
|
+
value.to_f
|
|
162
|
+
when :Boolean
|
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
164
|
+
true
|
|
165
|
+
else
|
|
166
|
+
false
|
|
167
|
+
end
|
|
168
|
+
when :Object
|
|
169
|
+
# generic object (usually a Hash), return directly
|
|
170
|
+
value
|
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
|
177
|
+
{}.tap do |hash|
|
|
178
|
+
value.each do |k, v|
|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
else # model
|
|
183
|
+
# models (e.g. Pet) or oneOf
|
|
184
|
+
klass = OpenapiClient.const_get(type)
|
|
185
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Returns the string representation of the object
|
|
190
|
+
# @return [String] String presentation of the object
|
|
191
|
+
def to_s
|
|
192
|
+
to_hash.to_s
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
|
197
|
+
def to_body
|
|
198
|
+
to_hash
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the object in the form of hash
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_hash
|
|
204
|
+
hash = {}
|
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
+
value = self.send(attr)
|
|
207
|
+
if value.nil?
|
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Outputs non-array value in the form of hash
|
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
+
# @param [Object] value Any valid value
|
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
|
221
|
+
def _to_hash(value)
|
|
222
|
+
if value.is_a?(Array)
|
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
|
224
|
+
elsif value.is_a?(Hash)
|
|
225
|
+
{}.tap do |hash|
|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
+
end
|
|
228
|
+
elsif value.respond_to? :to_hash
|
|
229
|
+
value.to_hash
|
|
230
|
+
else
|
|
231
|
+
value
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
|
@@ -26,6 +26,21 @@ module OpenapiClient
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :timestamp
|
|
28
28
|
|
|
29
|
+
# True when the Live Activity had already ended and the request had no effect.
|
|
30
|
+
attr_accessor :ignored
|
|
31
|
+
|
|
32
|
+
attr_accessor :message
|
|
33
|
+
|
|
34
|
+
attr_accessor :end_reason
|
|
35
|
+
|
|
36
|
+
# True when the Live Activity was marked complete without a confirmed APNs end delivery.
|
|
37
|
+
attr_accessor :forced_completion
|
|
38
|
+
|
|
39
|
+
attr_accessor :warning
|
|
40
|
+
|
|
41
|
+
# Per-device delivery errors when some devices could not be reached.
|
|
42
|
+
attr_accessor :errors
|
|
43
|
+
|
|
29
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
45
|
def self.attribute_map
|
|
31
46
|
{
|
|
@@ -33,7 +48,13 @@ module OpenapiClient
|
|
|
33
48
|
:'activity_id' => :'activity_id',
|
|
34
49
|
:'devices_queued' => :'devices_queued',
|
|
35
50
|
:'devices_notified' => :'devices_notified',
|
|
36
|
-
:'timestamp' => :'timestamp'
|
|
51
|
+
:'timestamp' => :'timestamp',
|
|
52
|
+
:'ignored' => :'ignored',
|
|
53
|
+
:'message' => :'message',
|
|
54
|
+
:'end_reason' => :'end_reason',
|
|
55
|
+
:'forced_completion' => :'forced_completion',
|
|
56
|
+
:'warning' => :'warning',
|
|
57
|
+
:'errors' => :'errors'
|
|
37
58
|
}
|
|
38
59
|
end
|
|
39
60
|
|
|
@@ -49,13 +70,20 @@ module OpenapiClient
|
|
|
49
70
|
:'activity_id' => :'String',
|
|
50
71
|
:'devices_queued' => :'Integer',
|
|
51
72
|
:'devices_notified' => :'Integer',
|
|
52
|
-
:'timestamp' => :'Time'
|
|
73
|
+
:'timestamp' => :'Time',
|
|
74
|
+
:'ignored' => :'Boolean',
|
|
75
|
+
:'message' => :'String',
|
|
76
|
+
:'end_reason' => :'String',
|
|
77
|
+
:'forced_completion' => :'Boolean',
|
|
78
|
+
:'warning' => :'String',
|
|
79
|
+
:'errors' => :'Array<String>'
|
|
53
80
|
}
|
|
54
81
|
end
|
|
55
82
|
|
|
56
83
|
# List of attributes with nullable: true
|
|
57
84
|
def self.openapi_nullable
|
|
58
85
|
Set.new([
|
|
86
|
+
:'end_reason',
|
|
59
87
|
])
|
|
60
88
|
end
|
|
61
89
|
|
|
@@ -99,6 +127,32 @@ module OpenapiClient
|
|
|
99
127
|
else
|
|
100
128
|
self.timestamp = nil
|
|
101
129
|
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'ignored')
|
|
132
|
+
self.ignored = attributes[:'ignored']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'message')
|
|
136
|
+
self.message = attributes[:'message']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'end_reason')
|
|
140
|
+
self.end_reason = attributes[:'end_reason']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'forced_completion')
|
|
144
|
+
self.forced_completion = attributes[:'forced_completion']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'warning')
|
|
148
|
+
self.warning = attributes[:'warning']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'errors')
|
|
152
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
153
|
+
self.errors = value
|
|
154
|
+
end
|
|
155
|
+
end
|
|
102
156
|
end
|
|
103
157
|
|
|
104
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -140,7 +194,13 @@ module OpenapiClient
|
|
|
140
194
|
activity_id == o.activity_id &&
|
|
141
195
|
devices_queued == o.devices_queued &&
|
|
142
196
|
devices_notified == o.devices_notified &&
|
|
143
|
-
timestamp == o.timestamp
|
|
197
|
+
timestamp == o.timestamp &&
|
|
198
|
+
ignored == o.ignored &&
|
|
199
|
+
message == o.message &&
|
|
200
|
+
end_reason == o.end_reason &&
|
|
201
|
+
forced_completion == o.forced_completion &&
|
|
202
|
+
warning == o.warning &&
|
|
203
|
+
errors == o.errors
|
|
144
204
|
end
|
|
145
205
|
|
|
146
206
|
# @see the `==` method
|
|
@@ -152,7 +212,7 @@ module OpenapiClient
|
|
|
152
212
|
# Calculates hash code according to all attributes.
|
|
153
213
|
# @return [Integer] Hash code
|
|
154
214
|
def hash
|
|
155
|
-
[success, activity_id, devices_queued, devices_notified, timestamp].hash
|
|
215
|
+
[success, activity_id, devices_queued, devices_notified, timestamp, ignored, message, end_reason, forced_completion, warning, errors].hash
|
|
156
216
|
end
|
|
157
217
|
|
|
158
218
|
# Builds the object from hash
|
|
@@ -31,6 +31,14 @@ module OpenapiClient
|
|
|
31
31
|
|
|
32
32
|
attr_accessor :timestamp
|
|
33
33
|
|
|
34
|
+
# Present when starting this Live Activity ended an older one to stay within the device limit.
|
|
35
|
+
attr_accessor :ended_activity_id
|
|
36
|
+
|
|
37
|
+
attr_accessor :message
|
|
38
|
+
|
|
39
|
+
# Per-device delivery errors when some devices could not be reached.
|
|
40
|
+
attr_accessor :errors
|
|
41
|
+
|
|
34
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
43
|
def self.attribute_map
|
|
36
44
|
{
|
|
@@ -40,7 +48,10 @@ module OpenapiClient
|
|
|
40
48
|
:'activity_id' => :'activity_id',
|
|
41
49
|
:'effective_channel_slugs' => :'effective_channel_slugs',
|
|
42
50
|
:'tags' => :'tags',
|
|
43
|
-
:'timestamp' => :'timestamp'
|
|
51
|
+
:'timestamp' => :'timestamp',
|
|
52
|
+
:'ended_activity_id' => :'ended_activity_id',
|
|
53
|
+
:'message' => :'message',
|
|
54
|
+
:'errors' => :'errors'
|
|
44
55
|
}
|
|
45
56
|
end
|
|
46
57
|
|
|
@@ -58,7 +69,10 @@ module OpenapiClient
|
|
|
58
69
|
:'activity_id' => :'String',
|
|
59
70
|
:'effective_channel_slugs' => :'Array<String>',
|
|
60
71
|
:'tags' => :'Array<String>',
|
|
61
|
-
:'timestamp' => :'Time'
|
|
72
|
+
:'timestamp' => :'Time',
|
|
73
|
+
:'ended_activity_id' => :'String',
|
|
74
|
+
:'message' => :'String',
|
|
75
|
+
:'errors' => :'Array<String>'
|
|
62
76
|
}
|
|
63
77
|
end
|
|
64
78
|
|
|
@@ -120,6 +134,20 @@ module OpenapiClient
|
|
|
120
134
|
else
|
|
121
135
|
self.timestamp = nil
|
|
122
136
|
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'ended_activity_id')
|
|
139
|
+
self.ended_activity_id = attributes[:'ended_activity_id']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'message')
|
|
143
|
+
self.message = attributes[:'message']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'errors')
|
|
147
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
148
|
+
self.errors = value
|
|
149
|
+
end
|
|
150
|
+
end
|
|
123
151
|
end
|
|
124
152
|
|
|
125
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -163,7 +191,10 @@ module OpenapiClient
|
|
|
163
191
|
activity_id == o.activity_id &&
|
|
164
192
|
effective_channel_slugs == o.effective_channel_slugs &&
|
|
165
193
|
tags == o.tags &&
|
|
166
|
-
timestamp == o.timestamp
|
|
194
|
+
timestamp == o.timestamp &&
|
|
195
|
+
ended_activity_id == o.ended_activity_id &&
|
|
196
|
+
message == o.message &&
|
|
197
|
+
errors == o.errors
|
|
167
198
|
end
|
|
168
199
|
|
|
169
200
|
# @see the `==` method
|
|
@@ -175,7 +206,7 @@ module OpenapiClient
|
|
|
175
206
|
# Calculates hash code according to all attributes.
|
|
176
207
|
# @return [Integer] Hash code
|
|
177
208
|
def hash
|
|
178
|
-
[success, devices_notified, users_notified, activity_id, effective_channel_slugs, tags, timestamp].hash
|
|
209
|
+
[success, devices_notified, users_notified, activity_id, effective_channel_slugs, tags, timestamp, ended_activity_id, message, errors].hash
|
|
179
210
|
end
|
|
180
211
|
|
|
181
212
|
# Builds the object from hash
|
|
@@ -30,6 +30,18 @@ module OpenapiClient
|
|
|
30
30
|
|
|
31
31
|
attr_accessor :timestamp
|
|
32
32
|
|
|
33
|
+
# True when the stream was already ended and the request had no effect.
|
|
34
|
+
attr_accessor :ignored
|
|
35
|
+
|
|
36
|
+
attr_accessor :message
|
|
37
|
+
|
|
38
|
+
attr_accessor :forced_completion
|
|
39
|
+
|
|
40
|
+
attr_accessor :warning
|
|
41
|
+
|
|
42
|
+
# Per-device delivery errors when some devices could not be reached.
|
|
43
|
+
attr_accessor :errors
|
|
44
|
+
|
|
33
45
|
class EnumAttributeValidator
|
|
34
46
|
attr_reader :datatype
|
|
35
47
|
attr_reader :allowable_values
|
|
@@ -61,7 +73,12 @@ module OpenapiClient
|
|
|
61
73
|
:'activity_id' => :'activity_id',
|
|
62
74
|
:'devices_queued' => :'devices_queued',
|
|
63
75
|
:'devices_notified' => :'devices_notified',
|
|
64
|
-
:'timestamp' => :'timestamp'
|
|
76
|
+
:'timestamp' => :'timestamp',
|
|
77
|
+
:'ignored' => :'ignored',
|
|
78
|
+
:'message' => :'message',
|
|
79
|
+
:'forced_completion' => :'forced_completion',
|
|
80
|
+
:'warning' => :'warning',
|
|
81
|
+
:'errors' => :'errors'
|
|
65
82
|
}
|
|
66
83
|
end
|
|
67
84
|
|
|
@@ -79,7 +96,12 @@ module OpenapiClient
|
|
|
79
96
|
:'activity_id' => :'String',
|
|
80
97
|
:'devices_queued' => :'Integer',
|
|
81
98
|
:'devices_notified' => :'Integer',
|
|
82
|
-
:'timestamp' => :'Time'
|
|
99
|
+
:'timestamp' => :'Time',
|
|
100
|
+
:'ignored' => :'Boolean',
|
|
101
|
+
:'message' => :'String',
|
|
102
|
+
:'forced_completion' => :'Boolean',
|
|
103
|
+
:'warning' => :'String',
|
|
104
|
+
:'errors' => :'Array<String>'
|
|
83
105
|
}
|
|
84
106
|
end
|
|
85
107
|
|
|
@@ -140,6 +162,28 @@ module OpenapiClient
|
|
|
140
162
|
else
|
|
141
163
|
self.timestamp = nil
|
|
142
164
|
end
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'ignored')
|
|
167
|
+
self.ignored = attributes[:'ignored']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'message')
|
|
171
|
+
self.message = attributes[:'message']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.key?(:'forced_completion')
|
|
175
|
+
self.forced_completion = attributes[:'forced_completion']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'warning')
|
|
179
|
+
self.warning = attributes[:'warning']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'errors')
|
|
183
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
184
|
+
self.errors = value
|
|
185
|
+
end
|
|
186
|
+
end
|
|
143
187
|
end
|
|
144
188
|
|
|
145
189
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -200,7 +244,12 @@ module OpenapiClient
|
|
|
200
244
|
activity_id == o.activity_id &&
|
|
201
245
|
devices_queued == o.devices_queued &&
|
|
202
246
|
devices_notified == o.devices_notified &&
|
|
203
|
-
timestamp == o.timestamp
|
|
247
|
+
timestamp == o.timestamp &&
|
|
248
|
+
ignored == o.ignored &&
|
|
249
|
+
message == o.message &&
|
|
250
|
+
forced_completion == o.forced_completion &&
|
|
251
|
+
warning == o.warning &&
|
|
252
|
+
errors == o.errors
|
|
204
253
|
end
|
|
205
254
|
|
|
206
255
|
# @see the `==` method
|
|
@@ -212,7 +261,7 @@ module OpenapiClient
|
|
|
212
261
|
# Calculates hash code according to all attributes.
|
|
213
262
|
# @return [Integer] Hash code
|
|
214
263
|
def hash
|
|
215
|
-
[success, operation, stream_key, activity_id, devices_queued, devices_notified, timestamp].hash
|
|
264
|
+
[success, operation, stream_key, activity_id, devices_queued, devices_notified, timestamp, ignored, message, forced_completion, warning, errors].hash
|
|
216
265
|
end
|
|
217
266
|
|
|
218
267
|
# Builds the object from hash
|
|
@@ -37,8 +37,21 @@ module OpenapiClient
|
|
|
37
37
|
# Optional tags to organize and filter notification history.
|
|
38
38
|
attr_accessor :tags
|
|
39
39
|
|
|
40
|
+
# Present on `updated` responses when the current Live Activity has received more than 12 updates and has averaged more than one update every 2 minutes since it started. The update is still sent, but iOS may throttle Live Activities that update this often.
|
|
41
|
+
attr_accessor :warning
|
|
42
|
+
|
|
40
43
|
attr_accessor :timestamp
|
|
41
44
|
|
|
45
|
+
# True when the request had no effect.
|
|
46
|
+
attr_accessor :ignored
|
|
47
|
+
|
|
48
|
+
attr_accessor :remote_push_sent
|
|
49
|
+
|
|
50
|
+
attr_accessor :message
|
|
51
|
+
|
|
52
|
+
# Per-device delivery errors when some devices could not be reached.
|
|
53
|
+
attr_accessor :errors
|
|
54
|
+
|
|
42
55
|
class EnumAttributeValidator
|
|
43
56
|
attr_reader :datatype
|
|
44
57
|
attr_reader :allowable_values
|
|
@@ -74,7 +87,12 @@ module OpenapiClient
|
|
|
74
87
|
:'users_notified' => :'users_notified',
|
|
75
88
|
:'effective_channel_slugs' => :'effective_channel_slugs',
|
|
76
89
|
:'tags' => :'tags',
|
|
77
|
-
:'
|
|
90
|
+
:'warning' => :'warning',
|
|
91
|
+
:'timestamp' => :'timestamp',
|
|
92
|
+
:'ignored' => :'ignored',
|
|
93
|
+
:'remote_push_sent' => :'remote_push_sent',
|
|
94
|
+
:'message' => :'message',
|
|
95
|
+
:'errors' => :'errors'
|
|
78
96
|
}
|
|
79
97
|
end
|
|
80
98
|
|
|
@@ -96,7 +114,12 @@ module OpenapiClient
|
|
|
96
114
|
:'users_notified' => :'Integer',
|
|
97
115
|
:'effective_channel_slugs' => :'Array<String>',
|
|
98
116
|
:'tags' => :'Array<String>',
|
|
99
|
-
:'
|
|
117
|
+
:'warning' => :'String',
|
|
118
|
+
:'timestamp' => :'Time',
|
|
119
|
+
:'ignored' => :'Boolean',
|
|
120
|
+
:'remote_push_sent' => :'Boolean',
|
|
121
|
+
:'message' => :'String',
|
|
122
|
+
:'errors' => :'Array<String>'
|
|
100
123
|
}
|
|
101
124
|
end
|
|
102
125
|
|
|
@@ -172,11 +195,33 @@ module OpenapiClient
|
|
|
172
195
|
end
|
|
173
196
|
end
|
|
174
197
|
|
|
198
|
+
if attributes.key?(:'warning')
|
|
199
|
+
self.warning = attributes[:'warning']
|
|
200
|
+
end
|
|
201
|
+
|
|
175
202
|
if attributes.key?(:'timestamp')
|
|
176
203
|
self.timestamp = attributes[:'timestamp']
|
|
177
204
|
else
|
|
178
205
|
self.timestamp = nil
|
|
179
206
|
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'ignored')
|
|
209
|
+
self.ignored = attributes[:'ignored']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'remote_push_sent')
|
|
213
|
+
self.remote_push_sent = attributes[:'remote_push_sent']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'message')
|
|
217
|
+
self.message = attributes[:'message']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.key?(:'errors')
|
|
221
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
|
222
|
+
self.errors = value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
180
225
|
end
|
|
181
226
|
|
|
182
227
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -241,7 +286,12 @@ module OpenapiClient
|
|
|
241
286
|
users_notified == o.users_notified &&
|
|
242
287
|
effective_channel_slugs == o.effective_channel_slugs &&
|
|
243
288
|
tags == o.tags &&
|
|
244
|
-
|
|
289
|
+
warning == o.warning &&
|
|
290
|
+
timestamp == o.timestamp &&
|
|
291
|
+
ignored == o.ignored &&
|
|
292
|
+
remote_push_sent == o.remote_push_sent &&
|
|
293
|
+
message == o.message &&
|
|
294
|
+
errors == o.errors
|
|
245
295
|
end
|
|
246
296
|
|
|
247
297
|
# @see the `==` method
|
|
@@ -253,7 +303,7 @@ module OpenapiClient
|
|
|
253
303
|
# Calculates hash code according to all attributes.
|
|
254
304
|
# @return [Integer] Hash code
|
|
255
305
|
def hash
|
|
256
|
-
[success, operation, stream_key, activity_id, previous_activity_id, devices_notified, devices_queued, users_notified, effective_channel_slugs, tags, timestamp].hash
|
|
306
|
+
[success, operation, stream_key, activity_id, previous_activity_id, devices_notified, devices_queued, users_notified, effective_channel_slugs, tags, warning, timestamp, ignored, remote_push_sent, message, errors].hash
|
|
257
307
|
end
|
|
258
308
|
|
|
259
309
|
# Builds the object from hash
|