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
24 changes: 12 additions & 12 deletions generated/activitysmith_openapi/models/live_activity_limit_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ class LiveActivityLimitError

attr_accessor :limit

# Current number of active Live Activities.
attr_accessor :active
# Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold.
attr_accessor :blocked_devices

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

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

Expand Down Expand Up @@ -88,10 +88,10 @@ def initialize(attributes = {})
self.limit = nil
end

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

Expand All @@ -112,8 +112,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
end

if @active.nil?
invalid_properties.push('invalid value for "active", active cannot be nil.')
if @blocked_devices.nil?
invalid_properties.push('invalid value for "blocked_devices", blocked_devices cannot be nil.')
end

invalid_properties
Expand All @@ -126,7 +126,7 @@ def valid?
return false if @error.nil?
return false if @message.nil?
return false if @limit.nil?
return false if @active.nil?
return false if @blocked_devices.nil?
true
end

Expand All @@ -138,7 +138,7 @@ def ==(o)
error == o.error &&
message == o.message &&
limit == o.limit &&
active == o.active
blocked_devices == o.blocked_devices
end

# @see the `==` method
Expand All @@ -150,7 +150,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, blocked_devices].hash
end

# Builds the object from hash
Expand Down