Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,24 @@ class LiveActivityLimitError

attr_accessor :limit

# Current number of active Live Activities.
# Highest number of active Live Activities among the targeted devices.
attr_accessor :active

# Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity.
attr_accessor :blocked_devices

# Total number of targeted devices. Included only when targeted devices have mixed capacity.
attr_accessor :targeted_devices

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'error' => :'error',
:'message' => :'message',
:'limit' => :'limit',
:'active' => :'active'
:'active' => :'active',
:'blocked_devices' => :'blocked_devices',
:'targeted_devices' => :'targeted_devices'
}
end

Expand All @@ -45,7 +53,9 @@ def self.openapi_types
:'error' => :'String',
:'message' => :'String',
:'limit' => :'Integer',
:'active' => :'Integer'
:'active' => :'Integer',
:'blocked_devices' => :'Integer',
:'targeted_devices' => :'Integer'
}
end

Expand Down Expand Up @@ -93,6 +103,14 @@ def initialize(attributes = {})
else
self.active = nil
end

if attributes.key?(:'blocked_devices')
self.blocked_devices = attributes[:'blocked_devices']
end

if attributes.key?(:'targeted_devices')
self.targeted_devices = attributes[:'targeted_devices']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -138,7 +156,9 @@ def ==(o)
error == o.error &&
message == o.message &&
limit == o.limit &&
active == o.active
active == o.active &&
blocked_devices == o.blocked_devices &&
targeted_devices == o.targeted_devices
end

# @see the `==` method
Expand All @@ -150,7 +170,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[error, message, limit, active].hash
[error, message, limit, active, blocked_devices, targeted_devices].hash
end

# Builds the object from hash
Expand Down