Skip to content
Closed
Show file tree
Hide file tree
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
82 changes: 75 additions & 7 deletions generated/Model/LiveActivityLimitError.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class LiveActivityLimitError implements ModelInterface, ArrayAccess, \JsonSerial
'error' => 'string',
'message' => 'string',
'limit' => 'int',
'active' => 'int'
'active' => 'int',
'blockedDevices' => 'int',
'targetedDevices' => 'int'
];

/**
Expand All @@ -74,7 +76,9 @@ class LiveActivityLimitError implements ModelInterface, ArrayAccess, \JsonSerial
'error' => null,
'message' => null,
'limit' => null,
'active' => null
'active' => null,
'blockedDevices' => null,
'targetedDevices' => null
];

/**
Expand All @@ -86,7 +90,9 @@ class LiveActivityLimitError implements ModelInterface, ArrayAccess, \JsonSerial
'error' => false,
'message' => false,
'limit' => false,
'active' => false
'active' => false,
'blockedDevices' => false,
'targetedDevices' => false
];

/**
Expand Down Expand Up @@ -178,7 +184,9 @@ public function isNullableSetToNull(string $property): bool
'error' => 'error',
'message' => 'message',
'limit' => 'limit',
'active' => 'active'
'active' => 'active',
'blockedDevices' => 'blocked_devices',
'targetedDevices' => 'targeted_devices'
];

/**
Expand All @@ -190,7 +198,9 @@ public function isNullableSetToNull(string $property): bool
'error' => 'setError',
'message' => 'setMessage',
'limit' => 'setLimit',
'active' => 'setActive'
'active' => 'setActive',
'blockedDevices' => 'setBlockedDevices',
'targetedDevices' => 'setTargetedDevices'
];

/**
Expand All @@ -202,7 +212,9 @@ public function isNullableSetToNull(string $property): bool
'error' => 'getError',
'message' => 'getMessage',
'limit' => 'getLimit',
'active' => 'getActive'
'active' => 'getActive',
'blockedDevices' => 'getBlockedDevices',
'targetedDevices' => 'getTargetedDevices'
];

/**
Expand Down Expand Up @@ -266,6 +278,8 @@ public function __construct(array $data = null)
$this->setIfExists('message', $data ?? [], null);
$this->setIfExists('limit', $data ?? [], null);
$this->setIfExists('active', $data ?? [], null);
$this->setIfExists('blockedDevices', $data ?? [], null);
$this->setIfExists('targetedDevices', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -416,7 +430,7 @@ public function getActive()
/**
* Sets active
*
* @param int $active Current number of active Live Activities.
* @param int $active Highest number of active Live Activities among the targeted devices.
*
* @return self
*/
Expand All @@ -429,6 +443,60 @@ public function setActive($active)

return $this;
}

/**
* Gets blockedDevices
*
* @return int|null
*/
public function getBlockedDevices()
{
return $this->container['blockedDevices'];
}

/**
* Sets blockedDevices
*
* @param int|null $blockedDevices Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity.
*
* @return self
*/
public function setBlockedDevices($blockedDevices)
{
if (is_null($blockedDevices)) {
throw new \InvalidArgumentException('non-nullable blockedDevices cannot be null');
}
$this->container['blockedDevices'] = $blockedDevices;

return $this;
}

/**
* Gets targetedDevices
*
* @return int|null
*/
public function getTargetedDevices()
{
return $this->container['targetedDevices'];
}

/**
* Sets targetedDevices
*
* @param int|null $targetedDevices Total number of targeted devices. Included only when targeted devices have mixed capacity.
*
* @return self
*/
public function setTargetedDevices($targetedDevices)
{
if (is_null($targetedDevices)) {
throw new \InvalidArgumentException('non-nullable targetedDevices cannot be null');
}
$this->container['targetedDevices'] = $targetedDevices;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
82 changes: 75 additions & 7 deletions generated/Model/SendPushNotification429Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class SendPushNotification429Response implements ModelInterface, ArrayAccess, \J
'error' => 'string',
'message' => 'string',
'limit' => 'int',
'active' => 'int'
'active' => 'int',
'blockedDevices' => 'int',
'targetedDevices' => 'int'
];

/**
Expand All @@ -74,7 +76,9 @@ class SendPushNotification429Response implements ModelInterface, ArrayAccess, \J
'error' => null,
'message' => null,
'limit' => null,
'active' => null
'active' => null,
'blockedDevices' => null,
'targetedDevices' => null
];

/**
Expand All @@ -86,7 +90,9 @@ class SendPushNotification429Response implements ModelInterface, ArrayAccess, \J
'error' => false,
'message' => false,
'limit' => false,
'active' => false
'active' => false,
'blockedDevices' => false,
'targetedDevices' => false
];

/**
Expand Down Expand Up @@ -178,7 +184,9 @@ public function isNullableSetToNull(string $property): bool
'error' => 'error',
'message' => 'message',
'limit' => 'limit',
'active' => 'active'
'active' => 'active',
'blockedDevices' => 'blocked_devices',
'targetedDevices' => 'targeted_devices'
];

/**
Expand All @@ -190,7 +198,9 @@ public function isNullableSetToNull(string $property): bool
'error' => 'setError',
'message' => 'setMessage',
'limit' => 'setLimit',
'active' => 'setActive'
'active' => 'setActive',
'blockedDevices' => 'setBlockedDevices',
'targetedDevices' => 'setTargetedDevices'
];

/**
Expand All @@ -202,7 +212,9 @@ public function isNullableSetToNull(string $property): bool
'error' => 'getError',
'message' => 'getMessage',
'limit' => 'getLimit',
'active' => 'getActive'
'active' => 'getActive',
'blockedDevices' => 'getBlockedDevices',
'targetedDevices' => 'getTargetedDevices'
];

/**
Expand Down Expand Up @@ -266,6 +278,8 @@ public function __construct(array $data = null)
$this->setIfExists('message', $data ?? [], null);
$this->setIfExists('limit', $data ?? [], null);
$this->setIfExists('active', $data ?? [], null);
$this->setIfExists('blockedDevices', $data ?? [], null);
$this->setIfExists('targetedDevices', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -416,7 +430,7 @@ public function getActive()
/**
* Sets active
*
* @param int $active Current number of active Live Activities.
* @param int $active Highest number of active Live Activities among the targeted devices.
*
* @return self
*/
Expand All @@ -429,6 +443,60 @@ public function setActive($active)

return $this;
}

/**
* Gets blockedDevices
*
* @return int|null
*/
public function getBlockedDevices()
{
return $this->container['blockedDevices'];
}

/**
* Sets blockedDevices
*
* @param int|null $blockedDevices Number of targeted devices that have reached the enforced iOS Live Activity concurrency threshold. Included only when targeted devices have mixed capacity.
*
* @return self
*/
public function setBlockedDevices($blockedDevices)
{
if (is_null($blockedDevices)) {
throw new \InvalidArgumentException('non-nullable blockedDevices cannot be null');
}
$this->container['blockedDevices'] = $blockedDevices;

return $this;
}

/**
* Gets targetedDevices
*
* @return int|null
*/
public function getTargetedDevices()
{
return $this->container['targetedDevices'];
}

/**
* Sets targetedDevices
*
* @param int|null $targetedDevices Total number of targeted devices. Included only when targeted devices have mixed capacity.
*
* @return self
*/
public function setTargetedDevices($targetedDevices)
{
if (is_null($targetedDevices)) {
throw new \InvalidArgumentException('non-nullable targetedDevices cannot be null');
}
$this->container['targetedDevices'] = $targetedDevices;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down