diff --git a/generated/Model/LiveActivityLimitError.php b/generated/Model/LiveActivityLimitError.php index 724cbb3..4e6855e 100644 --- a/generated/Model/LiveActivityLimitError.php +++ b/generated/Model/LiveActivityLimitError.php @@ -60,7 +60,9 @@ class LiveActivityLimitError implements ModelInterface, ArrayAccess, \JsonSerial 'error' => 'string', 'message' => 'string', 'limit' => 'int', - 'active' => 'int' + 'active' => 'int', + 'blockedDevices' => 'int', + 'targetedDevices' => 'int' ]; /** @@ -74,7 +76,9 @@ class LiveActivityLimitError implements ModelInterface, ArrayAccess, \JsonSerial 'error' => null, 'message' => null, 'limit' => null, - 'active' => null + 'active' => null, + 'blockedDevices' => null, + 'targetedDevices' => null ]; /** @@ -86,7 +90,9 @@ class LiveActivityLimitError implements ModelInterface, ArrayAccess, \JsonSerial 'error' => false, 'message' => false, 'limit' => false, - 'active' => false + 'active' => false, + 'blockedDevices' => false, + 'targetedDevices' => false ]; /** @@ -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' ]; /** @@ -190,7 +198,9 @@ public function isNullableSetToNull(string $property): bool 'error' => 'setError', 'message' => 'setMessage', 'limit' => 'setLimit', - 'active' => 'setActive' + 'active' => 'setActive', + 'blockedDevices' => 'setBlockedDevices', + 'targetedDevices' => 'setTargetedDevices' ]; /** @@ -202,7 +212,9 @@ public function isNullableSetToNull(string $property): bool 'error' => 'getError', 'message' => 'getMessage', 'limit' => 'getLimit', - 'active' => 'getActive' + 'active' => 'getActive', + 'blockedDevices' => 'getBlockedDevices', + 'targetedDevices' => 'getTargetedDevices' ]; /** @@ -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); } /** @@ -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 */ @@ -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. * diff --git a/generated/Model/SendPushNotification429Response.php b/generated/Model/SendPushNotification429Response.php index e9299ca..699a703 100644 --- a/generated/Model/SendPushNotification429Response.php +++ b/generated/Model/SendPushNotification429Response.php @@ -60,7 +60,9 @@ class SendPushNotification429Response implements ModelInterface, ArrayAccess, \J 'error' => 'string', 'message' => 'string', 'limit' => 'int', - 'active' => 'int' + 'active' => 'int', + 'blockedDevices' => 'int', + 'targetedDevices' => 'int' ]; /** @@ -74,7 +76,9 @@ class SendPushNotification429Response implements ModelInterface, ArrayAccess, \J 'error' => null, 'message' => null, 'limit' => null, - 'active' => null + 'active' => null, + 'blockedDevices' => null, + 'targetedDevices' => null ]; /** @@ -86,7 +90,9 @@ class SendPushNotification429Response implements ModelInterface, ArrayAccess, \J 'error' => false, 'message' => false, 'limit' => false, - 'active' => false + 'active' => false, + 'blockedDevices' => false, + 'targetedDevices' => false ]; /** @@ -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' ]; /** @@ -190,7 +198,9 @@ public function isNullableSetToNull(string $property): bool 'error' => 'setError', 'message' => 'setMessage', 'limit' => 'setLimit', - 'active' => 'setActive' + 'active' => 'setActive', + 'blockedDevices' => 'setBlockedDevices', + 'targetedDevices' => 'setTargetedDevices' ]; /** @@ -202,7 +212,9 @@ public function isNullableSetToNull(string $property): bool 'error' => 'getError', 'message' => 'getMessage', 'limit' => 'getLimit', - 'active' => 'getActive' + 'active' => 'getActive', + 'blockedDevices' => 'getBlockedDevices', + 'targetedDevices' => 'getTargetedDevices' ]; /** @@ -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); } /** @@ -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 */ @@ -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. *