From 470077e88c9f080ee50cf9667ea787e1f39ba44b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:07 +0800 Subject: [PATCH 001/373] feat: update --- lib/Model/AdaptCreateAndSubmitAllForms.php | 557 +++++++++++++++++++++ 1 file changed, 557 insertions(+) create mode 100644 lib/Model/AdaptCreateAndSubmitAllForms.php diff --git a/lib/Model/AdaptCreateAndSubmitAllForms.php b/lib/Model/AdaptCreateAndSubmitAllForms.php new file mode 100644 index 000000000..14de9fc89 --- /dev/null +++ b/lib/Model/AdaptCreateAndSubmitAllForms.php @@ -0,0 +1,557 @@ + 'int', +'game_name' => 'string', +'game_version_id' => 'int', +'game_version' => 'string', +'resolution_list' => 'string', +'frame_rate_list' => 'string', +'platform_type' => 'int', +'source_platform' => 'int', +'records' => 'string', +'mix_game_version_id' => 'string', +'mix_game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => 'int32', +'game_name' => null, +'game_version_id' => 'int32', +'game_version' => null, +'resolution_list' => null, +'frame_rate_list' => null, +'platform_type' => 'int32', +'source_platform' => 'int32', +'records' => null, +'mix_game_version_id' => null, +'mix_game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'game_name' => 'gameName', +'game_version_id' => 'gameVersionId', +'game_version' => 'gameVersion', +'resolution_list' => 'resolutionList', +'frame_rate_list' => 'frameRateList', +'platform_type' => 'platformType', +'source_platform' => 'sourcePlatform', +'records' => 'records', +'mix_game_version_id' => 'mixGameVersionId', +'mix_game_id' => 'mixGameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'game_name' => 'setGameName', +'game_version_id' => 'setGameVersionId', +'game_version' => 'setGameVersion', +'resolution_list' => 'setResolutionList', +'frame_rate_list' => 'setFrameRateList', +'platform_type' => 'setPlatformType', +'source_platform' => 'setSourcePlatform', +'records' => 'setRecords', +'mix_game_version_id' => 'setMixGameVersionId', +'mix_game_id' => 'setMixGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'game_name' => 'getGameName', +'game_version_id' => 'getGameVersionId', +'game_version' => 'getGameVersion', +'resolution_list' => 'getResolutionList', +'frame_rate_list' => 'getFrameRateList', +'platform_type' => 'getPlatformType', +'source_platform' => 'getSourcePlatform', +'records' => 'getRecords', +'mix_game_version_id' => 'getMixGameVersionId', +'mix_game_id' => 'getMixGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['game_version_id'] = isset($data['game_version_id']) ? $data['game_version_id'] : null; + $this->container['game_version'] = isset($data['game_version']) ? $data['game_version'] : null; + $this->container['resolution_list'] = isset($data['resolution_list']) ? $data['resolution_list'] : null; + $this->container['frame_rate_list'] = isset($data['frame_rate_list']) ? $data['frame_rate_list'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['source_platform'] = isset($data['source_platform']) ? $data['source_platform'] : null; + $this->container['records'] = isset($data['records']) ? $data['records'] : null; + $this->container['mix_game_version_id'] = isset($data['mix_game_version_id']) ? $data['mix_game_version_id'] : null; + $this->container['mix_game_id'] = isset($data['mix_game_id']) ? $data['mix_game_id'] : null; + } + + + /** + * Gets game_id + * + * @return int + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param int $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets game_version_id + * + * @return int + */ + public function getGameVersionId() + { + return $this->container['game_version_id']; + } + + /** + * Sets game_version_id + * + * @param int $game_version_id game_version_id + * + * @return $this + */ + public function setGameVersionId($game_version_id) + { + $this->container['game_version_id'] = $game_version_id; + + return $this; + } + + /** + * Gets game_version + * + * @return string + */ + public function getGameVersion() + { + return $this->container['game_version']; + } + + /** + * Sets game_version + * + * @param string $game_version game_version + * + * @return $this + */ + public function setGameVersion($game_version) + { + $this->container['game_version'] = $game_version; + + return $this; + } + + /** + * Gets resolution_list + * + * @return string + */ + public function getResolutionList() + { + return $this->container['resolution_list']; + } + + /** + * Sets resolution_list + * + * @param string $resolution_list resolution_list + * + * @return $this + */ + public function setResolutionList($resolution_list) + { + $this->container['resolution_list'] = $resolution_list; + + return $this; + } + + /** + * Gets frame_rate_list + * + * @return string + */ + public function getFrameRateList() + { + return $this->container['frame_rate_list']; + } + + /** + * Sets frame_rate_list + * + * @param string $frame_rate_list frame_rate_list + * + * @return $this + */ + public function setFrameRateList($frame_rate_list) + { + $this->container['frame_rate_list'] = $frame_rate_list; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets source_platform + * + * @return int + */ + public function getSourcePlatform() + { + return $this->container['source_platform']; + } + + /** + * Sets source_platform + * + * @param int $source_platform source_platform + * + * @return $this + */ + public function setSourcePlatform($source_platform) + { + $this->container['source_platform'] = $source_platform; + + return $this; + } + + /** + * Gets records + * + * @return string + */ + public function getRecords() + { + return $this->container['records']; + } + + /** + * Sets records + * + * @param string $records records + * + * @return $this + */ + public function setRecords($records) + { + $this->container['records'] = $records; + + return $this; + } + + /** + * Gets mix_game_version_id + * + * @return string + */ + public function getMixGameVersionId() + { + return $this->container['mix_game_version_id']; + } + + /** + * Sets mix_game_version_id + * + * @param string $mix_game_version_id mix_game_version_id + * + * @return $this + */ + public function setMixGameVersionId($mix_game_version_id) + { + $this->container['mix_game_version_id'] = $mix_game_version_id; + + return $this; + } + + /** + * Gets mix_game_id + * + * @return string + */ + public function getMixGameId() + { + return $this->container['mix_game_id']; + } + + /** + * Sets mix_game_id + * + * @param string $mix_game_id mix_game_id + * + * @return $this + */ + public function setMixGameId($mix_game_id) + { + $this->container['mix_game_id'] = $mix_game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 26b398fe872d0d85616dbf2881ef5738c0d28a0f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:08 +0800 Subject: [PATCH 002/373] feat: update --- lib/Model/AdaptCreateAndSubmitAllResult.php | 347 ++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AdaptCreateAndSubmitAllResult.php diff --git a/lib/Model/AdaptCreateAndSubmitAllResult.php b/lib/Model/AdaptCreateAndSubmitAllResult.php new file mode 100644 index 000000000..09583977c --- /dev/null +++ b/lib/Model/AdaptCreateAndSubmitAllResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'int', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => 'int64', +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return int + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param int $model 适配请求ID + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 662607b0ea9a1c7a84d01a441185ed3468e46a9b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:09 +0800 Subject: [PATCH 003/373] feat: update --- lib/Model/AdaptQueryRequestByIdForms.php | 257 +++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AdaptQueryRequestByIdForms.php diff --git a/lib/Model/AdaptQueryRequestByIdForms.php b/lib/Model/AdaptQueryRequestByIdForms.php new file mode 100644 index 000000000..e569bc6a1 --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdForms.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id 适配请求id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f4986ba79148048d6156c48f7c591158b8c59fdd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:10 +0800 Subject: [PATCH 004/373] feat: update --- lib/Model/AdaptQueryRequestByIdResult.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AdaptQueryRequestByIdResult.php diff --git a/lib/Model/AdaptQueryRequestByIdResult.php b/lib/Model/AdaptQueryRequestByIdResult.php new file mode 100644 index 000000000..8b2f61495 --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 665b14009f6dbbae04a03d4bcd8469278b6e2a7c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:12 +0800 Subject: [PATCH 005/373] feat: update --- .../AdaptQueryRequestByIdResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AdaptQueryRequestByIdResultModel.php diff --git a/lib/Model/AdaptQueryRequestByIdResultModel.php b/lib/Model/AdaptQueryRequestByIdResultModel.php new file mode 100644 index 000000000..f4b30abb1 --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'state' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'state' => 'state' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'state' => 'setState' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'state' => 'getState' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + } + + + /** + * Gets state + * + * @return int + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param int $state 状态0:待适配 1:适配中 2:适配完成 3:适配失败 + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dc3ed68ce20a46ed1600eba7ed196b9589f3bac9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:14 +0800 Subject: [PATCH 006/373] feat: update --- lib/Model/AiBatchUpdateKbVersionForms.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiBatchUpdateKbVersionForms.php diff --git a/lib/Model/AiBatchUpdateKbVersionForms.php b/lib/Model/AiBatchUpdateKbVersionForms.php new file mode 100644 index 000000000..1dfffd700 --- /dev/null +++ b/lib/Model/AiBatchUpdateKbVersionForms.php @@ -0,0 +1,347 @@ + 'int[]', +'kb_id' => 'int', +'kb_version_id' => 'int', +'operator' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'role_ids' => 'int64', +'kb_id' => 'int64', +'kb_version_id' => 'int64', +'operator' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'role_ids' => 'roleIds', +'kb_id' => 'kbId', +'kb_version_id' => 'kbVersionId', +'operator' => 'operator' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'role_ids' => 'setRoleIds', +'kb_id' => 'setKbId', +'kb_version_id' => 'setKbVersionId', +'operator' => 'setOperator' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'role_ids' => 'getRoleIds', +'kb_id' => 'getKbId', +'kb_version_id' => 'getKbVersionId', +'operator' => 'getOperator' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['role_ids'] = isset($data['role_ids']) ? $data['role_ids'] : null; + $this->container['kb_id'] = isset($data['kb_id']) ? $data['kb_id'] : null; + $this->container['kb_version_id'] = isset($data['kb_version_id']) ? $data['kb_version_id'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + } + + + /** + * Gets role_ids + * + * @return int[] + */ + public function getRoleIds() + { + return $this->container['role_ids']; + } + + /** + * Sets role_ids + * + * @param int[] $role_ids role_ids + * + * @return $this + */ + public function setRoleIds($role_ids) + { + $this->container['role_ids'] = $role_ids; + + return $this; + } + + /** + * Gets kb_id + * + * @return int + */ + public function getKbId() + { + return $this->container['kb_id']; + } + + /** + * Sets kb_id + * + * @param int $kb_id kb_id + * + * @return $this + */ + public function setKbId($kb_id) + { + $this->container['kb_id'] = $kb_id; + + return $this; + } + + /** + * Gets kb_version_id + * + * @return int + */ + public function getKbVersionId() + { + return $this->container['kb_version_id']; + } + + /** + * Sets kb_version_id + * + * @param int $kb_version_id kb_version_id + * + * @return $this + */ + public function setKbVersionId($kb_version_id) + { + $this->container['kb_version_id'] = $kb_version_id; + + return $this; + } + + /** + * Gets operator + * + * @return string + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param string $operator operator + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7b1ee4c81fde278fffeaf36c9511dc7181b3441e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:15 +0800 Subject: [PATCH 007/373] feat: update --- lib/Model/AiBatchUpdateKbVersionResult.php | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiBatchUpdateKbVersionResult.php diff --git a/lib/Model/AiBatchUpdateKbVersionResult.php b/lib/Model/AiBatchUpdateKbVersionResult.php new file mode 100644 index 000000000..ec3f07069 --- /dev/null +++ b/lib/Model/AiBatchUpdateKbVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fbad2f54adf751b40ca9e99cba6b1232e882c0ef Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:16 +0800 Subject: [PATCH 008/373] feat: update --- lib/Model/AiCancelQueueForms.php | 257 +++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiCancelQueueForms.php diff --git a/lib/Model/AiCancelQueueForms.php b/lib/Model/AiCancelQueueForms.php new file mode 100644 index 000000000..cd103acff --- /dev/null +++ b/lib/Model/AiCancelQueueForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8dcb6f3fcfd83dee2fcf0cab11a0a8ccb69119b6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:18 +0800 Subject: [PATCH 009/373] feat: update --- lib/Model/AiCancelQueueResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiCancelQueueResult.php diff --git a/lib/Model/AiCancelQueueResult.php b/lib/Model/AiCancelQueueResult.php new file mode 100644 index 000000000..7151dee67 --- /dev/null +++ b/lib/Model/AiCancelQueueResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 68850e4b3c50c0bd7e5d697128b3b57205958257 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:19 +0800 Subject: [PATCH 010/373] feat: update --- lib/Model/AiCancelQueueResultModel.php | 317 +++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiCancelQueueResultModel.php diff --git a/lib/Model/AiCancelQueueResultModel.php b/lib/Model/AiCancelQueueResultModel.php new file mode 100644 index 000000000..f18fef986 --- /dev/null +++ b/lib/Model/AiCancelQueueResultModel.php @@ -0,0 +1,317 @@ + 'string', +'request_id' => 'string', +'success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'msg' => null, +'request_id' => null, +'success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'msg' => 'msg', +'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'msg' => 'setMsg', +'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'msg' => 'getMsg', +'request_id' => 'getRequestId', +'success' => 'getSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['msg'] = isset($data['msg']) ? $data['msg'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + + /** + * Gets msg + * + * @return string + */ + public function getMsg() + { + return $this->container['msg']; + } + + /** + * Sets msg + * + * @param string $msg msg + * + * @return $this + */ + public function setMsg($msg) + { + $this->container['msg'] = $msg; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d01f21cb1445924b09979c09222867441d680f1b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:21 +0800 Subject: [PATCH 011/373] feat: update --- lib/Model/AiCreateNpcRoleForms.php | 617 +++++++++++++++++++++++++++++ 1 file changed, 617 insertions(+) create mode 100644 lib/Model/AiCreateNpcRoleForms.php diff --git a/lib/Model/AiCreateNpcRoleForms.php b/lib/Model/AiCreateNpcRoleForms.php new file mode 100644 index 000000000..0c55e66b3 --- /dev/null +++ b/lib/Model/AiCreateNpcRoleForms.php @@ -0,0 +1,617 @@ + 'string', +'description' => 'string', +'figure_id' => 'int', +'voice_id' => 'int', +'characters' => 'string', +'greetings' => 'string', +'guidance' => 'string[]', +'knowledge_bases' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleFormsKnowledgeBases[]', +'plugin_ids' => 'int[]', +'short_memory_round' => 'int', +'tenant_id' => 'int', +'operator' => 'string', +'llm_model_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'name' => null, +'description' => null, +'figure_id' => 'int64', +'voice_id' => 'int64', +'characters' => null, +'greetings' => null, +'guidance' => null, +'knowledge_bases' => null, +'plugin_ids' => 'int64', +'short_memory_round' => 'int32', +'tenant_id' => 'int64', +'operator' => null, +'llm_model_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', +'description' => 'description', +'figure_id' => 'figureId', +'voice_id' => 'voiceId', +'characters' => 'characters', +'greetings' => 'greetings', +'guidance' => 'guidance', +'knowledge_bases' => 'knowledgeBases', +'plugin_ids' => 'pluginIds', +'short_memory_round' => 'shortMemoryRound', +'tenant_id' => 'tenantId', +'operator' => 'operator', +'llm_model_id' => 'llmModelId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', +'description' => 'setDescription', +'figure_id' => 'setFigureId', +'voice_id' => 'setVoiceId', +'characters' => 'setCharacters', +'greetings' => 'setGreetings', +'guidance' => 'setGuidance', +'knowledge_bases' => 'setKnowledgeBases', +'plugin_ids' => 'setPluginIds', +'short_memory_round' => 'setShortMemoryRound', +'tenant_id' => 'setTenantId', +'operator' => 'setOperator', +'llm_model_id' => 'setLlmModelId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', +'description' => 'getDescription', +'figure_id' => 'getFigureId', +'voice_id' => 'getVoiceId', +'characters' => 'getCharacters', +'greetings' => 'getGreetings', +'guidance' => 'getGuidance', +'knowledge_bases' => 'getKnowledgeBases', +'plugin_ids' => 'getPluginIds', +'short_memory_round' => 'getShortMemoryRound', +'tenant_id' => 'getTenantId', +'operator' => 'getOperator', +'llm_model_id' => 'getLlmModelId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['figure_id'] = isset($data['figure_id']) ? $data['figure_id'] : null; + $this->container['voice_id'] = isset($data['voice_id']) ? $data['voice_id'] : null; + $this->container['characters'] = isset($data['characters']) ? $data['characters'] : null; + $this->container['greetings'] = isset($data['greetings']) ? $data['greetings'] : null; + $this->container['guidance'] = isset($data['guidance']) ? $data['guidance'] : null; + $this->container['knowledge_bases'] = isset($data['knowledge_bases']) ? $data['knowledge_bases'] : null; + $this->container['plugin_ids'] = isset($data['plugin_ids']) ? $data['plugin_ids'] : null; + $this->container['short_memory_round'] = isset($data['short_memory_round']) ? $data['short_memory_round'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + $this->container['llm_model_id'] = isset($data['llm_model_id']) ? $data['llm_model_id'] : null; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets figure_id + * + * @return int + */ + public function getFigureId() + { + return $this->container['figure_id']; + } + + /** + * Sets figure_id + * + * @param int $figure_id figure_id + * + * @return $this + */ + public function setFigureId($figure_id) + { + $this->container['figure_id'] = $figure_id; + + return $this; + } + + /** + * Gets voice_id + * + * @return int + */ + public function getVoiceId() + { + return $this->container['voice_id']; + } + + /** + * Sets voice_id + * + * @param int $voice_id voice_id + * + * @return $this + */ + public function setVoiceId($voice_id) + { + $this->container['voice_id'] = $voice_id; + + return $this; + } + + /** + * Gets characters + * + * @return string + */ + public function getCharacters() + { + return $this->container['characters']; + } + + /** + * Sets characters + * + * @param string $characters characters + * + * @return $this + */ + public function setCharacters($characters) + { + $this->container['characters'] = $characters; + + return $this; + } + + /** + * Gets greetings + * + * @return string + */ + public function getGreetings() + { + return $this->container['greetings']; + } + + /** + * Sets greetings + * + * @param string $greetings greetings + * + * @return $this + */ + public function setGreetings($greetings) + { + $this->container['greetings'] = $greetings; + + return $this; + } + + /** + * Gets guidance + * + * @return string[] + */ + public function getGuidance() + { + return $this->container['guidance']; + } + + /** + * Sets guidance + * + * @param string[] $guidance guidance + * + * @return $this + */ + public function setGuidance($guidance) + { + $this->container['guidance'] = $guidance; + + return $this; + } + + /** + * Gets knowledge_bases + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleFormsKnowledgeBases[] + */ + public function getKnowledgeBases() + { + return $this->container['knowledge_bases']; + } + + /** + * Sets knowledge_bases + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleFormsKnowledgeBases[] $knowledge_bases knowledge_bases + * + * @return $this + */ + public function setKnowledgeBases($knowledge_bases) + { + $this->container['knowledge_bases'] = $knowledge_bases; + + return $this; + } + + /** + * Gets plugin_ids + * + * @return int[] + */ + public function getPluginIds() + { + return $this->container['plugin_ids']; + } + + /** + * Sets plugin_ids + * + * @param int[] $plugin_ids plugin_ids + * + * @return $this + */ + public function setPluginIds($plugin_ids) + { + $this->container['plugin_ids'] = $plugin_ids; + + return $this; + } + + /** + * Gets short_memory_round + * + * @return int + */ + public function getShortMemoryRound() + { + return $this->container['short_memory_round']; + } + + /** + * Sets short_memory_round + * + * @param int $short_memory_round short_memory_round + * + * @return $this + */ + public function setShortMemoryRound($short_memory_round) + { + $this->container['short_memory_round'] = $short_memory_round; + + return $this; + } + + /** + * Gets tenant_id + * + * @return int + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param int $tenant_id tenant_id + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets operator + * + * @return string + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param string $operator operator + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + + /** + * Gets llm_model_id + * + * @return int + */ + public function getLlmModelId() + { + return $this->container['llm_model_id']; + } + + /** + * Sets llm_model_id + * + * @param int $llm_model_id llm_model_id + * + * @return $this + */ + public function setLlmModelId($llm_model_id) + { + $this->container['llm_model_id'] = $llm_model_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1868e9794a37cb677fd0be4519d9d3b0bab4dcd7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:22 +0800 Subject: [PATCH 012/373] feat: update --- .../AiCreateNpcRoleFormsKnowledgeBases.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php diff --git a/lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php b/lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php new file mode 100644 index 000000000..aecf8dbc9 --- /dev/null +++ b/lib/Model/AiCreateNpcRoleFormsKnowledgeBases.php @@ -0,0 +1,287 @@ + 'int', +'knowledge_base_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'knowledge_base_version_id' => 'int64', +'knowledge_base_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'knowledge_base_version_id' => 'knowledgeBaseVersionId', +'knowledge_base_id' => 'knowledgeBaseId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'knowledge_base_version_id' => 'setKnowledgeBaseVersionId', +'knowledge_base_id' => 'setKnowledgeBaseId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'knowledge_base_version_id' => 'getKnowledgeBaseVersionId', +'knowledge_base_id' => 'getKnowledgeBaseId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['knowledge_base_version_id'] = isset($data['knowledge_base_version_id']) ? $data['knowledge_base_version_id'] : null; + $this->container['knowledge_base_id'] = isset($data['knowledge_base_id']) ? $data['knowledge_base_id'] : null; + } + + + /** + * Gets knowledge_base_version_id + * + * @return int + */ + public function getKnowledgeBaseVersionId() + { + return $this->container['knowledge_base_version_id']; + } + + /** + * Sets knowledge_base_version_id + * + * @param int $knowledge_base_version_id knowledge_base_version_id + * + * @return $this + */ + public function setKnowledgeBaseVersionId($knowledge_base_version_id) + { + $this->container['knowledge_base_version_id'] = $knowledge_base_version_id; + + return $this; + } + + /** + * Gets knowledge_base_id + * + * @return int + */ + public function getKnowledgeBaseId() + { + return $this->container['knowledge_base_id']; + } + + /** + * Sets knowledge_base_id + * + * @param int $knowledge_base_id knowledge_base_id + * + * @return $this + */ + public function setKnowledgeBaseId($knowledge_base_id) + { + $this->container['knowledge_base_id'] = $knowledge_base_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0092e33d87dbb5bd45f4714aaa1ac2e6a8c26f26 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:23 +0800 Subject: [PATCH 013/373] feat: update --- lib/Model/AiCreateNpcRoleResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiCreateNpcRoleResult.php diff --git a/lib/Model/AiCreateNpcRoleResult.php b/lib/Model/AiCreateNpcRoleResult.php new file mode 100644 index 000000000..74a28e508 --- /dev/null +++ b/lib/Model/AiCreateNpcRoleResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e79ddc600f9d43b18cec4055a3006729b372d499 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:25 +0800 Subject: [PATCH 014/373] feat: update --- lib/Model/AiDeleteModelsForms.php | 257 ++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiDeleteModelsForms.php diff --git a/lib/Model/AiDeleteModelsForms.php b/lib/Model/AiDeleteModelsForms.php new file mode 100644 index 000000000..8b34829ba --- /dev/null +++ b/lib/Model/AiDeleteModelsForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'resource_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'resource_id' => 'resourceId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'resource_id' => 'setResourceId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'resource_id' => 'getResourceId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resource_id'] = isset($data['resource_id']) ? $data['resource_id'] : null; + } + + + /** + * Gets resource_id + * + * @return string + */ + public function getResourceId() + { + return $this->container['resource_id']; + } + + /** + * Sets resource_id + * + * @param string $resource_id resource_id + * + * @return $this + */ + public function setResourceId($resource_id) + { + $this->container['resource_id'] = $resource_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From aacda11d702a9a802cfaf220a51130712e652531 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:26 +0800 Subject: [PATCH 015/373] feat: update --- lib/Model/AiDeleteModelsResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiDeleteModelsResult.php diff --git a/lib/Model/AiDeleteModelsResult.php b/lib/Model/AiDeleteModelsResult.php new file mode 100644 index 000000000..32dddd1bd --- /dev/null +++ b/lib/Model/AiDeleteModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 40c23677d9229661fd4f4f78176e658957a87a67 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:27 +0800 Subject: [PATCH 016/373] feat: update --- lib/Model/AiDeleteModelsResultModel.php | 287 ++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiDeleteModelsResultModel.php diff --git a/lib/Model/AiDeleteModelsResultModel.php b/lib/Model/AiDeleteModelsResultModel.php new file mode 100644 index 000000000..d8b19945d --- /dev/null +++ b/lib/Model/AiDeleteModelsResultModel.php @@ -0,0 +1,287 @@ + 'string', +'success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'request_id' => null, +'success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', +'success' => 'getSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 04ef03a5d2f832437391f251430fb8fc96d151ae Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:29 +0800 Subject: [PATCH 017/373] feat: update --- lib/Model/AiGetQueueForms.php | 257 ++++++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiGetQueueForms.php diff --git a/lib/Model/AiGetQueueForms.php b/lib/Model/AiGetQueueForms.php new file mode 100644 index 000000000..4f09e9dee --- /dev/null +++ b/lib/Model/AiGetQueueForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fbb23d7673d37d51588faccfd90a49956c9f310d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:30 +0800 Subject: [PATCH 018/373] feat: update --- lib/Model/AiGetQueueResult.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiGetQueueResult.php diff --git a/lib/Model/AiGetQueueResult.php b/lib/Model/AiGetQueueResult.php new file mode 100644 index 000000000..45a7ce7da --- /dev/null +++ b/lib/Model/AiGetQueueResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e3639d505c7e163127c902f5518ae28de867ab46 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:31 +0800 Subject: [PATCH 019/373] feat: update --- lib/Model/AiGetQueueResultModel.php | 317 ++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiGetQueueResultModel.php diff --git a/lib/Model/AiGetQueueResultModel.php b/lib/Model/AiGetQueueResultModel.php new file mode 100644 index 000000000..9761ec8f1 --- /dev/null +++ b/lib/Model/AiGetQueueResultModel.php @@ -0,0 +1,317 @@ + 'string', +'request_id' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'queue_num' => null, +'request_id' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'queue_num' => 'queueNum', +'request_id' => 'requestId', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'queue_num' => 'setQueueNum', +'request_id' => 'setRequestId', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'queue_num' => 'getQueueNum', +'request_id' => 'getRequestId', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['queue_num'] = isset($data['queue_num']) ? $data['queue_num'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets queue_num + * + * @return string + */ + public function getQueueNum() + { + return $this->container['queue_num']; + } + + /** + * Sets queue_num + * + * @param string $queue_num queue_num + * + * @return $this + */ + public function setQueueNum($queue_num) + { + $this->container['queue_num'] = $queue_num; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 40c4751e79859ced4026de37cd77e393bd69471d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:33 +0800 Subject: [PATCH 020/373] feat: update --- lib/Model/AiListModelsForms.php | 407 ++++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/AiListModelsForms.php diff --git a/lib/Model/AiListModelsForms.php b/lib/Model/AiListModelsForms.php new file mode 100644 index 000000000..91c66e9f7 --- /dev/null +++ b/lib/Model/AiListModelsForms.php @@ -0,0 +1,407 @@ + 'string', +'model_file_type' => 'string', +'model_series' => 'string', +'model_file_name' => 'string', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_type' => null, +'model_file_type' => null, +'model_series' => null, +'model_file_name' => null, +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_type' => 'modelType', +'model_file_type' => 'modelFileType', +'model_series' => 'modelSeries', +'model_file_name' => 'modelFileName', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_type' => 'setModelType', +'model_file_type' => 'setModelFileType', +'model_series' => 'setModelSeries', +'model_file_name' => 'setModelFileName', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_type' => 'getModelType', +'model_file_type' => 'getModelFileType', +'model_series' => 'getModelSeries', +'model_file_name' => 'getModelFileName', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_type'] = isset($data['model_type']) ? $data['model_type'] : null; + $this->container['model_file_type'] = isset($data['model_file_type']) ? $data['model_file_type'] : null; + $this->container['model_series'] = isset($data['model_series']) ? $data['model_series'] : null; + $this->container['model_file_name'] = isset($data['model_file_name']) ? $data['model_file_name'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets model_type + * + * @return string + */ + public function getModelType() + { + return $this->container['model_type']; + } + + /** + * Sets model_type + * + * @param string $model_type model_type + * + * @return $this + */ + public function setModelType($model_type) + { + $this->container['model_type'] = $model_type; + + return $this; + } + + /** + * Gets model_file_type + * + * @return string + */ + public function getModelFileType() + { + return $this->container['model_file_type']; + } + + /** + * Sets model_file_type + * + * @param string $model_file_type model_file_type + * + * @return $this + */ + public function setModelFileType($model_file_type) + { + $this->container['model_file_type'] = $model_file_type; + + return $this; + } + + /** + * Gets model_series + * + * @return string + */ + public function getModelSeries() + { + return $this->container['model_series']; + } + + /** + * Sets model_series + * + * @param string $model_series model_series + * + * @return $this + */ + public function setModelSeries($model_series) + { + $this->container['model_series'] = $model_series; + + return $this; + } + + /** + * Gets model_file_name + * + * @return string + */ + public function getModelFileName() + { + return $this->container['model_file_name']; + } + + /** + * Sets model_file_name + * + * @param string $model_file_name model_file_name + * + * @return $this + */ + public function setModelFileName($model_file_name) + { + $this->container['model_file_name'] = $model_file_name; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c6205260256ceb63e708e80209cbba67b1f1059b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:34 +0800 Subject: [PATCH 021/373] feat: update --- lib/Model/AiListModelsResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiListModelsResult.php diff --git a/lib/Model/AiListModelsResult.php b/lib/Model/AiListModelsResult.php new file mode 100644 index 000000000..ce8b31f89 --- /dev/null +++ b/lib/Model/AiListModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6830845209afc9d55a8fde0b71e83108a2888183 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:36 +0800 Subject: [PATCH 022/373] feat: update --- lib/Model/AiListModelsResultModel.php | 287 ++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiListModelsResultModel.php diff --git a/lib/Model/AiListModelsResultModel.php b/lib/Model/AiListModelsResultModel.php new file mode 100644 index 000000000..c94d0fe96 --- /dev/null +++ b/lib/Model/AiListModelsResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelList', +'request_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_list' => null, +'request_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_list' => 'modelList', +'request_id' => 'requestId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_list' => 'setModelList', +'request_id' => 'setRequestId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_list' => 'getModelList', +'request_id' => 'getRequestId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_list'] = isset($data['model_list']) ? $data['model_list'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + } + + + /** + * Gets model_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelList + */ + public function getModelList() + { + return $this->container['model_list']; + } + + /** + * Sets model_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelList $model_list model_list + * + * @return $this + */ + public function setModelList($model_list) + { + $this->container['model_list'] = $model_list; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e63565329a6ff0ff5827ac9c56ba14f3c5255b0c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:37 +0800 Subject: [PATCH 023/373] feat: update --- .../AiListModelsResultModelModelList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiListModelsResultModelModelList.php diff --git a/lib/Model/AiListModelsResultModelModelList.php b/lib/Model/AiListModelsResultModelModelList.php new file mode 100644 index 000000000..76cb36dc6 --- /dev/null +++ b/lib/Model/AiListModelsResultModelModelList.php @@ -0,0 +1,347 @@ + 'string', +'page_size' => 'string', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelListItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'page_size' => null, +'total_count' => 'int64', +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return string + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param string $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return string + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param string $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelListItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResultModelModelListItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c97dc378dbcf25f52b60db7b28b6dc5c3c462aa3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:38 +0800 Subject: [PATCH 024/373] feat: update --- .../AiListModelsResultModelModelListItems.php | 407 ++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/AiListModelsResultModelModelListItems.php diff --git a/lib/Model/AiListModelsResultModelModelListItems.php b/lib/Model/AiListModelsResultModelModelListItems.php new file mode 100644 index 000000000..109c93a51 --- /dev/null +++ b/lib/Model/AiListModelsResultModelModelListItems.php @@ -0,0 +1,407 @@ + 'string', +'model_type' => 'string', +'model_file_type' => 'string', +'model_file_name' => 'string', +'url' => 'string', +'desc' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_series' => null, +'model_type' => null, +'model_file_type' => null, +'model_file_name' => null, +'url' => null, +'desc' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_series' => 'modelSeries', +'model_type' => 'modelType', +'model_file_type' => 'modelFileType', +'model_file_name' => 'modelFileName', +'url' => 'url', +'desc' => 'desc' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_series' => 'setModelSeries', +'model_type' => 'setModelType', +'model_file_type' => 'setModelFileType', +'model_file_name' => 'setModelFileName', +'url' => 'setUrl', +'desc' => 'setDesc' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_series' => 'getModelSeries', +'model_type' => 'getModelType', +'model_file_type' => 'getModelFileType', +'model_file_name' => 'getModelFileName', +'url' => 'getUrl', +'desc' => 'getDesc' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_series'] = isset($data['model_series']) ? $data['model_series'] : null; + $this->container['model_type'] = isset($data['model_type']) ? $data['model_type'] : null; + $this->container['model_file_type'] = isset($data['model_file_type']) ? $data['model_file_type'] : null; + $this->container['model_file_name'] = isset($data['model_file_name']) ? $data['model_file_name'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + $this->container['desc'] = isset($data['desc']) ? $data['desc'] : null; + } + + + /** + * Gets model_series + * + * @return string + */ + public function getModelSeries() + { + return $this->container['model_series']; + } + + /** + * Sets model_series + * + * @param string $model_series model_series + * + * @return $this + */ + public function setModelSeries($model_series) + { + $this->container['model_series'] = $model_series; + + return $this; + } + + /** + * Gets model_type + * + * @return string + */ + public function getModelType() + { + return $this->container['model_type']; + } + + /** + * Sets model_type + * + * @param string $model_type model_type + * + * @return $this + */ + public function setModelType($model_type) + { + $this->container['model_type'] = $model_type; + + return $this; + } + + /** + * Gets model_file_type + * + * @return string + */ + public function getModelFileType() + { + return $this->container['model_file_type']; + } + + /** + * Sets model_file_type + * + * @param string $model_file_type model_file_type + * + * @return $this + */ + public function setModelFileType($model_file_type) + { + $this->container['model_file_type'] = $model_file_type; + + return $this; + } + + /** + * Gets model_file_name + * + * @return string + */ + public function getModelFileName() + { + return $this->container['model_file_name']; + } + + /** + * Sets model_file_name + * + * @param string $model_file_name model_file_name + * + * @return $this + */ + public function setModelFileName($model_file_name) + { + $this->container['model_file_name'] = $model_file_name; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets desc + * + * @return string + */ + public function getDesc() + { + return $this->container['desc']; + } + + /** + * Sets desc + * + * @param string $desc desc + * + * @return $this + */ + public function setDesc($desc) + { + $this->container['desc'] = $desc; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From eed3b6e6d1219cac923b61f2ddd01fc55aefdcb7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:40 +0800 Subject: [PATCH 025/373] feat: update --- lib/Model/AiUpdateModelsForms.php | 287 ++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUpdateModelsForms.php diff --git a/lib/Model/AiUpdateModelsForms.php b/lib/Model/AiUpdateModelsForms.php new file mode 100644 index 000000000..46b742870 --- /dev/null +++ b/lib/Model/AiUpdateModelsForms.php @@ -0,0 +1,287 @@ + 'string', +'desc' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'resource_id' => null, +'desc' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'resource_id' => 'resourceId', +'desc' => 'desc' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'resource_id' => 'setResourceId', +'desc' => 'setDesc' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'resource_id' => 'getResourceId', +'desc' => 'getDesc' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['resource_id'] = isset($data['resource_id']) ? $data['resource_id'] : null; + $this->container['desc'] = isset($data['desc']) ? $data['desc'] : null; + } + + + /** + * Gets resource_id + * + * @return string + */ + public function getResourceId() + { + return $this->container['resource_id']; + } + + /** + * Sets resource_id + * + * @param string $resource_id resource_id + * + * @return $this + */ + public function setResourceId($resource_id) + { + $this->container['resource_id'] = $resource_id; + + return $this; + } + + /** + * Gets desc + * + * @return string + */ + public function getDesc() + { + return $this->container['desc']; + } + + /** + * Sets desc + * + * @param string $desc desc + * + * @return $this + */ + public function setDesc($desc) + { + $this->container['desc'] = $desc; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5c5787861bf60fea63295fc8252741f50a308fd2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:41 +0800 Subject: [PATCH 026/373] feat: update --- lib/Model/AiUpdateModelsResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiUpdateModelsResult.php diff --git a/lib/Model/AiUpdateModelsResult.php b/lib/Model/AiUpdateModelsResult.php new file mode 100644 index 000000000..6aaa47aa8 --- /dev/null +++ b/lib/Model/AiUpdateModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a42ef9d1b64dcdf469ce016c9b8cafee98251676 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:42 +0800 Subject: [PATCH 027/373] feat: update --- lib/Model/AiUpdateModelsResultModel.php | 287 ++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUpdateModelsResultModel.php diff --git a/lib/Model/AiUpdateModelsResultModel.php b/lib/Model/AiUpdateModelsResultModel.php new file mode 100644 index 000000000..9862d2c69 --- /dev/null +++ b/lib/Model/AiUpdateModelsResultModel.php @@ -0,0 +1,287 @@ + 'string', +'success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'request_id' => null, +'success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', +'success' => 'getSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5693ae507042da78e44440dcc8b85c0c4e4a15c1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:44 +0800 Subject: [PATCH 028/373] feat: update --- lib/Model/AiUpdateNpcRoleForms.php | 617 +++++++++++++++++++++++++++++ 1 file changed, 617 insertions(+) create mode 100644 lib/Model/AiUpdateNpcRoleForms.php diff --git a/lib/Model/AiUpdateNpcRoleForms.php b/lib/Model/AiUpdateNpcRoleForms.php new file mode 100644 index 000000000..c424123ef --- /dev/null +++ b/lib/Model/AiUpdateNpcRoleForms.php @@ -0,0 +1,617 @@ + 'int', +'name' => 'string', +'description' => 'string', +'figure_id' => 'int', +'voice_id' => 'int', +'characters' => 'string', +'greetings' => 'string', +'guidance' => 'string[]', +'knowledge_bases' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleFormsKnowledgeBases[]', +'plugin_ids' => 'int[]', +'short_memory_round' => 'int', +'operator' => 'string', +'llm_model_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'id' => 'int64', +'name' => null, +'description' => null, +'figure_id' => 'int64', +'voice_id' => 'int64', +'characters' => null, +'greetings' => null, +'guidance' => null, +'knowledge_bases' => null, +'plugin_ids' => 'int64', +'short_memory_round' => 'int32', +'operator' => null, +'llm_model_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', +'name' => 'name', +'description' => 'description', +'figure_id' => 'figureId', +'voice_id' => 'voiceId', +'characters' => 'characters', +'greetings' => 'greetings', +'guidance' => 'guidance', +'knowledge_bases' => 'knowledgeBases', +'plugin_ids' => 'pluginIds', +'short_memory_round' => 'shortMemoryRound', +'operator' => 'operator', +'llm_model_id' => 'llmModelId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', +'name' => 'setName', +'description' => 'setDescription', +'figure_id' => 'setFigureId', +'voice_id' => 'setVoiceId', +'characters' => 'setCharacters', +'greetings' => 'setGreetings', +'guidance' => 'setGuidance', +'knowledge_bases' => 'setKnowledgeBases', +'plugin_ids' => 'setPluginIds', +'short_memory_round' => 'setShortMemoryRound', +'operator' => 'setOperator', +'llm_model_id' => 'setLlmModelId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', +'name' => 'getName', +'description' => 'getDescription', +'figure_id' => 'getFigureId', +'voice_id' => 'getVoiceId', +'characters' => 'getCharacters', +'greetings' => 'getGreetings', +'guidance' => 'getGuidance', +'knowledge_bases' => 'getKnowledgeBases', +'plugin_ids' => 'getPluginIds', +'short_memory_round' => 'getShortMemoryRound', +'operator' => 'getOperator', +'llm_model_id' => 'getLlmModelId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['figure_id'] = isset($data['figure_id']) ? $data['figure_id'] : null; + $this->container['voice_id'] = isset($data['voice_id']) ? $data['voice_id'] : null; + $this->container['characters'] = isset($data['characters']) ? $data['characters'] : null; + $this->container['greetings'] = isset($data['greetings']) ? $data['greetings'] : null; + $this->container['guidance'] = isset($data['guidance']) ? $data['guidance'] : null; + $this->container['knowledge_bases'] = isset($data['knowledge_bases']) ? $data['knowledge_bases'] : null; + $this->container['plugin_ids'] = isset($data['plugin_ids']) ? $data['plugin_ids'] : null; + $this->container['short_memory_round'] = isset($data['short_memory_round']) ? $data['short_memory_round'] : null; + $this->container['operator'] = isset($data['operator']) ? $data['operator'] : null; + $this->container['llm_model_id'] = isset($data['llm_model_id']) ? $data['llm_model_id'] : null; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets figure_id + * + * @return int + */ + public function getFigureId() + { + return $this->container['figure_id']; + } + + /** + * Sets figure_id + * + * @param int $figure_id figure_id + * + * @return $this + */ + public function setFigureId($figure_id) + { + $this->container['figure_id'] = $figure_id; + + return $this; + } + + /** + * Gets voice_id + * + * @return int + */ + public function getVoiceId() + { + return $this->container['voice_id']; + } + + /** + * Sets voice_id + * + * @param int $voice_id voice_id + * + * @return $this + */ + public function setVoiceId($voice_id) + { + $this->container['voice_id'] = $voice_id; + + return $this; + } + + /** + * Gets characters + * + * @return string + */ + public function getCharacters() + { + return $this->container['characters']; + } + + /** + * Sets characters + * + * @param string $characters characters + * + * @return $this + */ + public function setCharacters($characters) + { + $this->container['characters'] = $characters; + + return $this; + } + + /** + * Gets greetings + * + * @return string + */ + public function getGreetings() + { + return $this->container['greetings']; + } + + /** + * Sets greetings + * + * @param string $greetings greetings + * + * @return $this + */ + public function setGreetings($greetings) + { + $this->container['greetings'] = $greetings; + + return $this; + } + + /** + * Gets guidance + * + * @return string[] + */ + public function getGuidance() + { + return $this->container['guidance']; + } + + /** + * Sets guidance + * + * @param string[] $guidance guidance + * + * @return $this + */ + public function setGuidance($guidance) + { + $this->container['guidance'] = $guidance; + + return $this; + } + + /** + * Gets knowledge_bases + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleFormsKnowledgeBases[] + */ + public function getKnowledgeBases() + { + return $this->container['knowledge_bases']; + } + + /** + * Sets knowledge_bases + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleFormsKnowledgeBases[] $knowledge_bases knowledge_bases + * + * @return $this + */ + public function setKnowledgeBases($knowledge_bases) + { + $this->container['knowledge_bases'] = $knowledge_bases; + + return $this; + } + + /** + * Gets plugin_ids + * + * @return int[] + */ + public function getPluginIds() + { + return $this->container['plugin_ids']; + } + + /** + * Sets plugin_ids + * + * @param int[] $plugin_ids plugin_ids + * + * @return $this + */ + public function setPluginIds($plugin_ids) + { + $this->container['plugin_ids'] = $plugin_ids; + + return $this; + } + + /** + * Gets short_memory_round + * + * @return int + */ + public function getShortMemoryRound() + { + return $this->container['short_memory_round']; + } + + /** + * Sets short_memory_round + * + * @param int $short_memory_round short_memory_round + * + * @return $this + */ + public function setShortMemoryRound($short_memory_round) + { + $this->container['short_memory_round'] = $short_memory_round; + + return $this; + } + + /** + * Gets operator + * + * @return string + */ + public function getOperator() + { + return $this->container['operator']; + } + + /** + * Sets operator + * + * @param string $operator operator + * + * @return $this + */ + public function setOperator($operator) + { + $this->container['operator'] = $operator; + + return $this; + } + + /** + * Gets llm_model_id + * + * @return int + */ + public function getLlmModelId() + { + return $this->container['llm_model_id']; + } + + /** + * Sets llm_model_id + * + * @param int $llm_model_id llm_model_id + * + * @return $this + */ + public function setLlmModelId($llm_model_id) + { + $this->container['llm_model_id'] = $llm_model_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1872d1e6ac6ad8941f99f3964e20db7d15ac87a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:45 +0800 Subject: [PATCH 029/373] feat: update --- .../AiUpdateNpcRoleFormsKnowledgeBases.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php diff --git a/lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php b/lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php new file mode 100644 index 000000000..3494a896f --- /dev/null +++ b/lib/Model/AiUpdateNpcRoleFormsKnowledgeBases.php @@ -0,0 +1,287 @@ + 'int', +'knowledge_base_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'knowledge_base_version_id' => 'int64', +'knowledge_base_id' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'knowledge_base_version_id' => 'knowledgeBaseVersionId', +'knowledge_base_id' => 'knowledgeBaseId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'knowledge_base_version_id' => 'setKnowledgeBaseVersionId', +'knowledge_base_id' => 'setKnowledgeBaseId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'knowledge_base_version_id' => 'getKnowledgeBaseVersionId', +'knowledge_base_id' => 'getKnowledgeBaseId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['knowledge_base_version_id'] = isset($data['knowledge_base_version_id']) ? $data['knowledge_base_version_id'] : null; + $this->container['knowledge_base_id'] = isset($data['knowledge_base_id']) ? $data['knowledge_base_id'] : null; + } + + + /** + * Gets knowledge_base_version_id + * + * @return int + */ + public function getKnowledgeBaseVersionId() + { + return $this->container['knowledge_base_version_id']; + } + + /** + * Sets knowledge_base_version_id + * + * @param int $knowledge_base_version_id knowledge_base_version_id + * + * @return $this + */ + public function setKnowledgeBaseVersionId($knowledge_base_version_id) + { + $this->container['knowledge_base_version_id'] = $knowledge_base_version_id; + + return $this; + } + + /** + * Gets knowledge_base_id + * + * @return int + */ + public function getKnowledgeBaseId() + { + return $this->container['knowledge_base_id']; + } + + /** + * Sets knowledge_base_id + * + * @param int $knowledge_base_id knowledge_base_id + * + * @return $this + */ + public function setKnowledgeBaseId($knowledge_base_id) + { + $this->container['knowledge_base_id'] = $knowledge_base_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From eded76224f92e198fe00505a5433b06e9bb6ef60 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:46 +0800 Subject: [PATCH 030/373] feat: update --- lib/Model/AiUpdateNpcRoleResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiUpdateNpcRoleResult.php diff --git a/lib/Model/AiUpdateNpcRoleResult.php b/lib/Model/AiUpdateNpcRoleResult.php new file mode 100644 index 000000000..d4321b635 --- /dev/null +++ b/lib/Model/AiUpdateNpcRoleResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 325676950d12c73f79b7976ff16666007d86712d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:48 +0800 Subject: [PATCH 031/373] feat: update --- lib/Model/AiUploadModelsForms.php | 407 ++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/AiUploadModelsForms.php diff --git a/lib/Model/AiUploadModelsForms.php b/lib/Model/AiUploadModelsForms.php new file mode 100644 index 000000000..1a512ea3e --- /dev/null +++ b/lib/Model/AiUploadModelsForms.php @@ -0,0 +1,407 @@ + 'string', +'model_name' => 'string', +'model_file_path' => 'string', +'model_files' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsFormsModelFiles[]', +'desc' => 'string', +'model_file_type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'model_type' => null, +'model_name' => null, +'model_file_path' => null, +'model_files' => null, +'desc' => null, +'model_file_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'model_type' => 'modelType', +'model_name' => 'modelName', +'model_file_path' => 'modelFilePath', +'model_files' => 'modelFiles', +'desc' => 'desc', +'model_file_type' => 'modelFileType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'model_type' => 'setModelType', +'model_name' => 'setModelName', +'model_file_path' => 'setModelFilePath', +'model_files' => 'setModelFiles', +'desc' => 'setDesc', +'model_file_type' => 'setModelFileType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'model_type' => 'getModelType', +'model_name' => 'getModelName', +'model_file_path' => 'getModelFilePath', +'model_files' => 'getModelFiles', +'desc' => 'getDesc', +'model_file_type' => 'getModelFileType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['model_type'] = isset($data['model_type']) ? $data['model_type'] : null; + $this->container['model_name'] = isset($data['model_name']) ? $data['model_name'] : null; + $this->container['model_file_path'] = isset($data['model_file_path']) ? $data['model_file_path'] : null; + $this->container['model_files'] = isset($data['model_files']) ? $data['model_files'] : null; + $this->container['desc'] = isset($data['desc']) ? $data['desc'] : null; + $this->container['model_file_type'] = isset($data['model_file_type']) ? $data['model_file_type'] : null; + } + + + /** + * Gets model_type + * + * @return string + */ + public function getModelType() + { + return $this->container['model_type']; + } + + /** + * Sets model_type + * + * @param string $model_type model_type + * + * @return $this + */ + public function setModelType($model_type) + { + $this->container['model_type'] = $model_type; + + return $this; + } + + /** + * Gets model_name + * + * @return string + */ + public function getModelName() + { + return $this->container['model_name']; + } + + /** + * Sets model_name + * + * @param string $model_name model_name + * + * @return $this + */ + public function setModelName($model_name) + { + $this->container['model_name'] = $model_name; + + return $this; + } + + /** + * Gets model_file_path + * + * @return string + */ + public function getModelFilePath() + { + return $this->container['model_file_path']; + } + + /** + * Sets model_file_path + * + * @param string $model_file_path model_file_path + * + * @return $this + */ + public function setModelFilePath($model_file_path) + { + $this->container['model_file_path'] = $model_file_path; + + return $this; + } + + /** + * Gets model_files + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsFormsModelFiles[] + */ + public function getModelFiles() + { + return $this->container['model_files']; + } + + /** + * Sets model_files + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsFormsModelFiles[] $model_files model_files + * + * @return $this + */ + public function setModelFiles($model_files) + { + $this->container['model_files'] = $model_files; + + return $this; + } + + /** + * Gets desc + * + * @return string + */ + public function getDesc() + { + return $this->container['desc']; + } + + /** + * Sets desc + * + * @param string $desc desc + * + * @return $this + */ + public function setDesc($desc) + { + $this->container['desc'] = $desc; + + return $this; + } + + /** + * Gets model_file_type + * + * @return string + */ + public function getModelFileType() + { + return $this->container['model_file_type']; + } + + /** + * Sets model_file_type + * + * @param string $model_file_type model_file_type + * + * @return $this + */ + public function setModelFileType($model_file_type) + { + $this->container['model_file_type'] = $model_file_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6864273614e85d44d7e5b1ac2744b7ca4302909e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:49 +0800 Subject: [PATCH 032/373] feat: update --- lib/Model/AiUploadModelsFormsModelFiles.php | 287 ++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiUploadModelsFormsModelFiles.php diff --git a/lib/Model/AiUploadModelsFormsModelFiles.php b/lib/Model/AiUploadModelsFormsModelFiles.php new file mode 100644 index 000000000..5bc2ee0cc --- /dev/null +++ b/lib/Model/AiUploadModelsFormsModelFiles.php @@ -0,0 +1,287 @@ + 'string', +'url' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'file_name' => null, +'url' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_name' => 'fileName', +'url' => 'url' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_name' => 'setFileName', +'url' => 'setUrl' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_name' => 'getFileName', +'url' => 'getUrl' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['file_name'] = isset($data['file_name']) ? $data['file_name'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + } + + + /** + * Gets file_name + * + * @return string + */ + public function getFileName() + { + return $this->container['file_name']; + } + + /** + * Sets file_name + * + * @param string $file_name file_name + * + * @return $this + */ + public function setFileName($file_name) + { + $this->container['file_name'] = $file_name; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3136491603eff781baa59434ee3e6a51aa64cdfd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:50 +0800 Subject: [PATCH 033/373] feat: update --- lib/Model/AiUploadModelsResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiUploadModelsResult.php diff --git a/lib/Model/AiUploadModelsResult.php b/lib/Model/AiUploadModelsResult.php new file mode 100644 index 000000000..4559d9ebe --- /dev/null +++ b/lib/Model/AiUploadModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 446377ace6d000ce0994ba8407a64f6a58cb3477 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:52 +0800 Subject: [PATCH 034/373] feat: update --- lib/Model/BatchStopGameForms.php | 407 +++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/BatchStopGameForms.php diff --git a/lib/Model/BatchStopGameForms.php b/lib/Model/BatchStopGameForms.php new file mode 100644 index 000000000..cdbec85c1 --- /dev/null +++ b/lib/Model/BatchStopGameForms.php @@ -0,0 +1,407 @@ + 'string', +'app_key' => 'string', +'token' => 'string', +'reason' => 'string', +'track_info' => 'string', +'tags' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null, +'token' => null, +'reason' => null, +'track_info' => null, +'tags' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey', +'token' => 'token', +'reason' => 'reason', +'track_info' => 'trackInfo', +'tags' => 'tags' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'token' => 'setToken', +'reason' => 'setReason', +'track_info' => 'setTrackInfo', +'tags' => 'setTags' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'token' => 'getToken', +'reason' => 'getReason', +'track_info' => 'getTrackInfo', +'tags' => 'getTags' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['track_info'] = isset($data['track_info']) ? $data['track_info'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token 通过接口获取的token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason 踢人的原因,会透传到sdk侧 + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets track_info + * + * @return string + */ + public function getTrackInfo() + { + return $this->container['track_info']; + } + + /** + * Sets track_info + * + * @param string $track_info TrackInfo,回传消息 + * + * @return $this + */ + public function setTrackInfo($track_info) + { + $this->container['track_info'] = $track_info; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags 支持多标签传输 + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 88d7ff8e21603162f9cac49472e8bb1f40ea52b4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:53 +0800 Subject: [PATCH 035/373] feat: update --- lib/Model/BatchStopGameResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/BatchStopGameResult.php diff --git a/lib/Model/BatchStopGameResult.php b/lib/Model/BatchStopGameResult.php new file mode 100644 index 000000000..00ef6289a --- /dev/null +++ b/lib/Model/BatchStopGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 53fd5b9299975ff9f31c135014c35e1403266260 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:55 +0800 Subject: [PATCH 036/373] feat: update --- lib/Model/BatchStopGameResultModel.php | 437 +++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/BatchStopGameResultModel.php diff --git a/lib/Model/BatchStopGameResultModel.php b/lib/Model/BatchStopGameResultModel.php new file mode 100644 index 000000000..8b9a99400 --- /dev/null +++ b/lib/Model/BatchStopGameResultModel.php @@ -0,0 +1,437 @@ + 'string', +'track_info' => 'string', +'code' => 'string', +'request_id' => 'string', +'success' => 'bool', +'message' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'track_info' => null, +'code' => null, +'request_id' => null, +'success' => null, +'message' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'track_info' => 'trackInfo', +'code' => 'code', +'request_id' => 'requestId', +'success' => 'success', +'message' => 'message', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'track_info' => 'setTrackInfo', +'code' => 'setCode', +'request_id' => 'setRequestId', +'success' => 'setSuccess', +'message' => 'setMessage', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'track_info' => 'getTrackInfo', +'code' => 'getCode', +'request_id' => 'getRequestId', +'success' => 'getSuccess', +'message' => 'getMessage', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['track_info'] = isset($data['track_info']) ? $data['track_info'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets track_info + * + * @return string + */ + public function getTrackInfo() + { + return $this->container['track_info']; + } + + /** + * Sets track_info + * + * @param string $track_info 批量停止的回传trackInfo + * + * @return $this + */ + public function setTrackInfo($track_info) + { + $this->container['track_info'] = $track_info; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id 请求链路唯一标示 + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 游戏归属的项目Id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2488a021c2c91dbc565a9273e83d84c1deab9f03 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:57 +0800 Subject: [PATCH 037/373] feat: update --- lib/Model/CancelGameHangForms.php | 287 ++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/CancelGameHangForms.php diff --git a/lib/Model/CancelGameHangForms.php b/lib/Model/CancelGameHangForms.php new file mode 100644 index 000000000..5a6a6b7a5 --- /dev/null +++ b/lib/Model/CancelGameHangForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f1dc4e24ff4015380a628f35b8a974c1dad0b8ed Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:58 +0800 Subject: [PATCH 038/373] feat: update --- lib/Model/CancelGameHangResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/CancelGameHangResult.php diff --git a/lib/Model/CancelGameHangResult.php b/lib/Model/CancelGameHangResult.php new file mode 100644 index 000000000..335d973cf --- /dev/null +++ b/lib/Model/CancelGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c46b2f64c7cb1ac304ffc1442a33bbc464089d66 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:10:59 +0800 Subject: [PATCH 039/373] feat: update --- lib/Model/CancelGameHangResultModel.php | 347 ++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/CancelGameHangResultModel.php diff --git a/lib/Model/CancelGameHangResultModel.php b/lib/Model/CancelGameHangResultModel.php new file mode 100644 index 000000000..dd7275554 --- /dev/null +++ b/lib/Model/CancelGameHangResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 46c70c30cd454949f54d4014f44d3717e21d9716 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:01 +0800 Subject: [PATCH 040/373] feat: update --- lib/Model/ClientNotifyForms.php | 317 ++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ClientNotifyForms.php diff --git a/lib/Model/ClientNotifyForms.php b/lib/Model/ClientNotifyForms.php new file mode 100644 index 000000000..76e878bb5 --- /dev/null +++ b/lib/Model/ClientNotifyForms.php @@ -0,0 +1,317 @@ + 'string', +'game_session' => 'string', +'value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'value' => 'value' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'value' => 'setValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'value' => 'getValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets value + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value value + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 164e951dac85278b2a857034127d23fe2778c17d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:02 +0800 Subject: [PATCH 041/373] feat: update --- lib/Model/ClientNotifyResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ClientNotifyResult.php diff --git a/lib/Model/ClientNotifyResult.php b/lib/Model/ClientNotifyResult.php new file mode 100644 index 000000000..d903e3002 --- /dev/null +++ b/lib/Model/ClientNotifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9e8e6a75406c48fd64b8e231979adec4bb95ee8b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:03 +0800 Subject: [PATCH 042/373] feat: update --- lib/Model/ClientNotifyResultModel.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ClientNotifyResultModel.php diff --git a/lib/Model/ClientNotifyResultModel.php b/lib/Model/ClientNotifyResultModel.php new file mode 100644 index 000000000..a2b8cec69 --- /dev/null +++ b/lib/Model/ClientNotifyResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d6200e9af08db70657dffe8aba09b84aa4d4cffc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:05 +0800 Subject: [PATCH 043/373] feat: update --- .../ConsoleAdminActivateDeploymentForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminActivateDeploymentForms.php diff --git a/lib/Model/ConsoleAdminActivateDeploymentForms.php b/lib/Model/ConsoleAdminActivateDeploymentForms.php new file mode 100644 index 000000000..745c57891 --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentForms.php @@ -0,0 +1,347 @@ + 'string', +'project_id' => 'string', +'version_id' => 'string', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'project_id' => null, +'version_id' => null, +'max_concurrency' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'project_id' => 'projectId', +'version_id' => 'versionId', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'project_id' => 'setProjectId', +'version_id' => 'setVersionId', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'project_id' => 'getProjectId', +'version_id' => 'getVersionId', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c344866b43bc949bada77e877e6064ef610d713f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:07 +0800 Subject: [PATCH 044/373] feat: update --- .../ConsoleAdminActivateDeploymentResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminActivateDeploymentResult.php diff --git a/lib/Model/ConsoleAdminActivateDeploymentResult.php b/lib/Model/ConsoleAdminActivateDeploymentResult.php new file mode 100644 index 000000000..2621d9b92 --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c7ee40ed5ae296226086036a48481c9f9d81b05f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:08 +0800 Subject: [PATCH 045/373] feat: update --- ...soleAdminActivateDeploymentResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminActivateDeploymentResultModel.php diff --git a/lib/Model/ConsoleAdminActivateDeploymentResultModel.php b/lib/Model/ConsoleAdminActivateDeploymentResultModel.php new file mode 100644 index 000000000..32a9cb1d3 --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentResultModel.php @@ -0,0 +1,257 @@ + 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'activated' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'activated' => 'activated' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'activated' => 'setActivated' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'activated' => 'getActivated' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['activated'] = isset($data['activated']) ? $data['activated'] : null; + } + + + /** + * Gets activated + * + * @return bool + */ + public function getActivated() + { + return $this->container['activated']; + } + + /** + * Sets activated + * + * @param bool $activated activated + * + * @return $this + */ + public function setActivated($activated) + { + $this->container['activated'] = $activated; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ae63c80010f46d11bb18e9b049ee3d13d6de7c64 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:09 +0800 Subject: [PATCH 046/373] feat: update --- .../ConsoleAdminAdaptGameVersionForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminAdaptGameVersionForms.php diff --git a/lib/Model/ConsoleAdminAdaptGameVersionForms.php b/lib/Model/ConsoleAdminAdaptGameVersionForms.php new file mode 100644 index 000000000..70efd9165 --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From eb457beb5a1b3b8a98b598ac5274421292312e1f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:11 +0800 Subject: [PATCH 047/373] feat: update --- .../ConsoleAdminAdaptGameVersionResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminAdaptGameVersionResult.php diff --git a/lib/Model/ConsoleAdminAdaptGameVersionResult.php b/lib/Model/ConsoleAdminAdaptGameVersionResult.php new file mode 100644 index 000000000..c36f93aed --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fbeed733096508263145056387b82040d902e9cc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:12 +0800 Subject: [PATCH 048/373] feat: update --- ...onsoleAdminAdaptGameVersionResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminAdaptGameVersionResultModel.php diff --git a/lib/Model/ConsoleAdminAdaptGameVersionResultModel.php b/lib/Model/ConsoleAdminAdaptGameVersionResultModel.php new file mode 100644 index 000000000..5259c3e1a --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3c5f09145e8d7908fe557ff446936229b805fa8d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:13 +0800 Subject: [PATCH 049/373] feat: update --- .../ConsoleAdminAddGameToProjectForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminAddGameToProjectForms.php diff --git a/lib/Model/ConsoleAdminAddGameToProjectForms.php b/lib/Model/ConsoleAdminAddGameToProjectForms.php new file mode 100644 index 000000000..fbcb0c49e --- /dev/null +++ b/lib/Model/ConsoleAdminAddGameToProjectForms.php @@ -0,0 +1,287 @@ + 'string', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 61eee867d099d4395689dc3842ffcecb6ce8396e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:15 +0800 Subject: [PATCH 050/373] feat: update --- .../ConsoleAdminAddGameToProjectResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminAddGameToProjectResult.php diff --git a/lib/Model/ConsoleAdminAddGameToProjectResult.php b/lib/Model/ConsoleAdminAddGameToProjectResult.php new file mode 100644 index 000000000..4dbf2fd47 --- /dev/null +++ b/lib/Model/ConsoleAdminAddGameToProjectResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5109c731e60301c377dd2e0d6a948c6e925dd312 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:16 +0800 Subject: [PATCH 051/373] feat: update --- ...oleAdminBatchUpdateDispatchConfigForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php diff --git a/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php new file mode 100644 index 000000000..e3793ea85 --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php @@ -0,0 +1,347 @@ + 'string', +'instance_id' => 'string', +'app_name' => 'string', +'config_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_project_id' => null, +'instance_id' => null, +'app_name' => null, +'config_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_project_id' => 'mixProjectId', +'instance_id' => 'instanceId', +'app_name' => 'appName', +'config_list' => 'configList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_project_id' => 'setMixProjectId', +'instance_id' => 'setInstanceId', +'app_name' => 'setAppName', +'config_list' => 'setConfigList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_project_id' => 'getMixProjectId', +'instance_id' => 'getInstanceId', +'app_name' => 'getAppName', +'config_list' => 'getConfigList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_project_id'] = isset($data['mix_project_id']) ? $data['mix_project_id'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['app_name'] = isset($data['app_name']) ? $data['app_name'] : null; + $this->container['config_list'] = isset($data['config_list']) ? $data['config_list'] : null; + } + + + /** + * Gets mix_project_id + * + * @return string + */ + public function getMixProjectId() + { + return $this->container['mix_project_id']; + } + + /** + * Sets mix_project_id + * + * @param string $mix_project_id 项目id(混淆) + * + * @return $this + */ + public function setMixProjectId($mix_project_id) + { + $this->container['mix_project_id'] = $mix_project_id; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例id + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets app_name + * + * @return string + */ + public function getAppName() + { + return $this->container['app_name']; + } + + /** + * Sets app_name + * + * @param string $app_name 接入方唯一标识 + * + * @return $this + */ + public function setAppName($app_name) + { + $this->container['app_name'] = $app_name; + + return $this; + } + + /** + * Gets config_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[] + */ + public function getConfigList() + { + return $this->container['config_list']; + } + + /** + * Sets config_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[] $config_list config_list + * + * @return $this + */ + public function setConfigList($config_list) + { + $this->container['config_list'] = $config_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 26d44ed192e9c43b7d4b696788daea4d175c9d0f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:18 +0800 Subject: [PATCH 052/373] feat: update --- ...tchUpdateDispatchConfigFormsConfigList.php | 407 ++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php diff --git a/lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php new file mode 100644 index 000000000..46f155f60 --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigFormsConfigList.php @@ -0,0 +1,407 @@ + 'string', +'exclusive_concurrency' => 'int', +'max_concurrency_percent' => 'string', +'exclusive_concurrency_percent' => 'string', +'priority' => 'int', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_game_id' => null, +'exclusive_concurrency' => null, +'max_concurrency_percent' => null, +'exclusive_concurrency_percent' => null, +'priority' => null, +'max_concurrency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_game_id' => 'mixGameId', +'exclusive_concurrency' => 'exclusiveConcurrency', +'max_concurrency_percent' => 'maxConcurrencyPercent', +'exclusive_concurrency_percent' => 'exclusiveConcurrencyPercent', +'priority' => 'priority', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_game_id' => 'setMixGameId', +'exclusive_concurrency' => 'setExclusiveConcurrency', +'max_concurrency_percent' => 'setMaxConcurrencyPercent', +'exclusive_concurrency_percent' => 'setExclusiveConcurrencyPercent', +'priority' => 'setPriority', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_game_id' => 'getMixGameId', +'exclusive_concurrency' => 'getExclusiveConcurrency', +'max_concurrency_percent' => 'getMaxConcurrencyPercent', +'exclusive_concurrency_percent' => 'getExclusiveConcurrencyPercent', +'priority' => 'getPriority', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_game_id'] = isset($data['mix_game_id']) ? $data['mix_game_id'] : null; + $this->container['exclusive_concurrency'] = isset($data['exclusive_concurrency']) ? $data['exclusive_concurrency'] : null; + $this->container['max_concurrency_percent'] = isset($data['max_concurrency_percent']) ? $data['max_concurrency_percent'] : null; + $this->container['exclusive_concurrency_percent'] = isset($data['exclusive_concurrency_percent']) ? $data['exclusive_concurrency_percent'] : null; + $this->container['priority'] = isset($data['priority']) ? $data['priority'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets mix_game_id + * + * @return string + */ + public function getMixGameId() + { + return $this->container['mix_game_id']; + } + + /** + * Sets mix_game_id + * + * @param string $mix_game_id 编码游戏id + * + * @return $this + */ + public function setMixGameId($mix_game_id) + { + $this->container['mix_game_id'] = $mix_game_id; + + return $this; + } + + /** + * Gets exclusive_concurrency + * + * @return int + */ + public function getExclusiveConcurrency() + { + return $this->container['exclusive_concurrency']; + } + + /** + * Sets exclusive_concurrency + * + * @param int $exclusive_concurrency 独占并发数 + * + * @return $this + */ + public function setExclusiveConcurrency($exclusive_concurrency) + { + $this->container['exclusive_concurrency'] = $exclusive_concurrency; + + return $this; + } + + /** + * Gets max_concurrency_percent + * + * @return string + */ + public function getMaxConcurrencyPercent() + { + return $this->container['max_concurrency_percent']; + } + + /** + * Sets max_concurrency_percent + * + * @param string $max_concurrency_percent 最大并发百分比-Double类型[0.0,1.0] + * + * @return $this + */ + public function setMaxConcurrencyPercent($max_concurrency_percent) + { + $this->container['max_concurrency_percent'] = $max_concurrency_percent; + + return $this; + } + + /** + * Gets exclusive_concurrency_percent + * + * @return string + */ + public function getExclusiveConcurrencyPercent() + { + return $this->container['exclusive_concurrency_percent']; + } + + /** + * Sets exclusive_concurrency_percent + * + * @param string $exclusive_concurrency_percent 独占并发百分比--Double类型[0.0,1.0] + * + * @return $this + */ + public function setExclusiveConcurrencyPercent($exclusive_concurrency_percent) + { + $this->container['exclusive_concurrency_percent'] = $exclusive_concurrency_percent; + + return $this; + } + + /** + * Gets priority + * + * @return int + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param int $priority 调度等级 + * + * @return $this + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency 最大并发数 + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2947247bfa17126a78fef9bfd79100237b91e536 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:19 +0800 Subject: [PATCH 053/373] feat: update --- ...leAdminBatchUpdateDispatchConfigResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php diff --git a/lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php new file mode 100644 index 000000000..862464a3e --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return bool + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param bool $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 93a62daf52de7bb516627c702fb1a1b2f9f9e553 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:20 +0800 Subject: [PATCH 054/373] feat: update --- lib/Model/ConsoleAdminCreateGameForms.php | 317 ++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateGameForms.php diff --git a/lib/Model/ConsoleAdminCreateGameForms.php b/lib/Model/ConsoleAdminCreateGameForms.php new file mode 100644 index 000000000..8bef78518 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameForms.php @@ -0,0 +1,317 @@ + 'string', +'platform_type' => 'int', +'os_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_name' => null, +'platform_type' => 'int64', +'os_type' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_name' => 'gameName', +'platform_type' => 'platformType', +'os_type' => 'osType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_name' => 'setGameName', +'platform_type' => 'setPlatformType', +'os_type' => 'setOsType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_name' => 'getGameName', +'platform_type' => 'getPlatformType', +'os_type' => 'getOsType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['os_type'] = isset($data['os_type']) ? $data['os_type'] : null; + } + + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets os_type + * + * @return int + */ + public function getOsType() + { + return $this->container['os_type']; + } + + /** + * Sets os_type + * + * @param int $os_type os_type + * + * @return $this + */ + public function setOsType($os_type) + { + $this->container['os_type'] = $os_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9a916e5aad61282cc8fb64dc5f7e85a1eb215741 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:22 +0800 Subject: [PATCH 055/373] feat: update --- lib/Model/ConsoleAdminCreateGameResult.php | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateGameResult.php diff --git a/lib/Model/ConsoleAdminCreateGameResult.php b/lib/Model/ConsoleAdminCreateGameResult.php new file mode 100644 index 000000000..f62d909c4 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9b103e950069efacff33f8bc2b281067205a61f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:23 +0800 Subject: [PATCH 056/373] feat: update --- .../ConsoleAdminCreateGameResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateGameResultModel.php diff --git a/lib/Model/ConsoleAdminCreateGameResultModel.php b/lib/Model/ConsoleAdminCreateGameResultModel.php new file mode 100644 index 000000000..47b192575 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 772993edcb4a7b2269a683667ccfa00ec65bf92b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:25 +0800 Subject: [PATCH 057/373] feat: update --- lib/Model/ConsoleAdminCreateOrderForms.php | 467 +++++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderForms.php diff --git a/lib/Model/ConsoleAdminCreateOrderForms.php b/lib/Model/ConsoleAdminCreateOrderForms.php new file mode 100644 index 000000000..d60823d53 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderForms.php @@ -0,0 +1,467 @@ + 'string', +'commodity_code' => 'string', +'instance_id' => 'string', +'primary_charge_item_code' => 'string', +'attribute_request_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[]', +'order_type' => 'string', +'auto_renew' => 'bool', +'create_order_ext_params' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'category_code' => null, +'commodity_code' => null, +'instance_id' => null, +'primary_charge_item_code' => null, +'attribute_request_list' => null, +'order_type' => null, +'auto_renew' => null, +'create_order_ext_params' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'category_code' => 'categoryCode', +'commodity_code' => 'commodityCode', +'instance_id' => 'instanceId', +'primary_charge_item_code' => 'primaryChargeItemCode', +'attribute_request_list' => 'attributeRequestList', +'order_type' => 'orderType', +'auto_renew' => 'autoRenew', +'create_order_ext_params' => 'createOrderExtParams' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'category_code' => 'setCategoryCode', +'commodity_code' => 'setCommodityCode', +'instance_id' => 'setInstanceId', +'primary_charge_item_code' => 'setPrimaryChargeItemCode', +'attribute_request_list' => 'setAttributeRequestList', +'order_type' => 'setOrderType', +'auto_renew' => 'setAutoRenew', +'create_order_ext_params' => 'setCreateOrderExtParams' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'category_code' => 'getCategoryCode', +'commodity_code' => 'getCommodityCode', +'instance_id' => 'getInstanceId', +'primary_charge_item_code' => 'getPrimaryChargeItemCode', +'attribute_request_list' => 'getAttributeRequestList', +'order_type' => 'getOrderType', +'auto_renew' => 'getAutoRenew', +'create_order_ext_params' => 'getCreateOrderExtParams' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['category_code'] = isset($data['category_code']) ? $data['category_code'] : null; + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['primary_charge_item_code'] = isset($data['primary_charge_item_code']) ? $data['primary_charge_item_code'] : null; + $this->container['attribute_request_list'] = isset($data['attribute_request_list']) ? $data['attribute_request_list'] : null; + $this->container['order_type'] = isset($data['order_type']) ? $data['order_type'] : null; + $this->container['auto_renew'] = isset($data['auto_renew']) ? $data['auto_renew'] : null; + $this->container['create_order_ext_params'] = isset($data['create_order_ext_params']) ? $data['create_order_ext_params'] : null; + } + + + /** + * Gets category_code + * + * @return string + */ + public function getCategoryCode() + { + return $this->container['category_code']; + } + + /** + * Sets category_code + * + * @param string $category_code 类目编码 + * + * @return $this + */ + public function setCategoryCode($category_code) + { + $this->container['category_code'] = $category_code; + + return $this; + } + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code 商品编码 + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets primary_charge_item_code + * + * @return string + */ + public function getPrimaryChargeItemCode() + { + return $this->container['primary_charge_item_code']; + } + + /** + * Sets primary_charge_item_code + * + * @param string $primary_charge_item_code 主计费项编码 + * + * @return $this + */ + public function setPrimaryChargeItemCode($primary_charge_item_code) + { + $this->container['primary_charge_item_code'] = $primary_charge_item_code; + + return $this; + } + + /** + * Gets attribute_request_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[] + */ + public function getAttributeRequestList() + { + return $this->container['attribute_request_list']; + } + + /** + * Sets attribute_request_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[] $attribute_request_list attribute_request_list + * + * @return $this + */ + public function setAttributeRequestList($attribute_request_list) + { + $this->container['attribute_request_list'] = $attribute_request_list; + + return $this; + } + + /** + * Gets order_type + * + * @return string + */ + public function getOrderType() + { + return $this->container['order_type']; + } + + /** + * Sets order_type + * + * @param string $order_type 订单类型 + * + * @return $this + */ + public function setOrderType($order_type) + { + $this->container['order_type'] = $order_type; + + return $this; + } + + /** + * Gets auto_renew + * + * @return bool + */ + public function getAutoRenew() + { + return $this->container['auto_renew']; + } + + /** + * Sets auto_renew + * + * @param bool $auto_renew 是否开启自动续费 + * + * @return $this + */ + public function setAutoRenew($auto_renew) + { + $this->container['auto_renew'] = $auto_renew; + + return $this; + } + + /** + * Gets create_order_ext_params + * + * @return string + */ + public function getCreateOrderExtParams() + { + return $this->container['create_order_ext_params']; + } + + /** + * Sets create_order_ext_params + * + * @param string $create_order_ext_params 下单扩展信息 + * + * @return $this + */ + public function setCreateOrderExtParams($create_order_ext_params) + { + $this->container['create_order_ext_params'] = $create_order_ext_params; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7ad4ae1378b40678853f313ed400a3791299ed61 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:26 +0800 Subject: [PATCH 058/373] feat: update --- ...inCreateOrderFormsAttributeRequestList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php diff --git a/lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php b/lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php new file mode 100644 index 000000000..354e815e6 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderFormsAttributeRequestList.php @@ -0,0 +1,347 @@ + 'string', +'attribute_value' => 'int', +'attribute_value_code' => 'int', +'time_unit' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'attribute_code' => null, +'attribute_value' => null, +'attribute_value_code' => 'int64', +'time_unit' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attribute_code' => 'attributeCode', +'attribute_value' => 'attributeValue', +'attribute_value_code' => 'attributeValueCode', +'time_unit' => 'timeUnit' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attribute_code' => 'setAttributeCode', +'attribute_value' => 'setAttributeValue', +'attribute_value_code' => 'setAttributeValueCode', +'time_unit' => 'setTimeUnit' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attribute_code' => 'getAttributeCode', +'attribute_value' => 'getAttributeValue', +'attribute_value_code' => 'getAttributeValueCode', +'time_unit' => 'getTimeUnit' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attribute_code'] = isset($data['attribute_code']) ? $data['attribute_code'] : null; + $this->container['attribute_value'] = isset($data['attribute_value']) ? $data['attribute_value'] : null; + $this->container['attribute_value_code'] = isset($data['attribute_value_code']) ? $data['attribute_value_code'] : null; + $this->container['time_unit'] = isset($data['time_unit']) ? $data['time_unit'] : null; + } + + + /** + * Gets attribute_code + * + * @return string + */ + public function getAttributeCode() + { + return $this->container['attribute_code']; + } + + /** + * Sets attribute_code + * + * @param string $attribute_code 属性编码 + * + * @return $this + */ + public function setAttributeCode($attribute_code) + { + $this->container['attribute_code'] = $attribute_code; + + return $this; + } + + /** + * Gets attribute_value + * + * @return int + */ + public function getAttributeValue() + { + return $this->container['attribute_value']; + } + + /** + * Sets attribute_value + * + * @param int $attribute_value 属性值(区间型专用) + * + * @return $this + */ + public function setAttributeValue($attribute_value) + { + $this->container['attribute_value'] = $attribute_value; + + return $this; + } + + /** + * Gets attribute_value_code + * + * @return int + */ + public function getAttributeValueCode() + { + return $this->container['attribute_value_code']; + } + + /** + * Sets attribute_value_code + * + * @param int $attribute_value_code 属性值编码(枚举型,时长型 专用) + * + * @return $this + */ + public function setAttributeValueCode($attribute_value_code) + { + $this->container['attribute_value_code'] = $attribute_value_code; + + return $this; + } + + /** + * Gets time_unit + * + * @return string + */ + public function getTimeUnit() + { + return $this->container['time_unit']; + } + + /** + * Sets time_unit + * + * @param string $time_unit 时长单位 + * + * @return $this + */ + public function setTimeUnit($time_unit) + { + $this->container['time_unit'] = $time_unit; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 59e6c4f0f08fec383b2902c19bd9e26b7aeff23c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:28 +0800 Subject: [PATCH 059/373] feat: update --- lib/Model/ConsoleAdminCreateOrderResult.php | 347 ++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderResult.php diff --git a/lib/Model/ConsoleAdminCreateOrderResult.php b/lib/Model/ConsoleAdminCreateOrderResult.php new file mode 100644 index 000000000..60dff82b1 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6a2c275b1c17b42141379c5cee186007b35d9cdb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:29 +0800 Subject: [PATCH 060/373] feat: update --- .../ConsoleAdminCreateOrderResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateOrderResultModel.php diff --git a/lib/Model/ConsoleAdminCreateOrderResultModel.php b/lib/Model/ConsoleAdminCreateOrderResultModel.php new file mode 100644 index 000000000..be648ff45 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderResultModel.php @@ -0,0 +1,287 @@ + 'string', +'order_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'instance_id' => null, +'order_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'instance_id' => 'instanceId', +'order_id' => 'orderId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'instance_id' => 'setInstanceId', +'order_id' => 'setOrderId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'instance_id' => 'getInstanceId', +'order_id' => 'getOrderId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + } + + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id 订单ID + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5d41c297986f34d5026d50a04245bc1d4d4c6e38 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:30 +0800 Subject: [PATCH 061/373] feat: update --- lib/Model/ConsoleAdminCreateProjectForms.php | 257 +++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateProjectForms.php diff --git a/lib/Model/ConsoleAdminCreateProjectForms.php b/lib/Model/ConsoleAdminCreateProjectForms.php new file mode 100644 index 000000000..2afe894d7 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_name' => 'projectName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_name' => 'setProjectName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_name' => 'getProjectName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_name'] = isset($data['project_name']) ? $data['project_name'] : null; + } + + + /** + * Gets project_name + * + * @return string + */ + public function getProjectName() + { + return $this->container['project_name']; + } + + /** + * Sets project_name + * + * @param string $project_name project_name + * + * @return $this + */ + public function setProjectName($project_name) + { + $this->container['project_name'] = $project_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5f54f58691703a0b45a9b453b173ad1061b34ade Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:32 +0800 Subject: [PATCH 062/373] feat: update --- lib/Model/ConsoleAdminCreateProjectResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateProjectResult.php diff --git a/lib/Model/ConsoleAdminCreateProjectResult.php b/lib/Model/ConsoleAdminCreateProjectResult.php new file mode 100644 index 000000000..371f00c69 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0ef86649377ca60beacc1d5640f48aa4483753db Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:33 +0800 Subject: [PATCH 063/373] feat: update --- .../ConsoleAdminCreateProjectResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminCreateProjectResultModel.php diff --git a/lib/Model/ConsoleAdminCreateProjectResultModel.php b/lib/Model/ConsoleAdminCreateProjectResultModel.php new file mode 100644 index 000000000..0f162c8e4 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f49209cda55b9cbdf73bafbb32ce66b9330e158a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:35 +0800 Subject: [PATCH 064/373] feat: update --- lib/Model/ConsoleAdminDeleteGameForms.php | 257 ++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameForms.php diff --git a/lib/Model/ConsoleAdminDeleteGameForms.php b/lib/Model/ConsoleAdminDeleteGameForms.php new file mode 100644 index 000000000..44cd6face --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 601b0542a3bcc31dfc221d027747f7cef38d85f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:36 +0800 Subject: [PATCH 065/373] feat: update --- lib/Model/ConsoleAdminDeleteGameResult.php | 317 +++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameResult.php diff --git a/lib/Model/ConsoleAdminDeleteGameResult.php b/lib/Model/ConsoleAdminDeleteGameResult.php new file mode 100644 index 000000000..29abf395a --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 05670497d02c55525e50f6b58de22238f4c877a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:37 +0800 Subject: [PATCH 066/373] feat: update --- .../ConsoleAdminDeleteGameVersionForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameVersionForms.php diff --git a/lib/Model/ConsoleAdminDeleteGameVersionForms.php b/lib/Model/ConsoleAdminDeleteGameVersionForms.php new file mode 100644 index 000000000..cd14c2fa0 --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameVersionForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a22065580de795585f2320a00f1e56f6ff405362 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:39 +0800 Subject: [PATCH 067/373] feat: update --- .../ConsoleAdminDeleteGameVersionResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteGameVersionResult.php diff --git a/lib/Model/ConsoleAdminDeleteGameVersionResult.php b/lib/Model/ConsoleAdminDeleteGameVersionResult.php new file mode 100644 index 000000000..b1725abc5 --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteGameVersionResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b0b1e779bda54ec6ef59bff8a554c5762cdaa596 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:40 +0800 Subject: [PATCH 068/373] feat: update --- lib/Model/ConsoleAdminDeleteProjectForms.php | 257 +++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteProjectForms.php diff --git a/lib/Model/ConsoleAdminDeleteProjectForms.php b/lib/Model/ConsoleAdminDeleteProjectForms.php new file mode 100644 index 000000000..5e1a26dea --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteProjectForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 59f4063b65f61b506e78c5f8638511f06dcfc34e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:41 +0800 Subject: [PATCH 069/373] feat: update --- lib/Model/ConsoleAdminDeleteProjectResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminDeleteProjectResult.php diff --git a/lib/Model/ConsoleAdminDeleteProjectResult.php b/lib/Model/ConsoleAdminDeleteProjectResult.php new file mode 100644 index 000000000..b55c38591 --- /dev/null +++ b/lib/Model/ConsoleAdminDeleteProjectResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4efe43efd96103cde56d32f6d35b970ae41f1a2d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:43 +0800 Subject: [PATCH 070/373] feat: update --- .../ConsoleAdminGetBillFlowInfoForms.php | 527 ++++++++++++++++++ 1 file changed, 527 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoForms.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoForms.php b/lib/Model/ConsoleAdminGetBillFlowInfoForms.php new file mode 100644 index 000000000..7b5f77f26 --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoForms.php @@ -0,0 +1,527 @@ + 'string', +'accounting_period_to' => 'string', +'commodity_code' => 'string', +'tenant_id' => 'string', +'order_id' => 'string', +'status' => 'string', +'consume_type' => 'string', +'bill_type' => 'string', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'accounting_period_from' => null, +'accounting_period_to' => null, +'commodity_code' => null, +'tenant_id' => null, +'order_id' => null, +'status' => null, +'consume_type' => null, +'bill_type' => null, +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accounting_period_from' => 'accountingPeriodFrom', +'accounting_period_to' => 'accountingPeriodTo', +'commodity_code' => 'commodityCode', +'tenant_id' => 'tenantId', +'order_id' => 'orderId', +'status' => 'status', +'consume_type' => 'consumeType', +'bill_type' => 'billType', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accounting_period_from' => 'setAccountingPeriodFrom', +'accounting_period_to' => 'setAccountingPeriodTo', +'commodity_code' => 'setCommodityCode', +'tenant_id' => 'setTenantId', +'order_id' => 'setOrderId', +'status' => 'setStatus', +'consume_type' => 'setConsumeType', +'bill_type' => 'setBillType', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accounting_period_from' => 'getAccountingPeriodFrom', +'accounting_period_to' => 'getAccountingPeriodTo', +'commodity_code' => 'getCommodityCode', +'tenant_id' => 'getTenantId', +'order_id' => 'getOrderId', +'status' => 'getStatus', +'consume_type' => 'getConsumeType', +'bill_type' => 'getBillType', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accounting_period_from'] = isset($data['accounting_period_from']) ? $data['accounting_period_from'] : null; + $this->container['accounting_period_to'] = isset($data['accounting_period_to']) ? $data['accounting_period_to'] : null; + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['consume_type'] = isset($data['consume_type']) ? $data['consume_type'] : null; + $this->container['bill_type'] = isset($data['bill_type']) ? $data['bill_type'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets accounting_period_from + * + * @return string + */ + public function getAccountingPeriodFrom() + { + return $this->container['accounting_period_from']; + } + + /** + * Sets accounting_period_from + * + * @param string $accounting_period_from accounting_period_from + * + * @return $this + */ + public function setAccountingPeriodFrom($accounting_period_from) + { + $this->container['accounting_period_from'] = $accounting_period_from; + + return $this; + } + + /** + * Gets accounting_period_to + * + * @return string + */ + public function getAccountingPeriodTo() + { + return $this->container['accounting_period_to']; + } + + /** + * Sets accounting_period_to + * + * @param string $accounting_period_to accounting_period_to + * + * @return $this + */ + public function setAccountingPeriodTo($accounting_period_to) + { + $this->container['accounting_period_to'] = $accounting_period_to; + + return $this; + } + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code commodity_code + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets tenant_id + * + * @return string + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param string $tenant_id tenant_id + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id order_id + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets consume_type + * + * @return string + */ + public function getConsumeType() + { + return $this->container['consume_type']; + } + + /** + * Sets consume_type + * + * @param string $consume_type consume_type + * + * @return $this + */ + public function setConsumeType($consume_type) + { + $this->container['consume_type'] = $consume_type; + + return $this; + } + + /** + * Gets bill_type + * + * @return string + */ + public function getBillType() + { + return $this->container['bill_type']; + } + + /** + * Sets bill_type + * + * @param string $bill_type bill_type + * + * @return $this + */ + public function setBillType($bill_type) + { + $this->container['bill_type'] = $bill_type; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d8dc398ee73a12cb74fc3ce41b865b9c8757e07e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:45 +0800 Subject: [PATCH 071/373] feat: update --- .../ConsoleAdminGetBillFlowInfoResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoResult.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoResult.php b/lib/Model/ConsoleAdminGetBillFlowInfoResult.php new file mode 100644 index 000000000..6f8c15267 --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dedaaa4c6fcd941d37903d8d4aca4a87348fde99 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:46 +0800 Subject: [PATCH 072/373] feat: update --- ...ConsoleAdminGetBillFlowInfoResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php b/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php new file mode 100644 index 000000000..da4f1c41f --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php @@ -0,0 +1,347 @@ + 'int', +'pagesize' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'pagesize' => null, +'total_count' => null, +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'pagesize' => 'pagesize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'pagesize' => 'setPagesize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'pagesize' => 'getPagesize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['pagesize'] = isset($data['pagesize']) ? $data['pagesize'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets pagesize + * + * @return int + */ + public function getPagesize() + { + return $this->container['pagesize']; + } + + /** + * Sets pagesize + * + * @param int $pagesize pagesize + * + * @return $this + */ + public function setPagesize($pagesize) + { + $this->container['pagesize'] = $pagesize; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResultModelItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 713d7e575061a4de9f6586d5f09e1aba2d1d1b23 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:48 +0800 Subject: [PATCH 073/373] feat: update --- ...leAdminGetBillFlowInfoResultModelItems.php | 707 ++++++++++++++++++ 1 file changed, 707 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php diff --git a/lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php b/lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php new file mode 100644 index 000000000..b7e596a43 --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResultModelItems.php @@ -0,0 +1,707 @@ + 'int', +'total_unclear_amount' => 'string', +'amount' => 'int', +'order_id' => 'string', +'bill_type' => 'string', +'discount_amount' => 'string', +'actual_total_pay_amount' => 'int', +'refund_order_id' => 'string', +'consume_period_end_time' => 'int', +'pay_amount' => 'int', +'tenant_name' => 'string', +'settlement_status' => 'string', +'voucher_pay_amount' => 'string', +'accounting_period' => 'string', +'consume_type' => 'string', +'commodity_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'consume_period_start_time' => 'int64', +'total_unclear_amount' => null, +'amount' => 'int64', +'order_id' => null, +'bill_type' => null, +'discount_amount' => null, +'actual_total_pay_amount' => 'int64', +'refund_order_id' => null, +'consume_period_end_time' => 'int64', +'pay_amount' => 'int64', +'tenant_name' => null, +'settlement_status' => null, +'voucher_pay_amount' => null, +'accounting_period' => null, +'consume_type' => null, +'commodity_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'consume_period_start_time' => 'consumePeriodStartTime', +'total_unclear_amount' => 'totalUnclearAmount', +'amount' => 'amount', +'order_id' => 'orderId', +'bill_type' => 'billType', +'discount_amount' => 'discountAmount', +'actual_total_pay_amount' => 'actualTotalPayAmount', +'refund_order_id' => 'refundOrderId', +'consume_period_end_time' => 'consumePeriodEndTime', +'pay_amount' => 'payAmount', +'tenant_name' => 'tenantName', +'settlement_status' => 'settlementStatus', +'voucher_pay_amount' => 'voucherPayAmount', +'accounting_period' => 'accountingPeriod', +'consume_type' => 'consumeType', +'commodity_name' => 'commodityName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'consume_period_start_time' => 'setConsumePeriodStartTime', +'total_unclear_amount' => 'setTotalUnclearAmount', +'amount' => 'setAmount', +'order_id' => 'setOrderId', +'bill_type' => 'setBillType', +'discount_amount' => 'setDiscountAmount', +'actual_total_pay_amount' => 'setActualTotalPayAmount', +'refund_order_id' => 'setRefundOrderId', +'consume_period_end_time' => 'setConsumePeriodEndTime', +'pay_amount' => 'setPayAmount', +'tenant_name' => 'setTenantName', +'settlement_status' => 'setSettlementStatus', +'voucher_pay_amount' => 'setVoucherPayAmount', +'accounting_period' => 'setAccountingPeriod', +'consume_type' => 'setConsumeType', +'commodity_name' => 'setCommodityName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'consume_period_start_time' => 'getConsumePeriodStartTime', +'total_unclear_amount' => 'getTotalUnclearAmount', +'amount' => 'getAmount', +'order_id' => 'getOrderId', +'bill_type' => 'getBillType', +'discount_amount' => 'getDiscountAmount', +'actual_total_pay_amount' => 'getActualTotalPayAmount', +'refund_order_id' => 'getRefundOrderId', +'consume_period_end_time' => 'getConsumePeriodEndTime', +'pay_amount' => 'getPayAmount', +'tenant_name' => 'getTenantName', +'settlement_status' => 'getSettlementStatus', +'voucher_pay_amount' => 'getVoucherPayAmount', +'accounting_period' => 'getAccountingPeriod', +'consume_type' => 'getConsumeType', +'commodity_name' => 'getCommodityName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['consume_period_start_time'] = isset($data['consume_period_start_time']) ? $data['consume_period_start_time'] : null; + $this->container['total_unclear_amount'] = isset($data['total_unclear_amount']) ? $data['total_unclear_amount'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['bill_type'] = isset($data['bill_type']) ? $data['bill_type'] : null; + $this->container['discount_amount'] = isset($data['discount_amount']) ? $data['discount_amount'] : null; + $this->container['actual_total_pay_amount'] = isset($data['actual_total_pay_amount']) ? $data['actual_total_pay_amount'] : null; + $this->container['refund_order_id'] = isset($data['refund_order_id']) ? $data['refund_order_id'] : null; + $this->container['consume_period_end_time'] = isset($data['consume_period_end_time']) ? $data['consume_period_end_time'] : null; + $this->container['pay_amount'] = isset($data['pay_amount']) ? $data['pay_amount'] : null; + $this->container['tenant_name'] = isset($data['tenant_name']) ? $data['tenant_name'] : null; + $this->container['settlement_status'] = isset($data['settlement_status']) ? $data['settlement_status'] : null; + $this->container['voucher_pay_amount'] = isset($data['voucher_pay_amount']) ? $data['voucher_pay_amount'] : null; + $this->container['accounting_period'] = isset($data['accounting_period']) ? $data['accounting_period'] : null; + $this->container['consume_type'] = isset($data['consume_type']) ? $data['consume_type'] : null; + $this->container['commodity_name'] = isset($data['commodity_name']) ? $data['commodity_name'] : null; + } + + + /** + * Gets consume_period_start_time + * + * @return int + */ + public function getConsumePeriodStartTime() + { + return $this->container['consume_period_start_time']; + } + + /** + * Sets consume_period_start_time + * + * @param int $consume_period_start_time consume_period_start_time + * + * @return $this + */ + public function setConsumePeriodStartTime($consume_period_start_time) + { + $this->container['consume_period_start_time'] = $consume_period_start_time; + + return $this; + } + + /** + * Gets total_unclear_amount + * + * @return string + */ + public function getTotalUnclearAmount() + { + return $this->container['total_unclear_amount']; + } + + /** + * Sets total_unclear_amount + * + * @param string $total_unclear_amount total_unclear_amount + * + * @return $this + */ + public function setTotalUnclearAmount($total_unclear_amount) + { + $this->container['total_unclear_amount'] = $total_unclear_amount; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id order_id + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + + /** + * Gets bill_type + * + * @return string + */ + public function getBillType() + { + return $this->container['bill_type']; + } + + /** + * Sets bill_type + * + * @param string $bill_type bill_type + * + * @return $this + */ + public function setBillType($bill_type) + { + $this->container['bill_type'] = $bill_type; + + return $this; + } + + /** + * Gets discount_amount + * + * @return string + */ + public function getDiscountAmount() + { + return $this->container['discount_amount']; + } + + /** + * Sets discount_amount + * + * @param string $discount_amount discount_amount + * + * @return $this + */ + public function setDiscountAmount($discount_amount) + { + $this->container['discount_amount'] = $discount_amount; + + return $this; + } + + /** + * Gets actual_total_pay_amount + * + * @return int + */ + public function getActualTotalPayAmount() + { + return $this->container['actual_total_pay_amount']; + } + + /** + * Sets actual_total_pay_amount + * + * @param int $actual_total_pay_amount actual_total_pay_amount + * + * @return $this + */ + public function setActualTotalPayAmount($actual_total_pay_amount) + { + $this->container['actual_total_pay_amount'] = $actual_total_pay_amount; + + return $this; + } + + /** + * Gets refund_order_id + * + * @return string + */ + public function getRefundOrderId() + { + return $this->container['refund_order_id']; + } + + /** + * Sets refund_order_id + * + * @param string $refund_order_id refund_order_id + * + * @return $this + */ + public function setRefundOrderId($refund_order_id) + { + $this->container['refund_order_id'] = $refund_order_id; + + return $this; + } + + /** + * Gets consume_period_end_time + * + * @return int + */ + public function getConsumePeriodEndTime() + { + return $this->container['consume_period_end_time']; + } + + /** + * Sets consume_period_end_time + * + * @param int $consume_period_end_time consume_period_end_time + * + * @return $this + */ + public function setConsumePeriodEndTime($consume_period_end_time) + { + $this->container['consume_period_end_time'] = $consume_period_end_time; + + return $this; + } + + /** + * Gets pay_amount + * + * @return int + */ + public function getPayAmount() + { + return $this->container['pay_amount']; + } + + /** + * Sets pay_amount + * + * @param int $pay_amount pay_amount + * + * @return $this + */ + public function setPayAmount($pay_amount) + { + $this->container['pay_amount'] = $pay_amount; + + return $this; + } + + /** + * Gets tenant_name + * + * @return string + */ + public function getTenantName() + { + return $this->container['tenant_name']; + } + + /** + * Sets tenant_name + * + * @param string $tenant_name tenant_name + * + * @return $this + */ + public function setTenantName($tenant_name) + { + $this->container['tenant_name'] = $tenant_name; + + return $this; + } + + /** + * Gets settlement_status + * + * @return string + */ + public function getSettlementStatus() + { + return $this->container['settlement_status']; + } + + /** + * Sets settlement_status + * + * @param string $settlement_status settlement_status + * + * @return $this + */ + public function setSettlementStatus($settlement_status) + { + $this->container['settlement_status'] = $settlement_status; + + return $this; + } + + /** + * Gets voucher_pay_amount + * + * @return string + */ + public function getVoucherPayAmount() + { + return $this->container['voucher_pay_amount']; + } + + /** + * Sets voucher_pay_amount + * + * @param string $voucher_pay_amount voucher_pay_amount + * + * @return $this + */ + public function setVoucherPayAmount($voucher_pay_amount) + { + $this->container['voucher_pay_amount'] = $voucher_pay_amount; + + return $this; + } + + /** + * Gets accounting_period + * + * @return string + */ + public function getAccountingPeriod() + { + return $this->container['accounting_period']; + } + + /** + * Sets accounting_period + * + * @param string $accounting_period accounting_period + * + * @return $this + */ + public function setAccountingPeriod($accounting_period) + { + $this->container['accounting_period'] = $accounting_period; + + return $this; + } + + /** + * Gets consume_type + * + * @return string + */ + public function getConsumeType() + { + return $this->container['consume_type']; + } + + /** + * Sets consume_type + * + * @param string $consume_type consume_type + * + * @return $this + */ + public function setConsumeType($consume_type) + { + $this->container['consume_type'] = $consume_type; + + return $this; + } + + /** + * Gets commodity_name + * + * @return string + */ + public function getCommodityName() + { + return $this->container['commodity_name']; + } + + /** + * Sets commodity_name + * + * @param string $commodity_name commodity_name + * + * @return $this + */ + public function setCommodityName($commodity_name) + { + $this->container['commodity_name'] = $commodity_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f3256e01cb86daccc2641763e6659d1d1c7574a9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:49 +0800 Subject: [PATCH 074/373] feat: update --- ...dminGetGameInstanceContainerRatioForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php new file mode 100644 index 000000000..8ac29b4af --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php @@ -0,0 +1,287 @@ + 'string', +'games' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_instance_id' => null, +'games' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_instance_id' => 'commodityInstanceId', +'games' => 'games' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_instance_id' => 'setCommodityInstanceId', +'games' => 'setGames' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_instance_id' => 'getCommodityInstanceId', +'games' => 'getGames' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_instance_id'] = isset($data['commodity_instance_id']) ? $data['commodity_instance_id'] : null; + $this->container['games'] = isset($data['games']) ? $data['games'] : null; + } + + + /** + * Gets commodity_instance_id + * + * @return string + */ + public function getCommodityInstanceId() + { + return $this->container['commodity_instance_id']; + } + + /** + * Sets commodity_instance_id + * + * @param string $commodity_instance_id commodity_instance_id + * + * @return $this + */ + public function setCommodityInstanceId($commodity_instance_id) + { + $this->container['commodity_instance_id'] = $commodity_instance_id; + + return $this; + } + + /** + * Gets games + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[] + */ + public function getGames() + { + return $this->container['games']; + } + + /** + * Sets games + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[] $games games + * + * @return $this + */ + public function setGames($games) + { + $this->container['games'] = $games; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c5330eaccc7c5f8d5394a47079c4c7657f614d31 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:51 +0800 Subject: [PATCH 075/373] feat: update --- ...etGameInstanceContainerRatioFormsGames.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php new file mode 100644 index 000000000..86165f355 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioFormsGames.php @@ -0,0 +1,287 @@ + 'string', +'mix_version_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_id' => null, +'mix_version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_id' => 'mixId', +'mix_version_id' => 'mixVersionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_id' => 'setMixId', +'mix_version_id' => 'setMixVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_id' => 'getMixId', +'mix_version_id' => 'getMixVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_id'] = isset($data['mix_id']) ? $data['mix_id'] : null; + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + } + + + /** + * Gets mix_id + * + * @return string + */ + public function getMixId() + { + return $this->container['mix_id']; + } + + /** + * Sets mix_id + * + * @param string $mix_id mix_id + * + * @return $this + */ + public function setMixId($mix_id) + { + $this->container['mix_id'] = $mix_id; + + return $this; + } + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2799d548f8aeb208e4823e6fae96348dbef863e1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:52 +0800 Subject: [PATCH 076/373] feat: update --- ...minGetGameInstanceContainerRatioResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php new file mode 100644 index 000000000..cfcadfe93 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5bf626a66cd3cf4ad431b95a44f88abcee84bf53 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:53 +0800 Subject: [PATCH 077/373] feat: update --- ...tGameInstanceContainerRatioResultModel.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php new file mode 100644 index 000000000..569a56cbd --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResultModel.php @@ -0,0 +1,317 @@ + 'string', +'mix_version_id' => 'string', +'container_ratio' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_id' => null, +'mix_version_id' => null, +'container_ratio' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_id' => 'mixId', +'mix_version_id' => 'mixVersionId', +'container_ratio' => 'containerRatio' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_id' => 'setMixId', +'mix_version_id' => 'setMixVersionId', +'container_ratio' => 'setContainerRatio' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_id' => 'getMixId', +'mix_version_id' => 'getMixVersionId', +'container_ratio' => 'getContainerRatio' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_id'] = isset($data['mix_id']) ? $data['mix_id'] : null; + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + $this->container['container_ratio'] = isset($data['container_ratio']) ? $data['container_ratio'] : null; + } + + + /** + * Gets mix_id + * + * @return string + */ + public function getMixId() + { + return $this->container['mix_id']; + } + + /** + * Sets mix_id + * + * @param string $mix_id mix_id + * + * @return $this + */ + public function setMixId($mix_id) + { + $this->container['mix_id'] = $mix_id; + + return $this; + } + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + + /** + * Gets container_ratio + * + * @return string + */ + public function getContainerRatio() + { + return $this->container['container_ratio']; + } + + /** + * Sets container_ratio + * + * @param string $container_ratio container_ratio + * + * @return $this + */ + public function setContainerRatio($container_ratio) + { + $this->container['container_ratio'] = $container_ratio; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 80fa875c38a89c52c4863fe5e7637a7d2980c28b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:55 +0800 Subject: [PATCH 078/373] feat: update --- ...leAdminGetGameRecommendedInstanceForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php new file mode 100644 index 000000000..82d82fa64 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame', +'commodity_instance_ids' => 'string[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game' => null, +'commodity_instance_ids' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game' => 'game', +'commodity_instance_ids' => 'commodityInstanceIds' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game' => 'setGame', +'commodity_instance_ids' => 'setCommodityInstanceIds' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game' => 'getGame', +'commodity_instance_ids' => 'getCommodityInstanceIds' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game'] = isset($data['game']) ? $data['game'] : null; + $this->container['commodity_instance_ids'] = isset($data['commodity_instance_ids']) ? $data['commodity_instance_ids'] : null; + } + + + /** + * Gets game + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame + */ + public function getGame() + { + return $this->container['game']; + } + + /** + * Sets game + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame $game game + * + * @return $this + */ + public function setGame($game) + { + $this->container['game'] = $game; + + return $this; + } + + /** + * Gets commodity_instance_ids + * + * @return string[] + */ + public function getCommodityInstanceIds() + { + return $this->container['commodity_instance_ids']; + } + + /** + * Sets commodity_instance_ids + * + * @param string[] $commodity_instance_ids commodity_instance_ids + * + * @return $this + */ + public function setCommodityInstanceIds($commodity_instance_ids) + { + $this->container['commodity_instance_ids'] = $commodity_instance_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4a1f48ff61846b292540fbdeebc82b1d1250429f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:56 +0800 Subject: [PATCH 079/373] feat: update --- ...minGetGameRecommendedInstanceFormsGame.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php new file mode 100644 index 000000000..25d35cb12 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceFormsGame.php @@ -0,0 +1,287 @@ + 'string', +'mix_version_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_id' => null, +'mix_version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_id' => 'mixId', +'mix_version_id' => 'mixVersionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_id' => 'setMixId', +'mix_version_id' => 'setMixVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_id' => 'getMixId', +'mix_version_id' => 'getMixVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_id'] = isset($data['mix_id']) ? $data['mix_id'] : null; + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + } + + + /** + * Gets mix_id + * + * @return string + */ + public function getMixId() + { + return $this->container['mix_id']; + } + + /** + * Sets mix_id + * + * @param string $mix_id mix_id + * + * @return $this + */ + public function setMixId($mix_id) + { + $this->container['mix_id'] = $mix_id; + + return $this; + } + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e392deeaa7574a46dd6ffbabd614a806045a3160 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:57 +0800 Subject: [PATCH 080/373] feat: update --- ...eAdminGetGameRecommendedInstanceResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php new file mode 100644 index 000000000..0d7a6e0ba --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 607611d20bf566fba396408696eaa246677a85ec Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:11:59 +0800 Subject: [PATCH 081/373] feat: update --- ...nGetGameRecommendedInstanceResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php new file mode 100644 index 000000000..a16567417 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_instance_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_instance_id' => 'commodityInstanceId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_instance_id' => 'setCommodityInstanceId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_instance_id' => 'getCommodityInstanceId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_instance_id'] = isset($data['commodity_instance_id']) ? $data['commodity_instance_id'] : null; + } + + + /** + * Gets commodity_instance_id + * + * @return string + */ + public function getCommodityInstanceId() + { + return $this->container['commodity_instance_id']; + } + + /** + * Sets commodity_instance_id + * + * @param string $commodity_instance_id commodity_instance_id + * + * @return $this + */ + public function setCommodityInstanceId($commodity_instance_id) + { + $this->container['commodity_instance_id'] = $commodity_instance_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 919c4c527126b1575c605ec007271f027f163334 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:00 +0800 Subject: [PATCH 082/373] feat: update --- lib/Model/ConsoleAdminGetGameVersionForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionForms.php diff --git a/lib/Model/ConsoleAdminGetGameVersionForms.php b/lib/Model/ConsoleAdminGetGameVersionForms.php new file mode 100644 index 000000000..6e5ee79b3 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f29db12170a42adca78da7ab22af8dea61b523e7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:01 +0800 Subject: [PATCH 083/373] feat: update --- ...onsoleAdminGetGameVersionProgressForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionProgressForms.php diff --git a/lib/Model/ConsoleAdminGetGameVersionProgressForms.php b/lib/Model/ConsoleAdminGetGameVersionProgressForms.php new file mode 100644 index 000000000..02161cf40 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9b4998dc92bef91fc33f337ecb78a56a49911158 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:03 +0800 Subject: [PATCH 084/373] feat: update --- ...nsoleAdminGetGameVersionProgressResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionProgressResult.php diff --git a/lib/Model/ConsoleAdminGetGameVersionProgressResult.php b/lib/Model/ConsoleAdminGetGameVersionProgressResult.php new file mode 100644 index 000000000..02b12ff90 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dce065697ca34fca0985b9d3c8ea1641a042c997 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:04 +0800 Subject: [PATCH 085/373] feat: update --- ...AdminGetGameVersionProgressResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php b/lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php new file mode 100644 index 000000000..ce8bec8ea --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressResultModel.php @@ -0,0 +1,347 @@ + 'map[string,string]', +'description' => 'string', +'event' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'extra' => null, +'description' => null, +'event' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'extra' => 'extra', +'description' => 'description', +'event' => 'event', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'extra' => 'setExtra', +'description' => 'setDescription', +'event' => 'setEvent', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'extra' => 'getExtra', +'description' => 'getDescription', +'event' => 'getEvent', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['extra'] = isset($data['extra']) ? $data['extra'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['event'] = isset($data['event']) ? $data['event'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets extra + * + * @return map[string,string] + */ + public function getExtra() + { + return $this->container['extra']; + } + + /** + * Sets extra + * + * @param map[string,string] $extra 提供不固定的额外信息 + * + * @return $this + */ + public function setExtra($extra) + { + $this->container['extra'] = $extra; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets event + * + * @return string + */ + public function getEvent() + { + return $this->container['event']; + } + + /** + * Sets event + * + * @param string $event event + * + * @return $this + */ + public function setEvent($event) + { + $this->container['event'] = $event; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 70212263802ff1669125284c73324f59c7163e36 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:06 +0800 Subject: [PATCH 086/373] feat: update --- .../ConsoleAdminGetGameVersionResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionResult.php diff --git a/lib/Model/ConsoleAdminGetGameVersionResult.php b/lib/Model/ConsoleAdminGetGameVersionResult.php new file mode 100644 index 000000000..eb898bf1d --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ff34f58c1322b46a799d92bdb54cf1c6b7f17c25 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:07 +0800 Subject: [PATCH 087/373] feat: update --- .../ConsoleAdminGetGameVersionResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetGameVersionResultModel.php diff --git a/lib/Model/ConsoleAdminGetGameVersionResultModel.php b/lib/Model/ConsoleAdminGetGameVersionResultModel.php new file mode 100644 index 000000000..1333e8d2d --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionResultModel.php @@ -0,0 +1,287 @@ + 'string', +'version_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'version_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'version_name' => 'versionName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'version_name' => 'setVersionName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'version_name' => 'getVersionName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9c564678f4054c7a104261aff856d7e9834cf6f1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:08 +0800 Subject: [PATCH 088/373] feat: update --- lib/Model/ConsoleAdminGetOrderForms.php | 257 ++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderForms.php diff --git a/lib/Model/ConsoleAdminGetOrderForms.php b/lib/Model/ConsoleAdminGetOrderForms.php new file mode 100644 index 000000000..532bf1c2e --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'order_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'order_id' => 'orderId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'order_id' => 'setOrderId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'order_id' => 'getOrderId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + } + + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id 订单号 + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d588038b898421fec35f1dfa43780c3c21b36699 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:10 +0800 Subject: [PATCH 089/373] feat: update --- lib/Model/ConsoleAdminGetOrderResult.php | 347 +++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderResult.php diff --git a/lib/Model/ConsoleAdminGetOrderResult.php b/lib/Model/ConsoleAdminGetOrderResult.php new file mode 100644 index 000000000..627250684 --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c92ad74ed33175faaa2a00bf7d28272e65d0fe4c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:11 +0800 Subject: [PATCH 090/373] feat: update --- lib/Model/ConsoleAdminGetOrderResultModel.php | 1427 +++++++++++++++++ 1 file changed, 1427 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderResultModel.php diff --git a/lib/Model/ConsoleAdminGetOrderResultModel.php b/lib/Model/ConsoleAdminGetOrderResultModel.php new file mode 100644 index 000000000..80db89045 --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResultModel.php @@ -0,0 +1,1427 @@ + 'string', +'order_id' => 'string', +'attribute_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModelAttributeList[]', +'charge_type' => 'string', +'discount_amount' => 'int', +'credit_pay_amount' => 'int', +'downgrade_refund_amount' => 'int', +'downgrade_credit_refund_amount' => 'int', +'discount_detail' => 'string', +'promotion_name' => 'string', +'instance_id' => 'string', +'pay_amount' => 'int', +'tenant_name' => 'string', +'commodity_code' => 'string', +'auto_renew' => 'bool', +'currency' => 'string', +'start_time' => 'int', +'downgrade_balance_refund_amount' => 'int', +'primary_price_type' => 'string', +'finish_time' => 'int', +'amount' => 'int', +'quantity' => 'int', +'delivery_end_time' => 'int', +'refund_time' => 'int', +'buy_duration_unit' => 'string', +'primary_charge_item_code' => 'string', +'pay_user_id' => 'string', +'category_code' => 'string', +'buy_duration' => 'int', +'balance_pay_amount' => 'int', +'actual_pay_amount' => 'int', +'create_time' => 'int', +'tenant_id' => 'int', +'payment_end_time' => 'int', +'buy_type' => 'string', +'voucher_pay_amount' => 'int', +'buyer_user_id' => 'string', +'end_time' => 'int', +'commodity_name' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'order_type' => null, +'order_id' => null, +'attribute_list' => null, +'charge_type' => null, +'discount_amount' => 'int64', +'credit_pay_amount' => 'int64', +'downgrade_refund_amount' => 'int64', +'downgrade_credit_refund_amount' => 'int64', +'discount_detail' => null, +'promotion_name' => null, +'instance_id' => null, +'pay_amount' => 'int64', +'tenant_name' => null, +'commodity_code' => null, +'auto_renew' => null, +'currency' => null, +'start_time' => 'int64', +'downgrade_balance_refund_amount' => 'int64', +'primary_price_type' => null, +'finish_time' => 'int64', +'amount' => 'int64', +'quantity' => null, +'delivery_end_time' => 'int64', +'refund_time' => 'int64', +'buy_duration_unit' => null, +'primary_charge_item_code' => null, +'pay_user_id' => null, +'category_code' => null, +'buy_duration' => 'int64', +'balance_pay_amount' => 'int64', +'actual_pay_amount' => 'int64', +'create_time' => 'int64', +'tenant_id' => 'int64', +'payment_end_time' => 'int64', +'buy_type' => null, +'voucher_pay_amount' => 'int64', +'buyer_user_id' => null, +'end_time' => 'int64', +'commodity_name' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'order_type' => 'orderType', +'order_id' => 'orderId', +'attribute_list' => 'attributeList', +'charge_type' => 'chargeType', +'discount_amount' => 'discountAmount', +'credit_pay_amount' => 'creditPayAmount', +'downgrade_refund_amount' => 'downgradeRefundAmount', +'downgrade_credit_refund_amount' => 'downgradeCreditRefundAmount', +'discount_detail' => 'discountDetail', +'promotion_name' => 'promotionName', +'instance_id' => 'instanceId', +'pay_amount' => 'payAmount', +'tenant_name' => 'tenantName', +'commodity_code' => 'commodityCode', +'auto_renew' => 'autoRenew', +'currency' => 'currency', +'start_time' => 'startTime', +'downgrade_balance_refund_amount' => 'downgradeBalanceRefundAmount', +'primary_price_type' => 'primaryPriceType', +'finish_time' => 'finishTime', +'amount' => 'amount', +'quantity' => 'quantity', +'delivery_end_time' => 'deliveryEndTime', +'refund_time' => 'refundTime', +'buy_duration_unit' => 'buyDurationUnit', +'primary_charge_item_code' => 'primaryChargeItemCode', +'pay_user_id' => 'payUserId', +'category_code' => 'categoryCode', +'buy_duration' => 'buyDuration', +'balance_pay_amount' => 'balancePayAmount', +'actual_pay_amount' => 'actualPayAmount', +'create_time' => 'createTime', +'tenant_id' => 'tenantId', +'payment_end_time' => 'paymentEndTime', +'buy_type' => 'buyType', +'voucher_pay_amount' => 'voucherPayAmount', +'buyer_user_id' => 'buyerUserId', +'end_time' => 'endTime', +'commodity_name' => 'commodityName', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'order_type' => 'setOrderType', +'order_id' => 'setOrderId', +'attribute_list' => 'setAttributeList', +'charge_type' => 'setChargeType', +'discount_amount' => 'setDiscountAmount', +'credit_pay_amount' => 'setCreditPayAmount', +'downgrade_refund_amount' => 'setDowngradeRefundAmount', +'downgrade_credit_refund_amount' => 'setDowngradeCreditRefundAmount', +'discount_detail' => 'setDiscountDetail', +'promotion_name' => 'setPromotionName', +'instance_id' => 'setInstanceId', +'pay_amount' => 'setPayAmount', +'tenant_name' => 'setTenantName', +'commodity_code' => 'setCommodityCode', +'auto_renew' => 'setAutoRenew', +'currency' => 'setCurrency', +'start_time' => 'setStartTime', +'downgrade_balance_refund_amount' => 'setDowngradeBalanceRefundAmount', +'primary_price_type' => 'setPrimaryPriceType', +'finish_time' => 'setFinishTime', +'amount' => 'setAmount', +'quantity' => 'setQuantity', +'delivery_end_time' => 'setDeliveryEndTime', +'refund_time' => 'setRefundTime', +'buy_duration_unit' => 'setBuyDurationUnit', +'primary_charge_item_code' => 'setPrimaryChargeItemCode', +'pay_user_id' => 'setPayUserId', +'category_code' => 'setCategoryCode', +'buy_duration' => 'setBuyDuration', +'balance_pay_amount' => 'setBalancePayAmount', +'actual_pay_amount' => 'setActualPayAmount', +'create_time' => 'setCreateTime', +'tenant_id' => 'setTenantId', +'payment_end_time' => 'setPaymentEndTime', +'buy_type' => 'setBuyType', +'voucher_pay_amount' => 'setVoucherPayAmount', +'buyer_user_id' => 'setBuyerUserId', +'end_time' => 'setEndTime', +'commodity_name' => 'setCommodityName', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'order_type' => 'getOrderType', +'order_id' => 'getOrderId', +'attribute_list' => 'getAttributeList', +'charge_type' => 'getChargeType', +'discount_amount' => 'getDiscountAmount', +'credit_pay_amount' => 'getCreditPayAmount', +'downgrade_refund_amount' => 'getDowngradeRefundAmount', +'downgrade_credit_refund_amount' => 'getDowngradeCreditRefundAmount', +'discount_detail' => 'getDiscountDetail', +'promotion_name' => 'getPromotionName', +'instance_id' => 'getInstanceId', +'pay_amount' => 'getPayAmount', +'tenant_name' => 'getTenantName', +'commodity_code' => 'getCommodityCode', +'auto_renew' => 'getAutoRenew', +'currency' => 'getCurrency', +'start_time' => 'getStartTime', +'downgrade_balance_refund_amount' => 'getDowngradeBalanceRefundAmount', +'primary_price_type' => 'getPrimaryPriceType', +'finish_time' => 'getFinishTime', +'amount' => 'getAmount', +'quantity' => 'getQuantity', +'delivery_end_time' => 'getDeliveryEndTime', +'refund_time' => 'getRefundTime', +'buy_duration_unit' => 'getBuyDurationUnit', +'primary_charge_item_code' => 'getPrimaryChargeItemCode', +'pay_user_id' => 'getPayUserId', +'category_code' => 'getCategoryCode', +'buy_duration' => 'getBuyDuration', +'balance_pay_amount' => 'getBalancePayAmount', +'actual_pay_amount' => 'getActualPayAmount', +'create_time' => 'getCreateTime', +'tenant_id' => 'getTenantId', +'payment_end_time' => 'getPaymentEndTime', +'buy_type' => 'getBuyType', +'voucher_pay_amount' => 'getVoucherPayAmount', +'buyer_user_id' => 'getBuyerUserId', +'end_time' => 'getEndTime', +'commodity_name' => 'getCommodityName', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['order_type'] = isset($data['order_type']) ? $data['order_type'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; + $this->container['attribute_list'] = isset($data['attribute_list']) ? $data['attribute_list'] : null; + $this->container['charge_type'] = isset($data['charge_type']) ? $data['charge_type'] : null; + $this->container['discount_amount'] = isset($data['discount_amount']) ? $data['discount_amount'] : null; + $this->container['credit_pay_amount'] = isset($data['credit_pay_amount']) ? $data['credit_pay_amount'] : null; + $this->container['downgrade_refund_amount'] = isset($data['downgrade_refund_amount']) ? $data['downgrade_refund_amount'] : null; + $this->container['downgrade_credit_refund_amount'] = isset($data['downgrade_credit_refund_amount']) ? $data['downgrade_credit_refund_amount'] : null; + $this->container['discount_detail'] = isset($data['discount_detail']) ? $data['discount_detail'] : null; + $this->container['promotion_name'] = isset($data['promotion_name']) ? $data['promotion_name'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['pay_amount'] = isset($data['pay_amount']) ? $data['pay_amount'] : null; + $this->container['tenant_name'] = isset($data['tenant_name']) ? $data['tenant_name'] : null; + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['auto_renew'] = isset($data['auto_renew']) ? $data['auto_renew'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['start_time'] = isset($data['start_time']) ? $data['start_time'] : null; + $this->container['downgrade_balance_refund_amount'] = isset($data['downgrade_balance_refund_amount']) ? $data['downgrade_balance_refund_amount'] : null; + $this->container['primary_price_type'] = isset($data['primary_price_type']) ? $data['primary_price_type'] : null; + $this->container['finish_time'] = isset($data['finish_time']) ? $data['finish_time'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['delivery_end_time'] = isset($data['delivery_end_time']) ? $data['delivery_end_time'] : null; + $this->container['refund_time'] = isset($data['refund_time']) ? $data['refund_time'] : null; + $this->container['buy_duration_unit'] = isset($data['buy_duration_unit']) ? $data['buy_duration_unit'] : null; + $this->container['primary_charge_item_code'] = isset($data['primary_charge_item_code']) ? $data['primary_charge_item_code'] : null; + $this->container['pay_user_id'] = isset($data['pay_user_id']) ? $data['pay_user_id'] : null; + $this->container['category_code'] = isset($data['category_code']) ? $data['category_code'] : null; + $this->container['buy_duration'] = isset($data['buy_duration']) ? $data['buy_duration'] : null; + $this->container['balance_pay_amount'] = isset($data['balance_pay_amount']) ? $data['balance_pay_amount'] : null; + $this->container['actual_pay_amount'] = isset($data['actual_pay_amount']) ? $data['actual_pay_amount'] : null; + $this->container['create_time'] = isset($data['create_time']) ? $data['create_time'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['payment_end_time'] = isset($data['payment_end_time']) ? $data['payment_end_time'] : null; + $this->container['buy_type'] = isset($data['buy_type']) ? $data['buy_type'] : null; + $this->container['voucher_pay_amount'] = isset($data['voucher_pay_amount']) ? $data['voucher_pay_amount'] : null; + $this->container['buyer_user_id'] = isset($data['buyer_user_id']) ? $data['buyer_user_id'] : null; + $this->container['end_time'] = isset($data['end_time']) ? $data['end_time'] : null; + $this->container['commodity_name'] = isset($data['commodity_name']) ? $data['commodity_name'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets order_type + * + * @return string + */ + public function getOrderType() + { + return $this->container['order_type']; + } + + /** + * Sets order_type + * + * @param string $order_type 订单类型 + * + * @return $this + */ + public function setOrderType($order_type) + { + $this->container['order_type'] = $order_type; + + return $this; + } + + /** + * Gets order_id + * + * @return string + */ + public function getOrderId() + { + return $this->container['order_id']; + } + + /** + * Sets order_id + * + * @param string $order_id 订单号 + * + * @return $this + */ + public function setOrderId($order_id) + { + $this->container['order_id'] = $order_id; + + return $this; + } + + /** + * Gets attribute_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModelAttributeList[] + */ + public function getAttributeList() + { + return $this->container['attribute_list']; + } + + /** + * Sets attribute_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResultModelAttributeList[] $attribute_list 配置详情 + * + * @return $this + */ + public function setAttributeList($attribute_list) + { + $this->container['attribute_list'] = $attribute_list; + + return $this; + } + + /** + * Gets charge_type + * + * @return string + */ + public function getChargeType() + { + return $this->container['charge_type']; + } + + /** + * Sets charge_type + * + * @param string $charge_type 付费方式 + * + * @return $this + */ + public function setChargeType($charge_type) + { + $this->container['charge_type'] = $charge_type; + + return $this; + } + + /** + * Gets discount_amount + * + * @return int + */ + public function getDiscountAmount() + { + return $this->container['discount_amount']; + } + + /** + * Sets discount_amount + * + * @param int $discount_amount 优惠金额(单位:分) + * + * @return $this + */ + public function setDiscountAmount($discount_amount) + { + $this->container['discount_amount'] = $discount_amount; + + return $this; + } + + /** + * Gets credit_pay_amount + * + * @return int + */ + public function getCreditPayAmount() + { + return $this->container['credit_pay_amount']; + } + + /** + * Sets credit_pay_amount + * + * @param int $credit_pay_amount 信控支付金额(单位:分) + * + * @return $this + */ + public function setCreditPayAmount($credit_pay_amount) + { + $this->container['credit_pay_amount'] = $credit_pay_amount; + + return $this; + } + + /** + * Gets downgrade_refund_amount + * + * @return int + */ + public function getDowngradeRefundAmount() + { + return $this->container['downgrade_refund_amount']; + } + + /** + * Sets downgrade_refund_amount + * + * @param int $downgrade_refund_amount 降配退款金额 + * + * @return $this + */ + public function setDowngradeRefundAmount($downgrade_refund_amount) + { + $this->container['downgrade_refund_amount'] = $downgrade_refund_amount; + + return $this; + } + + /** + * Gets downgrade_credit_refund_amount + * + * @return int + */ + public function getDowngradeCreditRefundAmount() + { + return $this->container['downgrade_credit_refund_amount']; + } + + /** + * Sets downgrade_credit_refund_amount + * + * @param int $downgrade_credit_refund_amount 降配信控应退款金额 + * + * @return $this + */ + public function setDowngradeCreditRefundAmount($downgrade_credit_refund_amount) + { + $this->container['downgrade_credit_refund_amount'] = $downgrade_credit_refund_amount; + + return $this; + } + + /** + * Gets discount_detail + * + * @return string + */ + public function getDiscountDetail() + { + return $this->container['discount_detail']; + } + + /** + * Sets discount_detail + * + * @param string $discount_detail 优惠详细信息 + * + * @return $this + */ + public function setDiscountDetail($discount_detail) + { + $this->container['discount_detail'] = $discount_detail; + + return $this; + } + + /** + * Gets promotion_name + * + * @return string + */ + public function getPromotionName() + { + return $this->container['promotion_name']; + } + + /** + * Sets promotion_name + * + * @param string $promotion_name 优惠名称 + * + * @return $this + */ + public function setPromotionName($promotion_name) + { + $this->container['promotion_name'] = $promotion_name; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets pay_amount + * + * @return int + */ + public function getPayAmount() + { + return $this->container['pay_amount']; + } + + /** + * Sets pay_amount + * + * @param int $pay_amount 应付金额(单位:分) + * + * @return $this + */ + public function setPayAmount($pay_amount) + { + $this->container['pay_amount'] = $pay_amount; + + return $this; + } + + /** + * Gets tenant_name + * + * @return string + */ + public function getTenantName() + { + return $this->container['tenant_name']; + } + + /** + * Sets tenant_name + * + * @param string $tenant_name 租户名称 + * + * @return $this + */ + public function setTenantName($tenant_name) + { + $this->container['tenant_name'] = $tenant_name; + + return $this; + } + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code 商品编码 + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets auto_renew + * + * @return bool + */ + public function getAutoRenew() + { + return $this->container['auto_renew']; + } + + /** + * Sets auto_renew + * + * @param bool $auto_renew 是否自动续费 + * + * @return $this + */ + public function setAutoRenew($auto_renew) + { + $this->container['auto_renew'] = $auto_renew; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency 币种 + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets start_time + * + * @return int + */ + public function getStartTime() + { + return $this->container['start_time']; + } + + /** + * Sets start_time + * + * @param int $start_time 开始时间 + * + * @return $this + */ + public function setStartTime($start_time) + { + $this->container['start_time'] = $start_time; + + return $this; + } + + /** + * Gets downgrade_balance_refund_amount + * + * @return int + */ + public function getDowngradeBalanceRefundAmount() + { + return $this->container['downgrade_balance_refund_amount']; + } + + /** + * Sets downgrade_balance_refund_amount + * + * @param int $downgrade_balance_refund_amount 降配现金应退款金额 + * + * @return $this + */ + public function setDowngradeBalanceRefundAmount($downgrade_balance_refund_amount) + { + $this->container['downgrade_balance_refund_amount'] = $downgrade_balance_refund_amount; + + return $this; + } + + /** + * Gets primary_price_type + * + * @return string + */ + public function getPrimaryPriceType() + { + return $this->container['primary_price_type']; + } + + /** + * Sets primary_price_type + * + * @param string $primary_price_type 主计费项价格类型 + * + * @return $this + */ + public function setPrimaryPriceType($primary_price_type) + { + $this->container['primary_price_type'] = $primary_price_type; + + return $this; + } + + /** + * Gets finish_time + * + * @return int + */ + public function getFinishTime() + { + return $this->container['finish_time']; + } + + /** + * Sets finish_time + * + * @param int $finish_time 订单完成时间 + * + * @return $this + */ + public function setFinishTime($finish_time) + { + $this->container['finish_time'] = $finish_time; + + return $this; + } + + /** + * Gets amount + * + * @return int + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param int $amount 订单总金额(单位:分) + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity 数量 + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets delivery_end_time + * + * @return int + */ + public function getDeliveryEndTime() + { + return $this->container['delivery_end_time']; + } + + /** + * Sets delivery_end_time + * + * @param int $delivery_end_time 发货完成时间 + * + * @return $this + */ + public function setDeliveryEndTime($delivery_end_time) + { + $this->container['delivery_end_time'] = $delivery_end_time; + + return $this; + } + + /** + * Gets refund_time + * + * @return int + */ + public function getRefundTime() + { + return $this->container['refund_time']; + } + + /** + * Sets refund_time + * + * @param int $refund_time 售中退款时间 + * + * @return $this + */ + public function setRefundTime($refund_time) + { + $this->container['refund_time'] = $refund_time; + + return $this; + } + + /** + * Gets buy_duration_unit + * + * @return string + */ + public function getBuyDurationUnit() + { + return $this->container['buy_duration_unit']; + } + + /** + * Sets buy_duration_unit + * + * @param string $buy_duration_unit 购买时长单位 + * + * @return $this + */ + public function setBuyDurationUnit($buy_duration_unit) + { + $this->container['buy_duration_unit'] = $buy_duration_unit; + + return $this; + } + + /** + * Gets primary_charge_item_code + * + * @return string + */ + public function getPrimaryChargeItemCode() + { + return $this->container['primary_charge_item_code']; + } + + /** + * Sets primary_charge_item_code + * + * @param string $primary_charge_item_code 主计费项编码 + * + * @return $this + */ + public function setPrimaryChargeItemCode($primary_charge_item_code) + { + $this->container['primary_charge_item_code'] = $primary_charge_item_code; + + return $this; + } + + /** + * Gets pay_user_id + * + * @return string + */ + public function getPayUserId() + { + return $this->container['pay_user_id']; + } + + /** + * Sets pay_user_id + * + * @param string $pay_user_id 支付用户ID + * + * @return $this + */ + public function setPayUserId($pay_user_id) + { + $this->container['pay_user_id'] = $pay_user_id; + + return $this; + } + + /** + * Gets category_code + * + * @return string + */ + public function getCategoryCode() + { + return $this->container['category_code']; + } + + /** + * Sets category_code + * + * @param string $category_code 类目编码 + * + * @return $this + */ + public function setCategoryCode($category_code) + { + $this->container['category_code'] = $category_code; + + return $this; + } + + /** + * Gets buy_duration + * + * @return int + */ + public function getBuyDuration() + { + return $this->container['buy_duration']; + } + + /** + * Sets buy_duration + * + * @param int $buy_duration 购买时长 + * + * @return $this + */ + public function setBuyDuration($buy_duration) + { + $this->container['buy_duration'] = $buy_duration; + + return $this; + } + + /** + * Gets balance_pay_amount + * + * @return int + */ + public function getBalancePayAmount() + { + return $this->container['balance_pay_amount']; + } + + /** + * Sets balance_pay_amount + * + * @param int $balance_pay_amount 余额支付金额(单位:分) + * + * @return $this + */ + public function setBalancePayAmount($balance_pay_amount) + { + $this->container['balance_pay_amount'] = $balance_pay_amount; + + return $this; + } + + /** + * Gets actual_pay_amount + * + * @return int + */ + public function getActualPayAmount() + { + return $this->container['actual_pay_amount']; + } + + /** + * Sets actual_pay_amount + * + * @param int $actual_pay_amount 实付金额(单位:分) + * + * @return $this + */ + public function setActualPayAmount($actual_pay_amount) + { + $this->container['actual_pay_amount'] = $actual_pay_amount; + + return $this; + } + + /** + * Gets create_time + * + * @return int + */ + public function getCreateTime() + { + return $this->container['create_time']; + } + + /** + * Sets create_time + * + * @param int $create_time 订单创建时间 + * + * @return $this + */ + public function setCreateTime($create_time) + { + $this->container['create_time'] = $create_time; + + return $this; + } + + /** + * Gets tenant_id + * + * @return int + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param int $tenant_id 租户ID + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets payment_end_time + * + * @return int + */ + public function getPaymentEndTime() + { + return $this->container['payment_end_time']; + } + + /** + * Sets payment_end_time + * + * @param int $payment_end_time 支付完成时间 + * + * @return $this + */ + public function setPaymentEndTime($payment_end_time) + { + $this->container['payment_end_time'] = $payment_end_time; + + return $this; + } + + /** + * Gets buy_type + * + * @return string + */ + public function getBuyType() + { + return $this->container['buy_type']; + } + + /** + * Sets buy_type + * + * @param string $buy_type 售卖类型 + * + * @return $this + */ + public function setBuyType($buy_type) + { + $this->container['buy_type'] = $buy_type; + + return $this; + } + + /** + * Gets voucher_pay_amount + * + * @return int + */ + public function getVoucherPayAmount() + { + return $this->container['voucher_pay_amount']; + } + + /** + * Sets voucher_pay_amount + * + * @param int $voucher_pay_amount 代金券抵扣金额(单位:分) + * + * @return $this + */ + public function setVoucherPayAmount($voucher_pay_amount) + { + $this->container['voucher_pay_amount'] = $voucher_pay_amount; + + return $this; + } + + /** + * Gets buyer_user_id + * + * @return string + */ + public function getBuyerUserId() + { + return $this->container['buyer_user_id']; + } + + /** + * Sets buyer_user_id + * + * @param string $buyer_user_id 下单用户ID + * + * @return $this + */ + public function setBuyerUserId($buyer_user_id) + { + $this->container['buyer_user_id'] = $buyer_user_id; + + return $this; + } + + /** + * Gets end_time + * + * @return int + */ + public function getEndTime() + { + return $this->container['end_time']; + } + + /** + * Sets end_time + * + * @param int $end_time 截止时间 + * + * @return $this + */ + public function setEndTime($end_time) + { + $this->container['end_time'] = $end_time; + + return $this; + } + + /** + * Gets commodity_name + * + * @return string + */ + public function getCommodityName() + { + return $this->container['commodity_name']; + } + + /** + * Sets commodity_name + * + * @param string $commodity_name 商品名称 + * + * @return $this + */ + public function setCommodityName($commodity_name) + { + $this->container['commodity_name'] = $commodity_name; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 订单状态 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ea456c844660b4983d7bdcfe8529e999ab0b797a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:13 +0800 Subject: [PATCH 091/373] feat: update --- ...eAdminGetOrderResultModelAttributeList.php | 467 ++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php diff --git a/lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php b/lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php new file mode 100644 index 000000000..5268d108d --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResultModelAttributeList.php @@ -0,0 +1,467 @@ + 'string', +'time_start' => 'int', +'attribute_value_name' => 'string', +'time_to' => 'int', +'attribute_value' => 'int', +'attribute_name' => 'string', +'attribute_value_code' => 'int', +'time_unit' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'attribute_code' => null, +'time_start' => 'int64', +'attribute_value_name' => null, +'time_to' => 'int64', +'attribute_value' => null, +'attribute_name' => null, +'attribute_value_code' => 'int64', +'time_unit' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'attribute_code' => 'attributeCode', +'time_start' => 'timeStart', +'attribute_value_name' => 'attributeValueName', +'time_to' => 'timeTo', +'attribute_value' => 'attributeValue', +'attribute_name' => 'attributeName', +'attribute_value_code' => 'attributeValueCode', +'time_unit' => 'timeUnit' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'attribute_code' => 'setAttributeCode', +'time_start' => 'setTimeStart', +'attribute_value_name' => 'setAttributeValueName', +'time_to' => 'setTimeTo', +'attribute_value' => 'setAttributeValue', +'attribute_name' => 'setAttributeName', +'attribute_value_code' => 'setAttributeValueCode', +'time_unit' => 'setTimeUnit' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'attribute_code' => 'getAttributeCode', +'time_start' => 'getTimeStart', +'attribute_value_name' => 'getAttributeValueName', +'time_to' => 'getTimeTo', +'attribute_value' => 'getAttributeValue', +'attribute_name' => 'getAttributeName', +'attribute_value_code' => 'getAttributeValueCode', +'time_unit' => 'getTimeUnit' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['attribute_code'] = isset($data['attribute_code']) ? $data['attribute_code'] : null; + $this->container['time_start'] = isset($data['time_start']) ? $data['time_start'] : null; + $this->container['attribute_value_name'] = isset($data['attribute_value_name']) ? $data['attribute_value_name'] : null; + $this->container['time_to'] = isset($data['time_to']) ? $data['time_to'] : null; + $this->container['attribute_value'] = isset($data['attribute_value']) ? $data['attribute_value'] : null; + $this->container['attribute_name'] = isset($data['attribute_name']) ? $data['attribute_name'] : null; + $this->container['attribute_value_code'] = isset($data['attribute_value_code']) ? $data['attribute_value_code'] : null; + $this->container['time_unit'] = isset($data['time_unit']) ? $data['time_unit'] : null; + } + + + /** + * Gets attribute_code + * + * @return string + */ + public function getAttributeCode() + { + return $this->container['attribute_code']; + } + + /** + * Sets attribute_code + * + * @param string $attribute_code attribute_code + * + * @return $this + */ + public function setAttributeCode($attribute_code) + { + $this->container['attribute_code'] = $attribute_code; + + return $this; + } + + /** + * Gets time_start + * + * @return int + */ + public function getTimeStart() + { + return $this->container['time_start']; + } + + /** + * Sets time_start + * + * @param int $time_start time_start + * + * @return $this + */ + public function setTimeStart($time_start) + { + $this->container['time_start'] = $time_start; + + return $this; + } + + /** + * Gets attribute_value_name + * + * @return string + */ + public function getAttributeValueName() + { + return $this->container['attribute_value_name']; + } + + /** + * Sets attribute_value_name + * + * @param string $attribute_value_name attribute_value_name + * + * @return $this + */ + public function setAttributeValueName($attribute_value_name) + { + $this->container['attribute_value_name'] = $attribute_value_name; + + return $this; + } + + /** + * Gets time_to + * + * @return int + */ + public function getTimeTo() + { + return $this->container['time_to']; + } + + /** + * Sets time_to + * + * @param int $time_to time_to + * + * @return $this + */ + public function setTimeTo($time_to) + { + $this->container['time_to'] = $time_to; + + return $this; + } + + /** + * Gets attribute_value + * + * @return int + */ + public function getAttributeValue() + { + return $this->container['attribute_value']; + } + + /** + * Sets attribute_value + * + * @param int $attribute_value attribute_value + * + * @return $this + */ + public function setAttributeValue($attribute_value) + { + $this->container['attribute_value'] = $attribute_value; + + return $this; + } + + /** + * Gets attribute_name + * + * @return string + */ + public function getAttributeName() + { + return $this->container['attribute_name']; + } + + /** + * Sets attribute_name + * + * @param string $attribute_name attribute_name + * + * @return $this + */ + public function setAttributeName($attribute_name) + { + $this->container['attribute_name'] = $attribute_name; + + return $this; + } + + /** + * Gets attribute_value_code + * + * @return int + */ + public function getAttributeValueCode() + { + return $this->container['attribute_value_code']; + } + + /** + * Sets attribute_value_code + * + * @param int $attribute_value_code attribute_value_code + * + * @return $this + */ + public function setAttributeValueCode($attribute_value_code) + { + $this->container['attribute_value_code'] = $attribute_value_code; + + return $this; + } + + /** + * Gets time_unit + * + * @return string + */ + public function getTimeUnit() + { + return $this->container['time_unit']; + } + + /** + * Sets time_unit + * + * @param string $time_unit time_unit + * + * @return $this + */ + public function setTimeUnit($time_unit) + { + $this->container['time_unit'] = $time_unit; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0a2bb246571f8cd6e498c297f700c72b1ed25933 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:14 +0800 Subject: [PATCH 092/373] feat: update --- ...oleAdminListActivateableInstancesForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesForms.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesForms.php b/lib/Model/ConsoleAdminListActivateableInstancesForms.php new file mode 100644 index 000000000..7c983463f --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesForms.php @@ -0,0 +1,287 @@ + 'string', +'version_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'version_id' => 'versionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'version_id' => 'setVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'version_id' => 'getVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b955d77ce6c5c16a0aad571578bf0433df1b5b71 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:16 +0800 Subject: [PATCH 093/373] feat: update --- ...leAdminListActivateableInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesResult.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesResult.php b/lib/Model/ConsoleAdminListActivateableInstancesResult.php new file mode 100644 index 000000000..dcdc2ff8e --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e20c38294e56e63041cd94b54f7911548e9590c4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:17 +0800 Subject: [PATCH 094/373] feat: update --- ...inListActivateableInstancesResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php b/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php new file mode 100644 index 000000000..7d61aff6d --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 65f3cf8922ffeac5c11bd1d7b5f9cfd6f19d0ed4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:18 +0800 Subject: [PATCH 095/373] feat: update --- ...tivateableInstancesResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php new file mode 100644 index 000000000..7bf9608ae --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'cloud_game_instance_name' => 'string', +'container_count' => 'int', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null, +'container_count' => null, +'max_concurrency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName', +'container_count' => 'containerCount', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName', +'container_count' => 'setContainerCount', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName', +'container_count' => 'getContainerCount', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + $this->container['container_count'] = isset($data['container_count']) ? $data['container_count'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + + /** + * Gets container_count + * + * @return int + */ + public function getContainerCount() + { + return $this->container['container_count']; + } + + /** + * Sets container_count + * + * @param int $container_count container_count + * + * @return $this + */ + public function setContainerCount($container_count) + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 67cebed217e829bae3f052b3017d467955dfd6ea Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:20 +0800 Subject: [PATCH 096/373] feat: update --- ...onsoleAdminListActivatedInstancesForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesForms.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesForms.php b/lib/Model/ConsoleAdminListActivatedInstancesForms.php new file mode 100644 index 000000000..f02f09f72 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesForms.php @@ -0,0 +1,287 @@ + 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e603e9be1ad79099c564a0b3b9dca3ca94d5a543 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:21 +0800 Subject: [PATCH 097/373] feat: update --- ...nsoleAdminListActivatedInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesResult.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesResult.php b/lib/Model/ConsoleAdminListActivatedInstancesResult.php new file mode 100644 index 000000000..7b4b0ae87 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4465f32776c08eddd1783eda7d3799d1d24f1315 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:22 +0800 Subject: [PATCH 098/373] feat: update --- ...AdminListActivatedInstancesResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php b/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php new file mode 100644 index 000000000..d2f312f2b --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 40745a76c459790d62acdeba7a5d54da163ac9e4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:24 +0800 Subject: [PATCH 099/373] feat: update --- ...tActivatedInstancesResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php new file mode 100644 index 000000000..40a71982a --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'cloud_game_instance_name' => 'string', +'container_count' => 'int', +'max_concurrency' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null, +'container_count' => null, +'max_concurrency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName', +'container_count' => 'containerCount', +'max_concurrency' => 'maxConcurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName', +'container_count' => 'setContainerCount', +'max_concurrency' => 'setMaxConcurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName', +'container_count' => 'getContainerCount', +'max_concurrency' => 'getMaxConcurrency' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + $this->container['container_count'] = isset($data['container_count']) ? $data['container_count'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + + /** + * Gets container_count + * + * @return int + */ + public function getContainerCount() + { + return $this->container['container_count']; + } + + /** + * Sets container_count + * + * @param int $container_count container_count + * + * @return $this + */ + public function setContainerCount($container_count) + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4d75f954ee64132fcd04d00de8b01cd8d6d37de7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:25 +0800 Subject: [PATCH 100/373] feat: update --- ...ConsoleAdminListControllersOfGameForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameForms.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameForms.php b/lib/Model/ConsoleAdminListControllersOfGameForms.php new file mode 100644 index 000000000..2982547d6 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameForms.php @@ -0,0 +1,317 @@ + 'string', +'next_token' => 'string', +'max_results' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'next_token' => null, +'max_results' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'next_token' => 'nextToken', +'max_results' => 'maxResults' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'next_token' => 'setNextToken', +'max_results' => 'setMaxResults' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'next_token' => 'getNextToken', +'max_results' => 'getMaxResults' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 491f8fae66bdd319292cf02ef58a4c847045dbd2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:26 +0800 Subject: [PATCH 101/373] feat: update --- ...onsoleAdminListControllersOfGameResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameResult.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameResult.php b/lib/Model/ConsoleAdminListControllersOfGameResult.php new file mode 100644 index 000000000..1e343a5b6 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9198c86f057ae552c1a468a14a6d08a7412a62bc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:28 +0800 Subject: [PATCH 102/373] feat: update --- ...eAdminListControllersOfGameResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameResultModel.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameResultModel.php b/lib/Model/ConsoleAdminListControllersOfGameResultModel.php new file mode 100644 index 000000000..a13e81405 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f42cb2e0cf74593761dc4d001adf0f9b4b62756c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:29 +0800 Subject: [PATCH 103/373] feat: update --- ...stControllersOfGameResultModelDataList.php | 437 ++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php b/lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php new file mode 100644 index 000000000..c0f1db994 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResultModelDataList.php @@ -0,0 +1,437 @@ + 'string', +'ctltype' => 'string', +'name' => 'string', +'id' => 'string', +'type' => 'int', +'priority' => 'int', +'config' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'bg_pic' => null, +'ctltype' => null, +'name' => null, +'id' => null, +'type' => null, +'priority' => null, +'config' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'bg_pic' => 'bgPic', +'ctltype' => 'ctltype', +'name' => 'name', +'id' => 'id', +'type' => 'type', +'priority' => 'priority', +'config' => 'config' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bg_pic' => 'setBgPic', +'ctltype' => 'setCtltype', +'name' => 'setName', +'id' => 'setId', +'type' => 'setType', +'priority' => 'setPriority', +'config' => 'setConfig' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bg_pic' => 'getBgPic', +'ctltype' => 'getCtltype', +'name' => 'getName', +'id' => 'getId', +'type' => 'getType', +'priority' => 'getPriority', +'config' => 'getConfig' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['bg_pic'] = isset($data['bg_pic']) ? $data['bg_pic'] : null; + $this->container['ctltype'] = isset($data['ctltype']) ? $data['ctltype'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['priority'] = isset($data['priority']) ? $data['priority'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + } + + + /** + * Gets bg_pic + * + * @return string + */ + public function getBgPic() + { + return $this->container['bg_pic']; + } + + /** + * Sets bg_pic + * + * @param string $bg_pic bg_pic + * + * @return $this + */ + public function setBgPic($bg_pic) + { + $this->container['bg_pic'] = $bg_pic; + + return $this; + } + + /** + * Gets ctltype + * + * @return string + */ + public function getCtltype() + { + return $this->container['ctltype']; + } + + /** + * Sets ctltype + * + * @param string $ctltype ctltype + * + * @return $this + */ + public function setCtltype($ctltype) + { + $this->container['ctltype'] = $ctltype; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets type + * + * @return int + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param int $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets priority + * + * @return int + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param int $priority priority + * + * @return $this + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + + /** + * Gets config + * + * @return string + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param string $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 44dc114aa821e38470af6998a48bc9a59837cd9a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:31 +0800 Subject: [PATCH 104/373] feat: update --- ...nsoleAdminListDeployableInstancesForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesForms.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesForms.php b/lib/Model/ConsoleAdminListDeployableInstancesForms.php new file mode 100644 index 000000000..5b591ce4e --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesForms.php @@ -0,0 +1,347 @@ + 'string', +'project_id' => 'string', +'page_size' => 'int', +'page_number' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'project_id' => null, +'page_size' => 'int64', +'page_number' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'project_id' => 'projectId', +'page_size' => 'pageSize', +'page_number' => 'pageNumber' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'project_id' => 'setProjectId', +'page_size' => 'setPageSize', +'page_number' => 'setPageNumber' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'project_id' => 'getProjectId', +'page_size' => 'getPageSize', +'page_number' => 'getPageNumber' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 111ad3ea6416dffbff0f2bb37df64edd7952d6d4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:33 +0800 Subject: [PATCH 105/373] feat: update --- ...soleAdminListDeployableInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesResult.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesResult.php b/lib/Model/ConsoleAdminListDeployableInstancesResult.php new file mode 100644 index 000000000..a76498794 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ab3cfe48ea3ef3495c1bc423b62388bdaefaa1da Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:34 +0800 Subject: [PATCH 106/373] feat: update --- ...dminListDeployableInstancesResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php b/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php new file mode 100644 index 000000000..af3be8078 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php @@ -0,0 +1,347 @@ + 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModelDataList[]', +'page_size' => 'int', +'total_count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => 'int64', +'data_list' => null, +'page_size' => 'int64', +'total_count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'data_list' => 'dataList', +'page_size' => 'pageSize', +'total_count' => 'totalCount' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'data_list' => 'setDataList', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'data_list' => 'getDataList', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 060136167e076557b8f368c7d4395fb11552711c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:35 +0800 Subject: [PATCH 107/373] feat: update --- ...DeployableInstancesResultModelDataList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php new file mode 100644 index 000000000..094563bd9 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResultModelDataList.php @@ -0,0 +1,287 @@ + 'string', +'cloud_game_instance_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cbcccbdc1038e41a53a63b3a7e44107bcb4327d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:37 +0800 Subject: [PATCH 108/373] feat: update --- lib/Model/ConsoleAdminListGameCcuForms.php | 407 +++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuForms.php diff --git a/lib/Model/ConsoleAdminListGameCcuForms.php b/lib/Model/ConsoleAdminListGameCcuForms.php new file mode 100644 index 000000000..c8b46fde9 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuForms.php @@ -0,0 +1,407 @@ + 'string', +'project_ids' => 'string', +'query_time_start' => 'int', +'query_time_end' => 'int', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_game_ids' => null, +'project_ids' => null, +'query_time_start' => 'int64', +'query_time_end' => 'int64', +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_game_ids' => 'mixGameIds', +'project_ids' => 'projectIds', +'query_time_start' => 'queryTimeStart', +'query_time_end' => 'queryTimeEnd', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_game_ids' => 'setMixGameIds', +'project_ids' => 'setProjectIds', +'query_time_start' => 'setQueryTimeStart', +'query_time_end' => 'setQueryTimeEnd', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_game_ids' => 'getMixGameIds', +'project_ids' => 'getProjectIds', +'query_time_start' => 'getQueryTimeStart', +'query_time_end' => 'getQueryTimeEnd', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_game_ids'] = isset($data['mix_game_ids']) ? $data['mix_game_ids'] : null; + $this->container['project_ids'] = isset($data['project_ids']) ? $data['project_ids'] : null; + $this->container['query_time_start'] = isset($data['query_time_start']) ? $data['query_time_start'] : null; + $this->container['query_time_end'] = isset($data['query_time_end']) ? $data['query_time_end'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets mix_game_ids + * + * @return string + */ + public function getMixGameIds() + { + return $this->container['mix_game_ids']; + } + + /** + * Sets mix_game_ids + * + * @param string $mix_game_ids mix_game_ids + * + * @return $this + */ + public function setMixGameIds($mix_game_ids) + { + $this->container['mix_game_ids'] = $mix_game_ids; + + return $this; + } + + /** + * Gets project_ids + * + * @return string + */ + public function getProjectIds() + { + return $this->container['project_ids']; + } + + /** + * Sets project_ids + * + * @param string $project_ids project_ids + * + * @return $this + */ + public function setProjectIds($project_ids) + { + $this->container['project_ids'] = $project_ids; + + return $this; + } + + /** + * Gets query_time_start + * + * @return int + */ + public function getQueryTimeStart() + { + return $this->container['query_time_start']; + } + + /** + * Sets query_time_start + * + * @param int $query_time_start query_time_start + * + * @return $this + */ + public function setQueryTimeStart($query_time_start) + { + $this->container['query_time_start'] = $query_time_start; + + return $this; + } + + /** + * Gets query_time_end + * + * @return int + */ + public function getQueryTimeEnd() + { + return $this->container['query_time_end']; + } + + /** + * Sets query_time_end + * + * @param int $query_time_end query_time_end + * + * @return $this + */ + public function setQueryTimeEnd($query_time_end) + { + $this->container['query_time_end'] = $query_time_end; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f71427d5be4520091308d47c0fea01243f119e10 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:38 +0800 Subject: [PATCH 109/373] feat: update --- lib/Model/ConsoleAdminListGameCcuResult.php | 347 ++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuResult.php diff --git a/lib/Model/ConsoleAdminListGameCcuResult.php b/lib/Model/ConsoleAdminListGameCcuResult.php new file mode 100644 index 000000000..bf8322d7f --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From aca6bc2627e7fc3ab24f4306ce5bf89c7f79c4da Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:40 +0800 Subject: [PATCH 110/373] feat: update --- .../ConsoleAdminListGameCcuResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuResultModel.php diff --git a/lib/Model/ConsoleAdminListGameCcuResultModel.php b/lib/Model/ConsoleAdminListGameCcuResultModel.php new file mode 100644 index 000000000..3329eb8a1 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResultModel.php @@ -0,0 +1,347 @@ + 'int', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'page_size' => null, +'total_count' => 'int64', +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResultModelItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 69e891df67a0411644358c0f5d9efe667a8706e8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:42 +0800 Subject: [PATCH 111/373] feat: update --- ...onsoleAdminListGameCcuResultModelItems.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameCcuResultModelItems.php diff --git a/lib/Model/ConsoleAdminListGameCcuResultModelItems.php b/lib/Model/ConsoleAdminListGameCcuResultModelItems.php new file mode 100644 index 000000000..17776cf47 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResultModelItems.php @@ -0,0 +1,317 @@ + 'string', +'game_name' => 'string', +'mix_game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'ccu_value' => null, +'game_name' => null, +'mix_game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'ccu_value' => 'ccuValue', +'game_name' => 'gameName', +'mix_game_id' => 'mixGameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'ccu_value' => 'setCcuValue', +'game_name' => 'setGameName', +'mix_game_id' => 'setMixGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'ccu_value' => 'getCcuValue', +'game_name' => 'getGameName', +'mix_game_id' => 'getMixGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ccu_value'] = isset($data['ccu_value']) ? $data['ccu_value'] : null; + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['mix_game_id'] = isset($data['mix_game_id']) ? $data['mix_game_id'] : null; + } + + + /** + * Gets ccu_value + * + * @return string + */ + public function getCcuValue() + { + return $this->container['ccu_value']; + } + + /** + * Sets ccu_value + * + * @param string $ccu_value ccu_value + * + * @return $this + */ + public function setCcuValue($ccu_value) + { + $this->container['ccu_value'] = $ccu_value; + + return $this; + } + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets mix_game_id + * + * @return string + */ + public function getMixGameId() + { + return $this->container['mix_game_id']; + } + + /** + * Sets mix_game_id + * + * @param string $mix_game_id mix_game_id + * + * @return $this + */ + public function setMixGameId($mix_game_id) + { + $this->container['mix_game_id'] = $mix_game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 283a06251bd83621a3d2c5a88b1d73e67d684be8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:43 +0800 Subject: [PATCH 112/373] feat: update --- ...minListGameDeployDetailsOfProjectForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php new file mode 100644 index 000000000..4016c1751 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectForms.php @@ -0,0 +1,287 @@ + 'string', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4ff09f79a3166dc5b51ed5ed7d675100e33e0489 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:45 +0800 Subject: [PATCH 113/373] feat: update --- ...inListGameDeployDetailsOfProjectResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php new file mode 100644 index 000000000..805083150 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7899ec6a44f8a8140f5e7d2a9b6a50b362a3be85 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:47 +0800 Subject: [PATCH 114/373] feat: update --- ...tGameDeployDetailsOfProjectResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php new file mode 100644 index 000000000..7a65ff8e3 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f7d3646490a10fc3fbe8df79b313acc4afbebe3c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:48 +0800 Subject: [PATCH 115/373] feat: update --- ...loyDetailsOfProjectResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php new file mode 100644 index 000000000..f0eee884d --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'auto_active_status' => 'string', +'version_name' => 'string', +'deploy_status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'auto_active_status' => null, +'version_name' => null, +'deploy_status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'auto_active_status' => 'autoActiveStatus', +'version_name' => 'versionName', +'deploy_status' => 'deployStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'auto_active_status' => 'setAutoActiveStatus', +'version_name' => 'setVersionName', +'deploy_status' => 'setDeployStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'auto_active_status' => 'getAutoActiveStatus', +'version_name' => 'getVersionName', +'deploy_status' => 'getDeployStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['auto_active_status'] = isset($data['auto_active_status']) ? $data['auto_active_status'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + $this->container['deploy_status'] = isset($data['deploy_status']) ? $data['deploy_status'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets auto_active_status + * + * @return string + */ + public function getAutoActiveStatus() + { + return $this->container['auto_active_status']; + } + + /** + * Sets auto_active_status + * + * @param string $auto_active_status auto_active_status + * + * @return $this + */ + public function setAutoActiveStatus($auto_active_status) + { + $this->container['auto_active_status'] = $auto_active_status; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + + /** + * Gets deploy_status + * + * @return string + */ + public function getDeployStatus() + { + return $this->container['deploy_status']; + } + + /** + * Sets deploy_status + * + * @param string $deploy_status deploy_status + * + * @return $this + */ + public function setDeployStatus($deploy_status) + { + $this->container['deploy_status'] = $deploy_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 50b66da7de4de010941243eb69c8568f44caf1b0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:50 +0800 Subject: [PATCH 116/373] feat: update --- .../ConsoleAdminListGameVersionsForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsForms.php diff --git a/lib/Model/ConsoleAdminListGameVersionsForms.php b/lib/Model/ConsoleAdminListGameVersionsForms.php new file mode 100644 index 000000000..f72a7206f --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsForms.php @@ -0,0 +1,317 @@ + 'string', +'max_results' => 'int', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => 'int32', +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 652a38dd8f0c7b70a257cbf205a5e0deb42a5c05 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:51 +0800 Subject: [PATCH 117/373] feat: update --- .../ConsoleAdminListGameVersionsResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsResult.php diff --git a/lib/Model/ConsoleAdminListGameVersionsResult.php b/lib/Model/ConsoleAdminListGameVersionsResult.php new file mode 100644 index 000000000..61805990b --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6144191eab9807ec82fcd0e18e52294291497687 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:53 +0800 Subject: [PATCH 118/373] feat: update --- ...onsoleAdminListGameVersionsResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsResultModel.php diff --git a/lib/Model/ConsoleAdminListGameVersionsResultModel.php b/lib/Model/ConsoleAdminListGameVersionsResultModel.php new file mode 100644 index 000000000..75fb8faa1 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_results' => null, +'next_token' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_results' => 'maxResults', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_results' => 'setMaxResults', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_results' => 'getMaxResults', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7227bde02f2ef405e36e4a2e9eef440ff6c1690c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:54 +0800 Subject: [PATCH 119/373] feat: update --- ...minListGameVersionsResultModelDataList.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php b/lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php new file mode 100644 index 000000000..336a564b4 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResultModelDataList.php @@ -0,0 +1,347 @@ + 'string', +'adapt_state' => 'string', +'adapt_finish_time' => 'int', +'version_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'version_id' => null, +'adapt_state' => null, +'adapt_finish_time' => 'int64', +'version_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'version_id' => 'versionId', +'adapt_state' => 'adaptState', +'adapt_finish_time' => 'adaptFinishTime', +'version_name' => 'versionName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'version_id' => 'setVersionId', +'adapt_state' => 'setAdaptState', +'adapt_finish_time' => 'setAdaptFinishTime', +'version_name' => 'setVersionName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'version_id' => 'getVersionId', +'adapt_state' => 'getAdaptState', +'adapt_finish_time' => 'getAdaptFinishTime', +'version_name' => 'getVersionName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['adapt_state'] = isset($data['adapt_state']) ? $data['adapt_state'] : null; + $this->container['adapt_finish_time'] = isset($data['adapt_finish_time']) ? $data['adapt_finish_time'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + } + + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets adapt_state + * + * @return string + */ + public function getAdaptState() + { + return $this->container['adapt_state']; + } + + /** + * Sets adapt_state + * + * @param string $adapt_state adapt_state + * + * @return $this + */ + public function setAdaptState($adapt_state) + { + $this->container['adapt_state'] = $adapt_state; + + return $this; + } + + /** + * Gets adapt_finish_time + * + * @return int + */ + public function getAdaptFinishTime() + { + return $this->container['adapt_finish_time']; + } + + /** + * Sets adapt_finish_time + * + * @param int $adapt_finish_time adapt_finish_time + * + * @return $this + */ + public function setAdaptFinishTime($adapt_finish_time) + { + $this->container['adapt_finish_time'] = $adapt_finish_time; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f2cb59193e86cc8d88e25aabcd3329273f0ee23f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:56 +0800 Subject: [PATCH 120/373] feat: update --- lib/Model/ConsoleAdminListGamesForms.php | 287 +++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesForms.php diff --git a/lib/Model/ConsoleAdminListGamesForms.php b/lib/Model/ConsoleAdminListGamesForms.php new file mode 100644 index 000000000..6c921c883 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesForms.php @@ -0,0 +1,287 @@ + 'string', +'max_results' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bb2df9ee65202174a33075cfc3a7c7ebf3a62a90 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:57 +0800 Subject: [PATCH 121/373] feat: update --- lib/Model/ConsoleAdminListGamesResult.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesResult.php diff --git a/lib/Model/ConsoleAdminListGamesResult.php b/lib/Model/ConsoleAdminListGamesResult.php new file mode 100644 index 000000000..4f9f8a16b --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a8b48c2575a0ce5ef9a7211ed0885b3d84a61534 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:12:58 +0800 Subject: [PATCH 122/373] feat: update --- .../ConsoleAdminListGamesResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesResultModel.php diff --git a/lib/Model/ConsoleAdminListGamesResultModel.php b/lib/Model/ConsoleAdminListGamesResultModel.php new file mode 100644 index 000000000..5adcf2fe3 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModelDataList[]', +'count' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_results' => null, +'next_token' => null, +'data_list' => null, +'count' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_results' => 'maxResults', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_results' => 'setMaxResults', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_results' => 'getMaxResults', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return string + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param string $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a93966b5d4e9177ca29d091fa41c52adc34b56bf Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:00 +0800 Subject: [PATCH 123/373] feat: update --- ...nsoleAdminListGamesResultModelDataList.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListGamesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListGamesResultModelDataList.php b/lib/Model/ConsoleAdminListGamesResultModelDataList.php new file mode 100644 index 000000000..1de223d4d --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResultModelDataList.php @@ -0,0 +1,317 @@ + 'string', +'game_name' => 'string', +'platform_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'game_name' => null, +'platform_type' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'game_name' => 'gameName', +'platform_type' => 'platformType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'game_name' => 'setGameName', +'platform_type' => 'setPlatformType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'game_name' => 'getGameName', +'platform_type' => 'getPlatformType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['game_name'] = isset($data['game_name']) ? $data['game_name'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets game_name + * + * @return string + */ + public function getGameName() + { + return $this->container['game_name']; + } + + /** + * Sets game_name + * + * @param string $game_name game_name + * + * @return $this + */ + public function setGameName($game_name) + { + $this->container['game_name'] = $game_name; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b551f309d9a1af6e11eb92d9fd3782da894fea79 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:01 +0800 Subject: [PATCH 124/373] feat: update --- ...onsoleAdminListInstancesOfProjectForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectForms.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectForms.php b/lib/Model/ConsoleAdminListInstancesOfProjectForms.php new file mode 100644 index 000000000..a14e1670b --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectForms.php @@ -0,0 +1,317 @@ + 'string', +'max_result' => 'int', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_result' => 'int32', +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_result' => 'maxResult', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_result' => 'setMaxResult', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_result' => 'getMaxResult', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_result'] = isset($data['max_result']) ? $data['max_result'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_result + * + * @return int + */ + public function getMaxResult() + { + return $this->container['max_result']; + } + + /** + * Sets max_result + * + * @param int $max_result max_result + * + * @return $this + */ + public function setMaxResult($max_result) + { + $this->container['max_result'] = $max_result; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ec2df2841872e132e8f3fb4b2a848886d83d861e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:03 +0800 Subject: [PATCH 125/373] feat: update --- ...nsoleAdminListInstancesOfProjectResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectResult.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectResult.php b/lib/Model/ConsoleAdminListInstancesOfProjectResult.php new file mode 100644 index 000000000..3d3ac6f5b --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResult.php @@ -0,0 +1,347 @@ + 'string', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return string + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param string $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dbbf340b01c4a49f4c06df121b6a0906273c766d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:04 +0800 Subject: [PATCH 126/373] feat: update --- ...AdminListInstancesOfProjectResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php b/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php new file mode 100644 index 000000000..a630d85c9 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_result' => null, +'next_token' => null, +'data_list' => null, +'count' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_result' => 'maxResult', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_result' => 'setMaxResult', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_result' => 'getMaxResult', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_result'] = isset($data['max_result']) ? $data['max_result'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_result + * + * @return int + */ + public function getMaxResult() + { + return $this->container['max_result']; + } + + /** + * Sets max_result + * + * @param int $max_result max_result + * + * @return $this + */ + public function setMaxResult($max_result) + { + $this->container['max_result'] = $max_result; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 760d919a738996353f85c80bf60df8f84178054c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:05 +0800 Subject: [PATCH 127/373] feat: update --- ...tInstancesOfProjectResultModelDataList.php | 677 ++++++++++++++++++ 1 file changed, 677 insertions(+) create mode 100644 lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php b/lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php new file mode 100644 index 000000000..ca1b0c2f3 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResultModelDataList.php @@ -0,0 +1,677 @@ + 'string', +'bandwidth_charge_type' => 'string', +'effective_time' => 'int', +'platform_type' => 'string', +'payment_type' => 'string', +'token' => 'string', +'expire_time' => 'int', +'commodity_instance_name' => 'string', +'commodity_instance_id' => 'string', +'region' => 'string', +'project_name' => 'string', +'project_id' => 'string', +'container_count' => 'string', +'status' => 'string', +'trade_channel' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_specification_cn_name' => null, +'bandwidth_charge_type' => null, +'effective_time' => null, +'platform_type' => null, +'payment_type' => null, +'token' => null, +'expire_time' => null, +'commodity_instance_name' => null, +'commodity_instance_id' => null, +'region' => null, +'project_name' => null, +'project_id' => null, +'container_count' => null, +'status' => null, +'trade_channel' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_specification_cn_name' => 'commoditySpecificationCnName', +'bandwidth_charge_type' => 'bandwidthChargeType', +'effective_time' => 'effectiveTime', +'platform_type' => 'platformType', +'payment_type' => 'paymentType', +'token' => 'token', +'expire_time' => 'expireTime', +'commodity_instance_name' => 'commodityInstanceName', +'commodity_instance_id' => 'commodityInstanceId', +'region' => 'region', +'project_name' => 'projectName', +'project_id' => 'projectId', +'container_count' => 'containerCount', +'status' => 'status', +'trade_channel' => 'tradeChannel' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_specification_cn_name' => 'setCommoditySpecificationCnName', +'bandwidth_charge_type' => 'setBandwidthChargeType', +'effective_time' => 'setEffectiveTime', +'platform_type' => 'setPlatformType', +'payment_type' => 'setPaymentType', +'token' => 'setToken', +'expire_time' => 'setExpireTime', +'commodity_instance_name' => 'setCommodityInstanceName', +'commodity_instance_id' => 'setCommodityInstanceId', +'region' => 'setRegion', +'project_name' => 'setProjectName', +'project_id' => 'setProjectId', +'container_count' => 'setContainerCount', +'status' => 'setStatus', +'trade_channel' => 'setTradeChannel' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_specification_cn_name' => 'getCommoditySpecificationCnName', +'bandwidth_charge_type' => 'getBandwidthChargeType', +'effective_time' => 'getEffectiveTime', +'platform_type' => 'getPlatformType', +'payment_type' => 'getPaymentType', +'token' => 'getToken', +'expire_time' => 'getExpireTime', +'commodity_instance_name' => 'getCommodityInstanceName', +'commodity_instance_id' => 'getCommodityInstanceId', +'region' => 'getRegion', +'project_name' => 'getProjectName', +'project_id' => 'getProjectId', +'container_count' => 'getContainerCount', +'status' => 'getStatus', +'trade_channel' => 'getTradeChannel' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_specification_cn_name'] = isset($data['commodity_specification_cn_name']) ? $data['commodity_specification_cn_name'] : null; + $this->container['bandwidth_charge_type'] = isset($data['bandwidth_charge_type']) ? $data['bandwidth_charge_type'] : null; + $this->container['effective_time'] = isset($data['effective_time']) ? $data['effective_time'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['payment_type'] = isset($data['payment_type']) ? $data['payment_type'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['expire_time'] = isset($data['expire_time']) ? $data['expire_time'] : null; + $this->container['commodity_instance_name'] = isset($data['commodity_instance_name']) ? $data['commodity_instance_name'] : null; + $this->container['commodity_instance_id'] = isset($data['commodity_instance_id']) ? $data['commodity_instance_id'] : null; + $this->container['region'] = isset($data['region']) ? $data['region'] : null; + $this->container['project_name'] = isset($data['project_name']) ? $data['project_name'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['container_count'] = isset($data['container_count']) ? $data['container_count'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['trade_channel'] = isset($data['trade_channel']) ? $data['trade_channel'] : null; + } + + + /** + * Gets commodity_specification_cn_name + * + * @return string + */ + public function getCommoditySpecificationCnName() + { + return $this->container['commodity_specification_cn_name']; + } + + /** + * Sets commodity_specification_cn_name + * + * @param string $commodity_specification_cn_name commodity_specification_cn_name + * + * @return $this + */ + public function setCommoditySpecificationCnName($commodity_specification_cn_name) + { + $this->container['commodity_specification_cn_name'] = $commodity_specification_cn_name; + + return $this; + } + + /** + * Gets bandwidth_charge_type + * + * @return string + */ + public function getBandwidthChargeType() + { + return $this->container['bandwidth_charge_type']; + } + + /** + * Sets bandwidth_charge_type + * + * @param string $bandwidth_charge_type bandwidth_charge_type + * + * @return $this + */ + public function setBandwidthChargeType($bandwidth_charge_type) + { + $this->container['bandwidth_charge_type'] = $bandwidth_charge_type; + + return $this; + } + + /** + * Gets effective_time + * + * @return int + */ + public function getEffectiveTime() + { + return $this->container['effective_time']; + } + + /** + * Sets effective_time + * + * @param int $effective_time effective_time + * + * @return $this + */ + public function setEffectiveTime($effective_time) + { + $this->container['effective_time'] = $effective_time; + + return $this; + } + + /** + * Gets platform_type + * + * @return string + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param string $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets payment_type + * + * @return string + */ + public function getPaymentType() + { + return $this->container['payment_type']; + } + + /** + * Sets payment_type + * + * @param string $payment_type payment_type + * + * @return $this + */ + public function setPaymentType($payment_type) + { + $this->container['payment_type'] = $payment_type; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets expire_time + * + * @return int + */ + public function getExpireTime() + { + return $this->container['expire_time']; + } + + /** + * Sets expire_time + * + * @param int $expire_time expire_time + * + * @return $this + */ + public function setExpireTime($expire_time) + { + $this->container['expire_time'] = $expire_time; + + return $this; + } + + /** + * Gets commodity_instance_name + * + * @return string + */ + public function getCommodityInstanceName() + { + return $this->container['commodity_instance_name']; + } + + /** + * Sets commodity_instance_name + * + * @param string $commodity_instance_name commodity_instance_name + * + * @return $this + */ + public function setCommodityInstanceName($commodity_instance_name) + { + $this->container['commodity_instance_name'] = $commodity_instance_name; + + return $this; + } + + /** + * Gets commodity_instance_id + * + * @return string + */ + public function getCommodityInstanceId() + { + return $this->container['commodity_instance_id']; + } + + /** + * Sets commodity_instance_id + * + * @param string $commodity_instance_id commodity_instance_id + * + * @return $this + */ + public function setCommodityInstanceId($commodity_instance_id) + { + $this->container['commodity_instance_id'] = $commodity_instance_id; + + return $this; + } + + /** + * Gets region + * + * @return string + */ + public function getRegion() + { + return $this->container['region']; + } + + /** + * Sets region + * + * @param string $region region + * + * @return $this + */ + public function setRegion($region) + { + $this->container['region'] = $region; + + return $this; + } + + /** + * Gets project_name + * + * @return string + */ + public function getProjectName() + { + return $this->container['project_name']; + } + + /** + * Sets project_name + * + * @param string $project_name project_name + * + * @return $this + */ + public function setProjectName($project_name) + { + $this->container['project_name'] = $project_name; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets container_count + * + * @return string + */ + public function getContainerCount() + { + return $this->container['container_count']; + } + + /** + * Sets container_count + * + * @param string $container_count container_count + * + * @return $this + */ + public function setContainerCount($container_count) + { + $this->container['container_count'] = $container_count; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets trade_channel + * + * @return string + */ + public function getTradeChannel() + { + return $this->container['trade_channel']; + } + + /** + * Sets trade_channel + * + * @param string $trade_channel trade_channel + * + * @return $this + */ + public function setTradeChannel($trade_channel) + { + $this->container['trade_channel'] = $trade_channel; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 87bde87e43ff3395e99882de3da1e4f8989a1bc3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:07 +0800 Subject: [PATCH 128/373] feat: update --- lib/Model/ConsoleAdminListMonthBillForms.php | 377 +++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillForms.php diff --git a/lib/Model/ConsoleAdminListMonthBillForms.php b/lib/Model/ConsoleAdminListMonthBillForms.php new file mode 100644 index 000000000..69184abc0 --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillForms.php @@ -0,0 +1,377 @@ + 'string', +'accounting_period_to' => 'string', +'status' => 'string', +'page_number' => 'int', +'page_size' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'accounting_period_from' => null, +'accounting_period_to' => null, +'status' => null, +'page_number' => 'int32', +'page_size' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accounting_period_from' => 'accountingPeriodFrom', +'accounting_period_to' => 'accountingPeriodTo', +'status' => 'status', +'page_number' => 'pageNumber', +'page_size' => 'pageSize' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accounting_period_from' => 'setAccountingPeriodFrom', +'accounting_period_to' => 'setAccountingPeriodTo', +'status' => 'setStatus', +'page_number' => 'setPageNumber', +'page_size' => 'setPageSize' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accounting_period_from' => 'getAccountingPeriodFrom', +'accounting_period_to' => 'getAccountingPeriodTo', +'status' => 'getStatus', +'page_number' => 'getPageNumber', +'page_size' => 'getPageSize' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accounting_period_from'] = isset($data['accounting_period_from']) ? $data['accounting_period_from'] : null; + $this->container['accounting_period_to'] = isset($data['accounting_period_to']) ? $data['accounting_period_to'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + } + + + /** + * Gets accounting_period_from + * + * @return string + */ + public function getAccountingPeriodFrom() + { + return $this->container['accounting_period_from']; + } + + /** + * Sets accounting_period_from + * + * @param string $accounting_period_from accounting_period_from + * + * @return $this + */ + public function setAccountingPeriodFrom($accounting_period_from) + { + $this->container['accounting_period_from'] = $accounting_period_from; + + return $this; + } + + /** + * Gets accounting_period_to + * + * @return string + */ + public function getAccountingPeriodTo() + { + return $this->container['accounting_period_to']; + } + + /** + * Sets accounting_period_to + * + * @param string $accounting_period_to accounting_period_to + * + * @return $this + */ + public function setAccountingPeriodTo($accounting_period_to) + { + $this->container['accounting_period_to'] = $accounting_period_to; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 状态 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e167ef606c3fd1d9ffb55c8d6793a4e254f1ccdc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:08 +0800 Subject: [PATCH 129/373] feat: update --- lib/Model/ConsoleAdminListMonthBillResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillResult.php diff --git a/lib/Model/ConsoleAdminListMonthBillResult.php b/lib/Model/ConsoleAdminListMonthBillResult.php new file mode 100644 index 000000000..11d628720 --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From df7c0d31c40e4194e46b449e5e602df5d891ea0e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:10 +0800 Subject: [PATCH 130/373] feat: update --- .../ConsoleAdminListMonthBillResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillResultModel.php diff --git a/lib/Model/ConsoleAdminListMonthBillResultModel.php b/lib/Model/ConsoleAdminListMonthBillResultModel.php new file mode 100644 index 000000000..c5401e0ad --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResultModel.php @@ -0,0 +1,347 @@ + 'int', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'page_size' => null, +'total_count' => 'int64', +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number 页码 + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size 没页数量 + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count 总数量 + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResultModelItems[] $items 列表 + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3d0c88d5611caf00b3ea9e3e9cfa80f03d414f7c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:11 +0800 Subject: [PATCH 131/373] feat: update --- ...soleAdminListMonthBillResultModelItems.php | 437 ++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/ConsoleAdminListMonthBillResultModelItems.php diff --git a/lib/Model/ConsoleAdminListMonthBillResultModelItems.php b/lib/Model/ConsoleAdminListMonthBillResultModelItems.php new file mode 100644 index 000000000..5d74a9268 --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResultModelItems.php @@ -0,0 +1,437 @@ + 'string', +'tenant_name' => 'string', +'tenant_id' => 'int', +'bill_status' => 'string', +'accounting_period' => 'string', +'bill_outgoing_time' => 'string', +'cash_pay_amount' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'latest_paid_time' => null, +'tenant_name' => null, +'tenant_id' => 'int64', +'bill_status' => null, +'accounting_period' => null, +'bill_outgoing_time' => null, +'cash_pay_amount' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'latest_paid_time' => 'latestPaidTime', +'tenant_name' => 'tenantName', +'tenant_id' => 'tenantId', +'bill_status' => 'billStatus', +'accounting_period' => 'accountingPeriod', +'bill_outgoing_time' => 'billOutgoingTime', +'cash_pay_amount' => 'cashPayAmount' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'latest_paid_time' => 'setLatestPaidTime', +'tenant_name' => 'setTenantName', +'tenant_id' => 'setTenantId', +'bill_status' => 'setBillStatus', +'accounting_period' => 'setAccountingPeriod', +'bill_outgoing_time' => 'setBillOutgoingTime', +'cash_pay_amount' => 'setCashPayAmount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'latest_paid_time' => 'getLatestPaidTime', +'tenant_name' => 'getTenantName', +'tenant_id' => 'getTenantId', +'bill_status' => 'getBillStatus', +'accounting_period' => 'getAccountingPeriod', +'bill_outgoing_time' => 'getBillOutgoingTime', +'cash_pay_amount' => 'getCashPayAmount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['latest_paid_time'] = isset($data['latest_paid_time']) ? $data['latest_paid_time'] : null; + $this->container['tenant_name'] = isset($data['tenant_name']) ? $data['tenant_name'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['bill_status'] = isset($data['bill_status']) ? $data['bill_status'] : null; + $this->container['accounting_period'] = isset($data['accounting_period']) ? $data['accounting_period'] : null; + $this->container['bill_outgoing_time'] = isset($data['bill_outgoing_time']) ? $data['bill_outgoing_time'] : null; + $this->container['cash_pay_amount'] = isset($data['cash_pay_amount']) ? $data['cash_pay_amount'] : null; + } + + + /** + * Gets latest_paid_time + * + * @return string + */ + public function getLatestPaidTime() + { + return $this->container['latest_paid_time']; + } + + /** + * Sets latest_paid_time + * + * @param string $latest_paid_time 到期还款日期 + * + * @return $this + */ + public function setLatestPaidTime($latest_paid_time) + { + $this->container['latest_paid_time'] = $latest_paid_time; + + return $this; + } + + /** + * Gets tenant_name + * + * @return string + */ + public function getTenantName() + { + return $this->container['tenant_name']; + } + + /** + * Sets tenant_name + * + * @param string $tenant_name 租户名称 + * + * @return $this + */ + public function setTenantName($tenant_name) + { + $this->container['tenant_name'] = $tenant_name; + + return $this; + } + + /** + * Gets tenant_id + * + * @return int + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param int $tenant_id 租户ID + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets bill_status + * + * @return string + */ + public function getBillStatus() + { + return $this->container['bill_status']; + } + + /** + * Sets bill_status + * + * @param string $bill_status 账单状态 + * + * @return $this + */ + public function setBillStatus($bill_status) + { + $this->container['bill_status'] = $bill_status; + + return $this; + } + + /** + * Gets accounting_period + * + * @return string + */ + public function getAccountingPeriod() + { + return $this->container['accounting_period']; + } + + /** + * Sets accounting_period + * + * @param string $accounting_period 账期 + * + * @return $this + */ + public function setAccountingPeriod($accounting_period) + { + $this->container['accounting_period'] = $accounting_period; + + return $this; + } + + /** + * Gets bill_outgoing_time + * + * @return string + */ + public function getBillOutgoingTime() + { + return $this->container['bill_outgoing_time']; + } + + /** + * Sets bill_outgoing_time + * + * @param string $bill_outgoing_time 已出账的日期 + * + * @return $this + */ + public function setBillOutgoingTime($bill_outgoing_time) + { + $this->container['bill_outgoing_time'] = $bill_outgoing_time; + + return $this; + } + + /** + * Gets cash_pay_amount + * + * @return int + */ + public function getCashPayAmount() + { + return $this->container['cash_pay_amount']; + } + + /** + * Sets cash_pay_amount + * + * @param int $cash_pay_amount 消费金额 + * + * @return $this + */ + public function setCashPayAmount($cash_pay_amount) + { + $this->container['cash_pay_amount'] = $cash_pay_amount; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e0a89a984cc4ea03d29f2c88eb28dcc3186e0448 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:13 +0800 Subject: [PATCH 132/373] feat: update --- lib/Model/ConsoleAdminListProjectsForms.php | 287 ++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsForms.php diff --git a/lib/Model/ConsoleAdminListProjectsForms.php b/lib/Model/ConsoleAdminListProjectsForms.php new file mode 100644 index 000000000..eab870198 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsForms.php @@ -0,0 +1,287 @@ + 'string', +'max_results' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b0b4caa47313b3ce2bf64326b185e45e7a9a41d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:14 +0800 Subject: [PATCH 133/373] feat: update --- lib/Model/ConsoleAdminListProjectsResult.php | 347 +++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsResult.php diff --git a/lib/Model/ConsoleAdminListProjectsResult.php b/lib/Model/ConsoleAdminListProjectsResult.php new file mode 100644 index 000000000..a4a77c16f --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a9f15d1bd6053abdd26e0c7fa1eb5cf0f9233534 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:16 +0800 Subject: [PATCH 134/373] feat: update --- .../ConsoleAdminListProjectsResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsResultModel.php diff --git a/lib/Model/ConsoleAdminListProjectsResultModel.php b/lib/Model/ConsoleAdminListProjectsResultModel.php new file mode 100644 index 000000000..f8e3115be --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_results' => null, +'next_token' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_results' => 'maxResults', +'next_token' => 'nextToken', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_results' => 'setMaxResults', +'next_token' => 'setNextToken', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_results' => 'getMaxResults', +'next_token' => 'getNextToken', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d8beb66679e9a84f6e6f44302222303f578256b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:18 +0800 Subject: [PATCH 135/373] feat: update --- ...leAdminListProjectsResultModelDataList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListProjectsResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListProjectsResultModelDataList.php b/lib/Model/ConsoleAdminListProjectsResultModelDataList.php new file mode 100644 index 000000000..c2e0ee120 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResultModelDataList.php @@ -0,0 +1,287 @@ + 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_name' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_name' => 'projectName', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_name' => 'setProjectName', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_name' => 'getProjectName', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_name'] = isset($data['project_name']) ? $data['project_name'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets project_name + * + * @return string + */ + public function getProjectName() + { + return $this->container['project_name']; + } + + /** + * Sets project_name + * + * @param string $project_name project_name + * + * @return $this + */ + public function setProjectName($project_name) + { + $this->container['project_name'] = $project_name; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d530d8c5843d2edad4b2d7f130a26105587dc2ce Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:19 +0800 Subject: [PATCH 136/373] feat: update --- ...leAdminListVersionDeployInstancesForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesForms.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesForms.php b/lib/Model/ConsoleAdminListVersionDeployInstancesForms.php new file mode 100644 index 000000000..70979e0a7 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesForms.php @@ -0,0 +1,347 @@ + 'string', +'game_id' => 'string', +'version_id' => 'string', +'deploy_status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null, +'version_id' => null, +'deploy_status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId', +'version_id' => 'versionId', +'deploy_status' => 'deployStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId', +'version_id' => 'setVersionId', +'deploy_status' => 'setDeployStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId', +'version_id' => 'getVersionId', +'deploy_status' => 'getDeployStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['deploy_status'] = isset($data['deploy_status']) ? $data['deploy_status'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets deploy_status + * + * @return string + */ + public function getDeployStatus() + { + return $this->container['deploy_status']; + } + + /** + * Sets deploy_status + * + * @param string $deploy_status deploy_status + * + * @return $this + */ + public function setDeployStatus($deploy_status) + { + $this->container['deploy_status'] = $deploy_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cafe16cf2cd9bb17597ba0dd9e06e46c596c786b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:21 +0800 Subject: [PATCH 137/373] feat: update --- ...eAdminListVersionDeployInstancesResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesResult.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php b/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php new file mode 100644 index 000000000..9edee5369 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 79a76ffabba4c7fe017a675671edf9624b474ccc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:22 +0800 Subject: [PATCH 138/373] feat: update --- ...nListVersionDeployInstancesResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php new file mode 100644 index 000000000..12ed40d3e --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[]', +'count' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'max_results' => null, +'data_list' => null, +'count' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'max_results' => 'maxResults', +'data_list' => 'dataList', +'count' => 'count' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'max_results' => 'setMaxResults', +'data_list' => 'setDataList', +'count' => 'setCount' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'max_results' => 'getMaxResults', +'data_list' => 'getDataList', +'count' => 'getCount' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['max_results'] = isset($data['max_results']) ? $data['max_results'] : null; + $this->container['data_list'] = isset($data['data_list']) ? $data['data_list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets max_results + * + * @return int + */ + public function getMaxResults() + { + return $this->container['max_results']; + } + + /** + * Sets max_results + * + * @param int $max_results max_results + * + * @return $this + */ + public function setMaxResults($max_results) + { + $this->container['max_results'] = $max_results; + + return $this; + } + + /** + * Gets data_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[] $data_list data_list + * + * @return $this + */ + public function setDataList($data_list) + { + $this->container['data_list'] = $data_list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ec35c511d6f5b4d282d488eb575b91aa76f57cf3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:23 +0800 Subject: [PATCH 139/373] feat: update --- ...sionDeployInstancesResultModelDataList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php diff --git a/lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php new file mode 100644 index 000000000..78a19152e --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModelDataList.php @@ -0,0 +1,287 @@ + 'string', +'cloud_game_instance_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'cloud_game_instance_id' => null, +'cloud_game_instance_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cloud_game_instance_id' => 'cloudGameInstanceId', +'cloud_game_instance_name' => 'cloudGameInstanceName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cloud_game_instance_id' => 'setCloudGameInstanceId', +'cloud_game_instance_name' => 'setCloudGameInstanceName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cloud_game_instance_id' => 'getCloudGameInstanceId', +'cloud_game_instance_name' => 'getCloudGameInstanceName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['cloud_game_instance_id'] = isset($data['cloud_game_instance_id']) ? $data['cloud_game_instance_id'] : null; + $this->container['cloud_game_instance_name'] = isset($data['cloud_game_instance_name']) ? $data['cloud_game_instance_name'] : null; + } + + + /** + * Gets cloud_game_instance_id + * + * @return string + */ + public function getCloudGameInstanceId() + { + return $this->container['cloud_game_instance_id']; + } + + /** + * Sets cloud_game_instance_id + * + * @param string $cloud_game_instance_id cloud_game_instance_id + * + * @return $this + */ + public function setCloudGameInstanceId($cloud_game_instance_id) + { + $this->container['cloud_game_instance_id'] = $cloud_game_instance_id; + + return $this; + } + + /** + * Gets cloud_game_instance_name + * + * @return string + */ + public function getCloudGameInstanceName() + { + return $this->container['cloud_game_instance_name']; + } + + /** + * Sets cloud_game_instance_name + * + * @param string $cloud_game_instance_name cloud_game_instance_name + * + * @return $this + */ + public function setCloudGameInstanceName($cloud_game_instance_name) + { + $this->container['cloud_game_instance_name'] = $cloud_game_instance_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d161ea30614d5d7fe2f350e4330408f06954019d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:25 +0800 Subject: [PATCH 140/373] feat: update --- ...eAdminQueryAdaptResultByVersionIdForms.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php diff --git a/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php new file mode 100644 index 000000000..148a9d1fd --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_version_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_version_id' => 'mixVersionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_version_id' => 'setMixVersionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_version_id' => 'getMixVersionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_version_id'] = isset($data['mix_version_id']) ? $data['mix_version_id'] : null; + } + + + /** + * Gets mix_version_id + * + * @return string + */ + public function getMixVersionId() + { + return $this->container['mix_version_id']; + } + + /** + * Sets mix_version_id + * + * @param string $mix_version_id mix_version_id + * + * @return $this + */ + public function setMixVersionId($mix_version_id) + { + $this->container['mix_version_id'] = $mix_version_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 228407fb35312cfcdbcdc4efdfb69904660f517c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:26 +0800 Subject: [PATCH 141/373] feat: update --- ...AdminQueryAdaptResultByVersionIdResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php diff --git a/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php new file mode 100644 index 000000000..5169f95c9 --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4da602bc1afc68ac6ffb366c4b946677c872624b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:27 +0800 Subject: [PATCH 142/373] feat: update --- ...QueryAdaptResultByVersionIdResultModel.php | 707 ++++++++++++++++++ 1 file changed, 707 insertions(+) create mode 100644 lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php diff --git a/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php new file mode 100644 index 000000000..3ecc1d029 --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResultModel.php @@ -0,0 +1,707 @@ + 'string', +'dict_frame_rate' => 'string', +'dict_machine_type_vm' => 'string', +'container_type' => 'int', +'sandbox' => 'int', +'platform_type' => 'int', +'priority' => 'int', +'resolution' => 'string', +'adapt_file_source' => 'string', +'required' => 'int', +'max_concurrency' => 'int', +'state' => 'int', +'pipeline_type' => 'int', +'dict_pic_quality' => 'string', +'dict_isv_name' => 'string', +'calculation_evaluation' => 'map[string,string]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'adapt_file_source_name' => null, +'dict_frame_rate' => null, +'dict_machine_type_vm' => null, +'container_type' => null, +'sandbox' => null, +'platform_type' => null, +'priority' => null, +'resolution' => null, +'adapt_file_source' => null, +'required' => null, +'max_concurrency' => null, +'state' => null, +'pipeline_type' => null, +'dict_pic_quality' => null, +'dict_isv_name' => null, +'calculation_evaluation' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'adapt_file_source_name' => 'adaptFileSourceName', +'dict_frame_rate' => 'dictFrameRate', +'dict_machine_type_vm' => 'dictMachineTypeVm', +'container_type' => 'containerType', +'sandbox' => 'sandbox', +'platform_type' => 'platformType', +'priority' => 'priority', +'resolution' => 'resolution', +'adapt_file_source' => 'adaptFileSource', +'required' => 'required', +'max_concurrency' => 'maxConcurrency', +'state' => 'state', +'pipeline_type' => 'pipelineType', +'dict_pic_quality' => 'dictPicQuality', +'dict_isv_name' => 'dictIsvName', +'calculation_evaluation' => 'calculationEvaluation' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'adapt_file_source_name' => 'setAdaptFileSourceName', +'dict_frame_rate' => 'setDictFrameRate', +'dict_machine_type_vm' => 'setDictMachineTypeVm', +'container_type' => 'setContainerType', +'sandbox' => 'setSandbox', +'platform_type' => 'setPlatformType', +'priority' => 'setPriority', +'resolution' => 'setResolution', +'adapt_file_source' => 'setAdaptFileSource', +'required' => 'setRequired', +'max_concurrency' => 'setMaxConcurrency', +'state' => 'setState', +'pipeline_type' => 'setPipelineType', +'dict_pic_quality' => 'setDictPicQuality', +'dict_isv_name' => 'setDictIsvName', +'calculation_evaluation' => 'setCalculationEvaluation' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'adapt_file_source_name' => 'getAdaptFileSourceName', +'dict_frame_rate' => 'getDictFrameRate', +'dict_machine_type_vm' => 'getDictMachineTypeVm', +'container_type' => 'getContainerType', +'sandbox' => 'getSandbox', +'platform_type' => 'getPlatformType', +'priority' => 'getPriority', +'resolution' => 'getResolution', +'adapt_file_source' => 'getAdaptFileSource', +'required' => 'getRequired', +'max_concurrency' => 'getMaxConcurrency', +'state' => 'getState', +'pipeline_type' => 'getPipelineType', +'dict_pic_quality' => 'getDictPicQuality', +'dict_isv_name' => 'getDictIsvName', +'calculation_evaluation' => 'getCalculationEvaluation' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['adapt_file_source_name'] = isset($data['adapt_file_source_name']) ? $data['adapt_file_source_name'] : null; + $this->container['dict_frame_rate'] = isset($data['dict_frame_rate']) ? $data['dict_frame_rate'] : null; + $this->container['dict_machine_type_vm'] = isset($data['dict_machine_type_vm']) ? $data['dict_machine_type_vm'] : null; + $this->container['container_type'] = isset($data['container_type']) ? $data['container_type'] : null; + $this->container['sandbox'] = isset($data['sandbox']) ? $data['sandbox'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + $this->container['priority'] = isset($data['priority']) ? $data['priority'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['adapt_file_source'] = isset($data['adapt_file_source']) ? $data['adapt_file_source'] : null; + $this->container['required'] = isset($data['required']) ? $data['required'] : null; + $this->container['max_concurrency'] = isset($data['max_concurrency']) ? $data['max_concurrency'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['pipeline_type'] = isset($data['pipeline_type']) ? $data['pipeline_type'] : null; + $this->container['dict_pic_quality'] = isset($data['dict_pic_quality']) ? $data['dict_pic_quality'] : null; + $this->container['dict_isv_name'] = isset($data['dict_isv_name']) ? $data['dict_isv_name'] : null; + $this->container['calculation_evaluation'] = isset($data['calculation_evaluation']) ? $data['calculation_evaluation'] : null; + } + + + /** + * Gets adapt_file_source_name + * + * @return string + */ + public function getAdaptFileSourceName() + { + return $this->container['adapt_file_source_name']; + } + + /** + * Sets adapt_file_source_name + * + * @param string $adapt_file_source_name adapt_file_source_name + * + * @return $this + */ + public function setAdaptFileSourceName($adapt_file_source_name) + { + $this->container['adapt_file_source_name'] = $adapt_file_source_name; + + return $this; + } + + /** + * Gets dict_frame_rate + * + * @return string + */ + public function getDictFrameRate() + { + return $this->container['dict_frame_rate']; + } + + /** + * Sets dict_frame_rate + * + * @param string $dict_frame_rate dict_frame_rate + * + * @return $this + */ + public function setDictFrameRate($dict_frame_rate) + { + $this->container['dict_frame_rate'] = $dict_frame_rate; + + return $this; + } + + /** + * Gets dict_machine_type_vm + * + * @return string + */ + public function getDictMachineTypeVm() + { + return $this->container['dict_machine_type_vm']; + } + + /** + * Sets dict_machine_type_vm + * + * @param string $dict_machine_type_vm dict_machine_type_vm + * + * @return $this + */ + public function setDictMachineTypeVm($dict_machine_type_vm) + { + $this->container['dict_machine_type_vm'] = $dict_machine_type_vm; + + return $this; + } + + /** + * Gets container_type + * + * @return int + */ + public function getContainerType() + { + return $this->container['container_type']; + } + + /** + * Sets container_type + * + * @param int $container_type container_type + * + * @return $this + */ + public function setContainerType($container_type) + { + $this->container['container_type'] = $container_type; + + return $this; + } + + /** + * Gets sandbox + * + * @return int + */ + public function getSandbox() + { + return $this->container['sandbox']; + } + + /** + * Sets sandbox + * + * @param int $sandbox sandbox + * + * @return $this + */ + public function setSandbox($sandbox) + { + $this->container['sandbox'] = $sandbox; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + + /** + * Gets priority + * + * @return int + */ + public function getPriority() + { + return $this->container['priority']; + } + + /** + * Sets priority + * + * @param int $priority priority + * + * @return $this + */ + public function setPriority($priority) + { + $this->container['priority'] = $priority; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets adapt_file_source + * + * @return string + */ + public function getAdaptFileSource() + { + return $this->container['adapt_file_source']; + } + + /** + * Sets adapt_file_source + * + * @param string $adapt_file_source adapt_file_source + * + * @return $this + */ + public function setAdaptFileSource($adapt_file_source) + { + $this->container['adapt_file_source'] = $adapt_file_source; + + return $this; + } + + /** + * Gets required + * + * @return int + */ + public function getRequired() + { + return $this->container['required']; + } + + /** + * Sets required + * + * @param int $required required + * + * @return $this + */ + public function setRequired($required) + { + $this->container['required'] = $required; + + return $this; + } + + /** + * Gets max_concurrency + * + * @return int + */ + public function getMaxConcurrency() + { + return $this->container['max_concurrency']; + } + + /** + * Sets max_concurrency + * + * @param int $max_concurrency max_concurrency + * + * @return $this + */ + public function setMaxConcurrency($max_concurrency) + { + $this->container['max_concurrency'] = $max_concurrency; + + return $this; + } + + /** + * Gets state + * + * @return int + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param int $state state + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets pipeline_type + * + * @return int + */ + public function getPipelineType() + { + return $this->container['pipeline_type']; + } + + /** + * Sets pipeline_type + * + * @param int $pipeline_type pipeline_type + * + * @return $this + */ + public function setPipelineType($pipeline_type) + { + $this->container['pipeline_type'] = $pipeline_type; + + return $this; + } + + /** + * Gets dict_pic_quality + * + * @return string + */ + public function getDictPicQuality() + { + return $this->container['dict_pic_quality']; + } + + /** + * Sets dict_pic_quality + * + * @param string $dict_pic_quality dict_pic_quality + * + * @return $this + */ + public function setDictPicQuality($dict_pic_quality) + { + $this->container['dict_pic_quality'] = $dict_pic_quality; + + return $this; + } + + /** + * Gets dict_isv_name + * + * @return string + */ + public function getDictIsvName() + { + return $this->container['dict_isv_name']; + } + + /** + * Sets dict_isv_name + * + * @param string $dict_isv_name dict_isv_name + * + * @return $this + */ + public function setDictIsvName($dict_isv_name) + { + $this->container['dict_isv_name'] = $dict_isv_name; + + return $this; + } + + /** + * Gets calculation_evaluation + * + * @return map[string,string] + */ + public function getCalculationEvaluation() + { + return $this->container['calculation_evaluation']; + } + + /** + * Sets calculation_evaluation + * + * @param map[string,string] $calculation_evaluation calculation_evaluation + * + * @return $this + */ + public function setCalculationEvaluation($calculation_evaluation) + { + $this->container['calculation_evaluation'] = $calculation_evaluation; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 09d3a8a3aba71bccd1d6750b89e78f4807fbc383 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:29 +0800 Subject: [PATCH 143/373] feat: update --- ...onsoleAdminRecommendSpecificationForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminRecommendSpecificationForms.php diff --git a/lib/Model/ConsoleAdminRecommendSpecificationForms.php b/lib/Model/ConsoleAdminRecommendSpecificationForms.php new file mode 100644 index 000000000..97cb467cd --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationForms.php @@ -0,0 +1,317 @@ + 'string', +'game_version_id' => 'string', +'platform_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'game_version_id' => null, +'platform_type' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'game_version_id' => 'gameVersionId', +'platform_type' => 'platformType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'game_version_id' => 'setGameVersionId', +'platform_type' => 'setPlatformType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'game_version_id' => 'getGameVersionId', +'platform_type' => 'getPlatformType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['game_version_id'] = isset($data['game_version_id']) ? $data['game_version_id'] : null; + $this->container['platform_type'] = isset($data['platform_type']) ? $data['platform_type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets game_version_id + * + * @return string + */ + public function getGameVersionId() + { + return $this->container['game_version_id']; + } + + /** + * Sets game_version_id + * + * @param string $game_version_id game_version_id + * + * @return $this + */ + public function setGameVersionId($game_version_id) + { + $this->container['game_version_id'] = $game_version_id; + + return $this; + } + + /** + * Gets platform_type + * + * @return int + */ + public function getPlatformType() + { + return $this->container['platform_type']; + } + + /** + * Sets platform_type + * + * @param int $platform_type platform_type + * + * @return $this + */ + public function setPlatformType($platform_type) + { + $this->container['platform_type'] = $platform_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fa9a064d1bfc175f0d09941d7dd0f91866fa7b80 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:30 +0800 Subject: [PATCH 144/373] feat: update --- ...nsoleAdminRecommendSpecificationResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRecommendSpecificationResult.php diff --git a/lib/Model/ConsoleAdminRecommendSpecificationResult.php b/lib/Model/ConsoleAdminRecommendSpecificationResult.php new file mode 100644 index 000000000..93b09d231 --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 04e1c8fa45906dab3e801839550a565242952352 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:32 +0800 Subject: [PATCH 145/373] feat: update --- ...AdminRecommendSpecificationResultModel.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRecommendSpecificationResultModel.php diff --git a/lib/Model/ConsoleAdminRecommendSpecificationResultModel.php b/lib/Model/ConsoleAdminRecommendSpecificationResultModel.php new file mode 100644 index 000000000..d809553e7 --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationResultModel.php @@ -0,0 +1,347 @@ + 'string', +'specification_value_code' => 'string', +'specification_name' => 'string', +'specification_attribute_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'specification_cn_name' => null, +'specification_value_code' => null, +'specification_name' => null, +'specification_attribute_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'specification_cn_name' => 'specificationCnName', +'specification_value_code' => 'specificationValueCode', +'specification_name' => 'specificationName', +'specification_attribute_code' => 'specificationAttributeCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'specification_cn_name' => 'setSpecificationCnName', +'specification_value_code' => 'setSpecificationValueCode', +'specification_name' => 'setSpecificationName', +'specification_attribute_code' => 'setSpecificationAttributeCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'specification_cn_name' => 'getSpecificationCnName', +'specification_value_code' => 'getSpecificationValueCode', +'specification_name' => 'getSpecificationName', +'specification_attribute_code' => 'getSpecificationAttributeCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['specification_cn_name'] = isset($data['specification_cn_name']) ? $data['specification_cn_name'] : null; + $this->container['specification_value_code'] = isset($data['specification_value_code']) ? $data['specification_value_code'] : null; + $this->container['specification_name'] = isset($data['specification_name']) ? $data['specification_name'] : null; + $this->container['specification_attribute_code'] = isset($data['specification_attribute_code']) ? $data['specification_attribute_code'] : null; + } + + + /** + * Gets specification_cn_name + * + * @return string + */ + public function getSpecificationCnName() + { + return $this->container['specification_cn_name']; + } + + /** + * Sets specification_cn_name + * + * @param string $specification_cn_name specification_cn_name + * + * @return $this + */ + public function setSpecificationCnName($specification_cn_name) + { + $this->container['specification_cn_name'] = $specification_cn_name; + + return $this; + } + + /** + * Gets specification_value_code + * + * @return string + */ + public function getSpecificationValueCode() + { + return $this->container['specification_value_code']; + } + + /** + * Sets specification_value_code + * + * @param string $specification_value_code specification_value_code + * + * @return $this + */ + public function setSpecificationValueCode($specification_value_code) + { + $this->container['specification_value_code'] = $specification_value_code; + + return $this; + } + + /** + * Gets specification_name + * + * @return string + */ + public function getSpecificationName() + { + return $this->container['specification_name']; + } + + /** + * Sets specification_name + * + * @param string $specification_name specification_name + * + * @return $this + */ + public function setSpecificationName($specification_name) + { + $this->container['specification_name'] = $specification_name; + + return $this; + } + + /** + * Gets specification_attribute_code + * + * @return string + */ + public function getSpecificationAttributeCode() + { + return $this->container['specification_attribute_code']; + } + + /** + * Sets specification_attribute_code + * + * @param string $specification_attribute_code specification_attribute_code + * + * @return $this + */ + public function setSpecificationAttributeCode($specification_attribute_code) + { + $this->container['specification_attribute_code'] = $specification_attribute_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b9671e228f1b073c3891e531e24b59da04b26172 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:33 +0800 Subject: [PATCH 146/373] feat: update --- ...ConsoleAdminRemoveGameFromProjectForms.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminRemoveGameFromProjectForms.php diff --git a/lib/Model/ConsoleAdminRemoveGameFromProjectForms.php b/lib/Model/ConsoleAdminRemoveGameFromProjectForms.php new file mode 100644 index 000000000..a77cba3c0 --- /dev/null +++ b/lib/Model/ConsoleAdminRemoveGameFromProjectForms.php @@ -0,0 +1,287 @@ + 'string', +'game_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'project_id' => null, +'game_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'project_id' => 'projectId', +'game_id' => 'gameId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'project_id' => 'setProjectId', +'game_id' => 'setGameId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'project_id' => 'getProjectId', +'game_id' => 'getGameId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + } + + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 535b5b3a11dfc576bd9a547b9f1b884b183350e0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:34 +0800 Subject: [PATCH 147/373] feat: update --- ...onsoleAdminRemoveGameFromProjectResult.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminRemoveGameFromProjectResult.php diff --git a/lib/Model/ConsoleAdminRemoveGameFromProjectResult.php b/lib/Model/ConsoleAdminRemoveGameFromProjectResult.php new file mode 100644 index 000000000..adcf25101 --- /dev/null +++ b/lib/Model/ConsoleAdminRemoveGameFromProjectResult.php @@ -0,0 +1,317 @@ + 'bool', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From dd3b2d066b38f86b955778a1876e4c143ca98a3c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:36 +0800 Subject: [PATCH 148/373] feat: update --- lib/Model/ConsoleAdminRtOverViewForms.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtOverViewForms.php diff --git a/lib/Model/ConsoleAdminRtOverViewForms.php b/lib/Model/ConsoleAdminRtOverViewForms.php new file mode 100644 index 000000000..7af83e8b4 --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewForms.php @@ -0,0 +1,347 @@ + 'string', +'project_ids' => 'string', +'query_time_start' => 'int', +'query_time_end' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mix_game_ids' => null, +'project_ids' => null, +'query_time_start' => 'int64', +'query_time_end' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mix_game_ids' => 'mixGameIds', +'project_ids' => 'projectIds', +'query_time_start' => 'queryTimeStart', +'query_time_end' => 'queryTimeEnd' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mix_game_ids' => 'setMixGameIds', +'project_ids' => 'setProjectIds', +'query_time_start' => 'setQueryTimeStart', +'query_time_end' => 'setQueryTimeEnd' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mix_game_ids' => 'getMixGameIds', +'project_ids' => 'getProjectIds', +'query_time_start' => 'getQueryTimeStart', +'query_time_end' => 'getQueryTimeEnd' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mix_game_ids'] = isset($data['mix_game_ids']) ? $data['mix_game_ids'] : null; + $this->container['project_ids'] = isset($data['project_ids']) ? $data['project_ids'] : null; + $this->container['query_time_start'] = isset($data['query_time_start']) ? $data['query_time_start'] : null; + $this->container['query_time_end'] = isset($data['query_time_end']) ? $data['query_time_end'] : null; + } + + + /** + * Gets mix_game_ids + * + * @return string + */ + public function getMixGameIds() + { + return $this->container['mix_game_ids']; + } + + /** + * Sets mix_game_ids + * + * @param string $mix_game_ids mix_game_ids + * + * @return $this + */ + public function setMixGameIds($mix_game_ids) + { + $this->container['mix_game_ids'] = $mix_game_ids; + + return $this; + } + + /** + * Gets project_ids + * + * @return string + */ + public function getProjectIds() + { + return $this->container['project_ids']; + } + + /** + * Sets project_ids + * + * @param string $project_ids project_ids + * + * @return $this + */ + public function setProjectIds($project_ids) + { + $this->container['project_ids'] = $project_ids; + + return $this; + } + + /** + * Gets query_time_start + * + * @return int + */ + public function getQueryTimeStart() + { + return $this->container['query_time_start']; + } + + /** + * Sets query_time_start + * + * @param int $query_time_start query_time_start + * + * @return $this + */ + public function setQueryTimeStart($query_time_start) + { + $this->container['query_time_start'] = $query_time_start; + + return $this; + } + + /** + * Gets query_time_end + * + * @return int + */ + public function getQueryTimeEnd() + { + return $this->container['query_time_end']; + } + + /** + * Sets query_time_end + * + * @param int $query_time_end query_time_end + * + * @return $this + */ + public function setQueryTimeEnd($query_time_end) + { + $this->container['query_time_end'] = $query_time_end; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2237ec5462720e8ab06e15bafe05a508598a7c68 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:37 +0800 Subject: [PATCH 149/373] feat: update --- lib/Model/ConsoleAdminRtOverViewResult.php | 347 +++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtOverViewResult.php diff --git a/lib/Model/ConsoleAdminRtOverViewResult.php b/lib/Model/ConsoleAdminRtOverViewResult.php new file mode 100644 index 000000000..2325c0863 --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResultModel[]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResultModel[] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 462f180a8cefc0eea1058bedde54947bb0c88b72 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:39 +0800 Subject: [PATCH 150/373] feat: update --- .../ConsoleAdminRtOverViewResultModel.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtOverViewResultModel.php diff --git a/lib/Model/ConsoleAdminRtOverViewResultModel.php b/lib/Model/ConsoleAdminRtOverViewResultModel.php new file mode 100644 index 000000000..6704a448b --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewResultModel.php @@ -0,0 +1,317 @@ + 'string', +'max_value' => 'string', +'name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'indicator_type' => null, +'max_value' => null, +'name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'indicator_type' => 'indicatorType', +'max_value' => 'maxValue', +'name' => 'name' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'indicator_type' => 'setIndicatorType', +'max_value' => 'setMaxValue', +'name' => 'setName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'indicator_type' => 'getIndicatorType', +'max_value' => 'getMaxValue', +'name' => 'getName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['indicator_type'] = isset($data['indicator_type']) ? $data['indicator_type'] : null; + $this->container['max_value'] = isset($data['max_value']) ? $data['max_value'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + + /** + * Gets indicator_type + * + * @return string + */ + public function getIndicatorType() + { + return $this->container['indicator_type']; + } + + /** + * Sets indicator_type + * + * @param string $indicator_type indicator_type + * + * @return $this + */ + public function setIndicatorType($indicator_type) + { + $this->container['indicator_type'] = $indicator_type; + + return $this; + } + + /** + * Gets max_value + * + * @return string + */ + public function getMaxValue() + { + return $this->container['max_value']; + } + + /** + * Sets max_value + * + * @param string $max_value max_value + * + * @return $this + */ + public function setMaxValue($max_value) + { + $this->container['max_value'] = $max_value; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b8ec939ff54e040cc8e8b7bd8b2a88d099346a67 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:40 +0800 Subject: [PATCH 151/373] feat: update --- lib/Model/ConsoleAdminRtTrendForms.php | 407 +++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendForms.php diff --git a/lib/Model/ConsoleAdminRtTrendForms.php b/lib/Model/ConsoleAdminRtTrendForms.php new file mode 100644 index 000000000..23d654a23 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendForms.php @@ -0,0 +1,407 @@ + 'string', +'indicator_types' => 'string', +'mix_game_ids' => 'string', +'project_ids' => 'string', +'query_time_start' => 'int', +'query_time_end' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'group_type' => null, +'indicator_types' => null, +'mix_game_ids' => null, +'project_ids' => null, +'query_time_start' => 'int64', +'query_time_end' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'group_type' => 'groupType', +'indicator_types' => 'indicatorTypes', +'mix_game_ids' => 'mixGameIds', +'project_ids' => 'projectIds', +'query_time_start' => 'queryTimeStart', +'query_time_end' => 'queryTimeEnd' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'group_type' => 'setGroupType', +'indicator_types' => 'setIndicatorTypes', +'mix_game_ids' => 'setMixGameIds', +'project_ids' => 'setProjectIds', +'query_time_start' => 'setQueryTimeStart', +'query_time_end' => 'setQueryTimeEnd' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'group_type' => 'getGroupType', +'indicator_types' => 'getIndicatorTypes', +'mix_game_ids' => 'getMixGameIds', +'project_ids' => 'getProjectIds', +'query_time_start' => 'getQueryTimeStart', +'query_time_end' => 'getQueryTimeEnd' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['group_type'] = isset($data['group_type']) ? $data['group_type'] : null; + $this->container['indicator_types'] = isset($data['indicator_types']) ? $data['indicator_types'] : null; + $this->container['mix_game_ids'] = isset($data['mix_game_ids']) ? $data['mix_game_ids'] : null; + $this->container['project_ids'] = isset($data['project_ids']) ? $data['project_ids'] : null; + $this->container['query_time_start'] = isset($data['query_time_start']) ? $data['query_time_start'] : null; + $this->container['query_time_end'] = isset($data['query_time_end']) ? $data['query_time_end'] : null; + } + + + /** + * Gets group_type + * + * @return string + */ + public function getGroupType() + { + return $this->container['group_type']; + } + + /** + * Sets group_type + * + * @param string $group_type group_type + * + * @return $this + */ + public function setGroupType($group_type) + { + $this->container['group_type'] = $group_type; + + return $this; + } + + /** + * Gets indicator_types + * + * @return string + */ + public function getIndicatorTypes() + { + return $this->container['indicator_types']; + } + + /** + * Sets indicator_types + * + * @param string $indicator_types indicator_types + * + * @return $this + */ + public function setIndicatorTypes($indicator_types) + { + $this->container['indicator_types'] = $indicator_types; + + return $this; + } + + /** + * Gets mix_game_ids + * + * @return string + */ + public function getMixGameIds() + { + return $this->container['mix_game_ids']; + } + + /** + * Sets mix_game_ids + * + * @param string $mix_game_ids mix_game_ids + * + * @return $this + */ + public function setMixGameIds($mix_game_ids) + { + $this->container['mix_game_ids'] = $mix_game_ids; + + return $this; + } + + /** + * Gets project_ids + * + * @return string + */ + public function getProjectIds() + { + return $this->container['project_ids']; + } + + /** + * Sets project_ids + * + * @param string $project_ids project_ids + * + * @return $this + */ + public function setProjectIds($project_ids) + { + $this->container['project_ids'] = $project_ids; + + return $this; + } + + /** + * Gets query_time_start + * + * @return int + */ + public function getQueryTimeStart() + { + return $this->container['query_time_start']; + } + + /** + * Sets query_time_start + * + * @param int $query_time_start query_time_start + * + * @return $this + */ + public function setQueryTimeStart($query_time_start) + { + $this->container['query_time_start'] = $query_time_start; + + return $this; + } + + /** + * Gets query_time_end + * + * @return int + */ + public function getQueryTimeEnd() + { + return $this->container['query_time_end']; + } + + /** + * Sets query_time_end + * + * @param int $query_time_end query_time_end + * + * @return $this + */ + public function setQueryTimeEnd($query_time_end) + { + $this->container['query_time_end'] = $query_time_end; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2da7ae2c40af2ff5cd8850b4770da59278704075 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:42 +0800 Subject: [PATCH 152/373] feat: update --- lib/Model/ConsoleAdminRtTrendResult.php | 347 ++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResult.php diff --git a/lib/Model/ConsoleAdminRtTrendResult.php b/lib/Model/ConsoleAdminRtTrendResult.php new file mode 100644 index 000000000..700d815a2 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6e7ae49a1a270ae594dba4c7b4ef2e584abc8856 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:43 +0800 Subject: [PATCH 153/373] feat: update --- lib/Model/ConsoleAdminRtTrendResultModel.php | 287 +++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResultModel.php diff --git a/lib/Model/ConsoleAdminRtTrendResultModel.php b/lib/Model/ConsoleAdminRtTrendResultModel.php new file mode 100644 index 000000000..d0c67890a --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModel.php @@ -0,0 +1,287 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelData[]', +'max_value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null, +'max_value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data', +'max_value' => 'maxValue' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData', +'max_value' => 'setMaxValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData', +'max_value' => 'getMaxValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['max_value'] = isset($data['max_value']) ? $data['max_value'] : null; + } + + + /** + * Gets data + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelData[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelData[] $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets max_value + * + * @return string + */ + public function getMaxValue() + { + return $this->container['max_value']; + } + + /** + * Sets max_value + * + * @param string $max_value max_value + * + * @return $this + */ + public function setMaxValue($max_value) + { + $this->container['max_value'] = $max_value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5f0a76ea98b191ab530b9e046a46e940fb9cb691 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:45 +0800 Subject: [PATCH 154/373] feat: update --- .../ConsoleAdminRtTrendResultModelData.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResultModelData.php diff --git a/lib/Model/ConsoleAdminRtTrendResultModelData.php b/lib/Model/ConsoleAdminRtTrendResultModelData.php new file mode 100644 index 000000000..1f9b127fa --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModelData.php @@ -0,0 +1,347 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelDataData[]', +'indicator_type' => 'string', +'max_value' => 'string', +'name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null, +'indicator_type' => null, +'max_value' => null, +'name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data', +'indicator_type' => 'indicatorType', +'max_value' => 'maxValue', +'name' => 'name' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData', +'indicator_type' => 'setIndicatorType', +'max_value' => 'setMaxValue', +'name' => 'setName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData', +'indicator_type' => 'getIndicatorType', +'max_value' => 'getMaxValue', +'name' => 'getName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['indicator_type'] = isset($data['indicator_type']) ? $data['indicator_type'] : null; + $this->container['max_value'] = isset($data['max_value']) ? $data['max_value'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + + + /** + * Gets data + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelDataData[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResultModelDataData[] $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets indicator_type + * + * @return string + */ + public function getIndicatorType() + { + return $this->container['indicator_type']; + } + + /** + * Sets indicator_type + * + * @param string $indicator_type indicator_type + * + * @return $this + */ + public function setIndicatorType($indicator_type) + { + $this->container['indicator_type'] = $indicator_type; + + return $this; + } + + /** + * Gets max_value + * + * @return string + */ + public function getMaxValue() + { + return $this->container['max_value']; + } + + /** + * Sets max_value + * + * @param string $max_value max_value + * + * @return $this + */ + public function setMaxValue($max_value) + { + $this->container['max_value'] = $max_value; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 73cb57b1c0aa2ae6727e32c51ca95a55a3cf5247 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:46 +0800 Subject: [PATCH 155/373] feat: update --- ...ConsoleAdminRtTrendResultModelDataData.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminRtTrendResultModelDataData.php diff --git a/lib/Model/ConsoleAdminRtTrendResultModelDataData.php b/lib/Model/ConsoleAdminRtTrendResultModelDataData.php new file mode 100644 index 000000000..66b36f45c --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModelDataData.php @@ -0,0 +1,287 @@ + 'int', +'value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'time_stamp' => 'int64', +'value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'time_stamp' => 'timeStamp', +'value' => 'value' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'time_stamp' => 'setTimeStamp', +'value' => 'setValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'time_stamp' => 'getTimeStamp', +'value' => 'getValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['time_stamp'] = isset($data['time_stamp']) ? $data['time_stamp'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + + /** + * Gets time_stamp + * + * @return int + */ + public function getTimeStamp() + { + return $this->container['time_stamp']; + } + + /** + * Sets time_stamp + * + * @param int $time_stamp time_stamp + * + * @return $this + */ + public function setTimeStamp($time_stamp) + { + $this->container['time_stamp'] = $time_stamp; + + return $this; + } + + /** + * Gets value + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value value + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5f7a1bebad33ba37a2d7068bb5fd309711509fc1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:47 +0800 Subject: [PATCH 156/373] feat: update --- .../ConsoleAdminSubmitDeploymentForms.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitDeploymentForms.php diff --git a/lib/Model/ConsoleAdminSubmitDeploymentForms.php b/lib/Model/ConsoleAdminSubmitDeploymentForms.php new file mode 100644 index 000000000..89cd8500b --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentForms.php @@ -0,0 +1,377 @@ + 'string', +'project_id' => 'string', +'version_id' => 'string', +'cloud_game_instance_ids' => 'string', +'operation_type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'project_id' => null, +'version_id' => null, +'cloud_game_instance_ids' => null, +'operation_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'project_id' => 'projectId', +'version_id' => 'versionId', +'cloud_game_instance_ids' => 'cloudGameInstanceIds', +'operation_type' => 'operationType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'project_id' => 'setProjectId', +'version_id' => 'setVersionId', +'cloud_game_instance_ids' => 'setCloudGameInstanceIds', +'operation_type' => 'setOperationType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'project_id' => 'getProjectId', +'version_id' => 'getVersionId', +'cloud_game_instance_ids' => 'getCloudGameInstanceIds', +'operation_type' => 'getOperationType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['version_id'] = isset($data['version_id']) ? $data['version_id'] : null; + $this->container['cloud_game_instance_ids'] = isset($data['cloud_game_instance_ids']) ? $data['cloud_game_instance_ids'] : null; + $this->container['operation_type'] = isset($data['operation_type']) ? $data['operation_type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets version_id + * + * @return string + */ + public function getVersionId() + { + return $this->container['version_id']; + } + + /** + * Sets version_id + * + * @param string $version_id version_id + * + * @return $this + */ + public function setVersionId($version_id) + { + $this->container['version_id'] = $version_id; + + return $this; + } + + /** + * Gets cloud_game_instance_ids + * + * @return string + */ + public function getCloudGameInstanceIds() + { + return $this->container['cloud_game_instance_ids']; + } + + /** + * Sets cloud_game_instance_ids + * + * @param string $cloud_game_instance_ids cloud_game_instance_ids + * + * @return $this + */ + public function setCloudGameInstanceIds($cloud_game_instance_ids) + { + $this->container['cloud_game_instance_ids'] = $cloud_game_instance_ids; + + return $this; + } + + /** + * Gets operation_type + * + * @return string + */ + public function getOperationType() + { + return $this->container['operation_type']; + } + + /** + * Sets operation_type + * + * @param string $operation_type operation_type + * + * @return $this + */ + public function setOperationType($operation_type) + { + $this->container['operation_type'] = $operation_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3330fd4f8bf191ababa1fbeec0a32903441752d4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:48 +0800 Subject: [PATCH 157/373] feat: update --- .../ConsoleAdminSubmitDeploymentResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitDeploymentResult.php diff --git a/lib/Model/ConsoleAdminSubmitDeploymentResult.php b/lib/Model/ConsoleAdminSubmitDeploymentResult.php new file mode 100644 index 000000000..ed81b7d7a --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 1fd62c326f1e02ae93cd7f7fed611e632ea5df4c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:50 +0800 Subject: [PATCH 158/373] feat: update --- ...onsoleAdminSubmitDeploymentResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitDeploymentResultModel.php diff --git a/lib/Model/ConsoleAdminSubmitDeploymentResultModel.php b/lib/Model/ConsoleAdminSubmitDeploymentResultModel.php new file mode 100644 index 000000000..764ef1409 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f1825112d17d3dc69cbce354b3bc0bc0898aa85a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:51 +0800 Subject: [PATCH 159/373] feat: update --- lib/Model/ConsoleAdminSubmitRefundForms.php | 407 ++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitRefundForms.php diff --git a/lib/Model/ConsoleAdminSubmitRefundForms.php b/lib/Model/ConsoleAdminSubmitRefundForms.php new file mode 100644 index 000000000..2a5b6dcfd --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundForms.php @@ -0,0 +1,407 @@ + 'string', +'instance_id' => 'string', +'refund_type' => 'string', +'refund_reason' => 'string', +'refund_reason_type' => 'string', +'target_expire_time' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'commodity_code' => null, +'instance_id' => null, +'refund_type' => null, +'refund_reason' => null, +'refund_reason_type' => null, +'target_expire_time' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'commodity_code' => 'commodityCode', +'instance_id' => 'instanceId', +'refund_type' => 'refundType', +'refund_reason' => 'refundReason', +'refund_reason_type' => 'refundReasonType', +'target_expire_time' => 'targetExpireTime' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'commodity_code' => 'setCommodityCode', +'instance_id' => 'setInstanceId', +'refund_type' => 'setRefundType', +'refund_reason' => 'setRefundReason', +'refund_reason_type' => 'setRefundReasonType', +'target_expire_time' => 'setTargetExpireTime' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'commodity_code' => 'getCommodityCode', +'instance_id' => 'getInstanceId', +'refund_type' => 'getRefundType', +'refund_reason' => 'getRefundReason', +'refund_reason_type' => 'getRefundReasonType', +'target_expire_time' => 'getTargetExpireTime' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['commodity_code'] = isset($data['commodity_code']) ? $data['commodity_code'] : null; + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['refund_type'] = isset($data['refund_type']) ? $data['refund_type'] : null; + $this->container['refund_reason'] = isset($data['refund_reason']) ? $data['refund_reason'] : null; + $this->container['refund_reason_type'] = isset($data['refund_reason_type']) ? $data['refund_reason_type'] : null; + $this->container['target_expire_time'] = isset($data['target_expire_time']) ? $data['target_expire_time'] : null; + } + + + /** + * Gets commodity_code + * + * @return string + */ + public function getCommodityCode() + { + return $this->container['commodity_code']; + } + + /** + * Sets commodity_code + * + * @param string $commodity_code 商品编码 + * + * @return $this + */ + public function setCommodityCode($commodity_code) + { + $this->container['commodity_code'] = $commodity_code; + + return $this; + } + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例ID + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets refund_type + * + * @return string + */ + public function getRefundType() + { + return $this->container['refund_type']; + } + + /** + * Sets refund_type + * + * @param string $refund_type 退订类型 + * + * @return $this + */ + public function setRefundType($refund_type) + { + $this->container['refund_type'] = $refund_type; + + return $this; + } + + /** + * Gets refund_reason + * + * @return string + */ + public function getRefundReason() + { + return $this->container['refund_reason']; + } + + /** + * Sets refund_reason + * + * @param string $refund_reason 退订理由 + * + * @return $this + */ + public function setRefundReason($refund_reason) + { + $this->container['refund_reason'] = $refund_reason; + + return $this; + } + + /** + * Gets refund_reason_type + * + * @return string + */ + public function getRefundReasonType() + { + return $this->container['refund_reason_type']; + } + + /** + * Sets refund_reason_type + * + * @param string $refund_reason_type 退订理由类型 + * + * @return $this + */ + public function setRefundReasonType($refund_reason_type) + { + $this->container['refund_reason_type'] = $refund_reason_type; + + return $this; + } + + /** + * Gets target_expire_time + * + * @return string + */ + public function getTargetExpireTime() + { + return $this->container['target_expire_time']; + } + + /** + * Sets target_expire_time + * + * @param string $target_expire_time 退订后的过期时间 退续费场景使用 + * + * @return $this + */ + public function setTargetExpireTime($target_expire_time) + { + $this->container['target_expire_time'] = $target_expire_time; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4ce40fc0da5afcc7da1202754efd8c2b7449af7e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:53 +0800 Subject: [PATCH 160/373] feat: update --- lib/Model/ConsoleAdminSubmitRefundResult.php | 347 +++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitRefundResult.php diff --git a/lib/Model/ConsoleAdminSubmitRefundResult.php b/lib/Model/ConsoleAdminSubmitRefundResult.php new file mode 100644 index 000000000..776c11f22 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 38b2f7f0ea6271039d7512c00d6479e6c4416549 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:54 +0800 Subject: [PATCH 161/373] feat: update --- .../ConsoleAdminSubmitRefundResultModel.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminSubmitRefundResultModel.php diff --git a/lib/Model/ConsoleAdminSubmitRefundResultModel.php b/lib/Model/ConsoleAdminSubmitRefundResultModel.php new file mode 100644 index 000000000..ed480d20a --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundResultModel.php @@ -0,0 +1,287 @@ + 'string', +'submit_success' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'refund_order_id' => null, +'submit_success' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'refund_order_id' => 'refundOrderId', +'submit_success' => 'submitSuccess' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'refund_order_id' => 'setRefundOrderId', +'submit_success' => 'setSubmitSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'refund_order_id' => 'getRefundOrderId', +'submit_success' => 'getSubmitSuccess' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['refund_order_id'] = isset($data['refund_order_id']) ? $data['refund_order_id'] : null; + $this->container['submit_success'] = isset($data['submit_success']) ? $data['submit_success'] : null; + } + + + /** + * Gets refund_order_id + * + * @return string + */ + public function getRefundOrderId() + { + return $this->container['refund_order_id']; + } + + /** + * Sets refund_order_id + * + * @param string $refund_order_id refundOrderId + * + * @return $this + */ + public function setRefundOrderId($refund_order_id) + { + $this->container['refund_order_id'] = $refund_order_id; + + return $this; + } + + /** + * Gets submit_success + * + * @return bool + */ + public function getSubmitSuccess() + { + return $this->container['submit_success']; + } + + /** + * Sets submit_success + * + * @param bool $submit_success 是否提交成功 + * + * @return $this + */ + public function setSubmitSuccess($submit_success) + { + $this->container['submit_success'] = $submit_success; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ba8912fb8724edf19ae6e01c6bfc9654fc0ccc08 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:55 +0800 Subject: [PATCH 162/373] feat: update --- ...eAdminUploadGameVersionByDownloadForms.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php new file mode 100644 index 000000000..2496de400 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'download_type' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType', +'version_name' => 'string', +'os_manifest' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'hash' => null, +'game_id' => null, +'download_type' => null, +'version_name' => null, +'os_manifest' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'hash' => 'hash', +'game_id' => 'gameId', +'download_type' => 'downloadType', +'version_name' => 'versionName', +'os_manifest' => 'osManifest' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'hash' => 'setHash', +'game_id' => 'setGameId', +'download_type' => 'setDownloadType', +'version_name' => 'setVersionName', +'os_manifest' => 'setOsManifest' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'hash' => 'getHash', +'game_id' => 'getGameId', +'download_type' => 'getDownloadType', +'version_name' => 'getVersionName', +'os_manifest' => 'getOsManifest' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hash'] = isset($data['hash']) ? $data['hash'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['download_type'] = isset($data['download_type']) ? $data['download_type'] : null; + $this->container['version_name'] = isset($data['version_name']) ? $data['version_name'] : null; + $this->container['os_manifest'] = isset($data['os_manifest']) ? $data['os_manifest'] : null; + } + + + /** + * Gets hash + * + * @return string + */ + public function getHash() + { + return $this->container['hash']; + } + + /** + * Sets hash + * + * @param string $hash hash + * + * @return $this + */ + public function setHash($hash) + { + $this->container['hash'] = $hash; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets download_type + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType + */ + public function getDownloadType() + { + return $this->container['download_type']; + } + + /** + * Sets download_type + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType $download_type download_type + * + * @return $this + */ + public function setDownloadType($download_type) + { + $this->container['download_type'] = $download_type; + + return $this; + } + + /** + * Gets version_name + * + * @return string + */ + public function getVersionName() + { + return $this->container['version_name']; + } + + /** + * Sets version_name + * + * @param string $version_name version_name + * + * @return $this + */ + public function setVersionName($version_name) + { + $this->container['version_name'] = $version_name; + + return $this; + } + + /** + * Gets os_manifest + * + * @return string + */ + public function getOsManifest() + { + return $this->container['os_manifest']; + } + + /** + * Sets os_manifest + * + * @param string $os_manifest os_manifest + * + * @return $this + */ + public function setOsManifest($os_manifest) + { + $this->container['os_manifest'] = $os_manifest; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 86547af2d0f079e8161a8761d8071e06a0be6fda Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:57 +0800 Subject: [PATCH 163/373] feat: update --- ...GameVersionByDownloadFormsDownloadType.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php new file mode 100644 index 000000000..a77cb6761 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadFormsDownloadType.php @@ -0,0 +1,287 @@ + 'string', +'type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_url' => null, +'type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_url' => 'gameUrl', +'type' => 'type' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_url' => 'setGameUrl', +'type' => 'setType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_url' => 'getGameUrl', +'type' => 'getType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_url'] = isset($data['game_url']) ? $data['game_url'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + + /** + * Gets game_url + * + * @return string + */ + public function getGameUrl() + { + return $this->container['game_url']; + } + + /** + * Sets game_url + * + * @param string $game_url game_url + * + * @return $this + */ + public function setGameUrl($game_url) + { + $this->container['game_url'] = $game_url; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b6e2b427ada23e249b2fad2cbe1e7e6ecb899bf9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:58 +0800 Subject: [PATCH 164/373] feat: update --- ...AdminUploadGameVersionByDownloadResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php new file mode 100644 index 000000000..bb76f4f1c --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8e91c1a404380a1d094f8ac98d3439d2c9800846 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:13:59 +0800 Subject: [PATCH 165/373] feat: update --- ...UploadGameVersionByDownloadResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php diff --git a/lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php new file mode 100644 index 000000000..660894431 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'task_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + } + + + /** + * Gets task_id + * + * @return string + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string $task_id task_id + * + * @return $this + */ + public function setTaskId($task_id) + { + $this->container['task_id'] = $task_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7326575d30e83aa207acf25b9b3dd5849611617c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:01 +0800 Subject: [PATCH 166/373] feat: update --- lib/Model/GameNotifyForms.php | 347 ++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GameNotifyForms.php diff --git a/lib/Model/GameNotifyForms.php b/lib/Model/GameNotifyForms.php new file mode 100644 index 000000000..c1f9fa855 --- /dev/null +++ b/lib/Model/GameNotifyForms.php @@ -0,0 +1,347 @@ + 'string', +'game_session' => 'string', +'type' => 'string', +'value' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'type' => null, +'value' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'type' => 'type', +'value' => 'value' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'type' => 'setType', +'value' => 'setValue' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'type' => 'getType', +'value' => 'getValue' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['value'] = isset($data['value']) ? $data['value'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key appKey + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets value + * + * @return string + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string $value value + * + * @return $this + */ + public function setValue($value) + { + $this->container['value'] = $value; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a5e94dbc7beb49e0d72f0aac9fdb10b89f6e62e9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:02 +0800 Subject: [PATCH 167/373] feat: update --- lib/Model/GameNotifyResult.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GameNotifyResult.php diff --git a/lib/Model/GameNotifyResult.php b/lib/Model/GameNotifyResult.php new file mode 100644 index 000000000..419aed99e --- /dev/null +++ b/lib/Model/GameNotifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 369a077d670fbb3a8bac677fcc688be72e04b30c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:03 +0800 Subject: [PATCH 168/373] feat: update --- lib/Model/GameNotifyResultModel.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GameNotifyResultModel.php diff --git a/lib/Model/GameNotifyResultModel.php b/lib/Model/GameNotifyResultModel.php new file mode 100644 index 000000000..0cc187f27 --- /dev/null +++ b/lib/Model/GameNotifyResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e794d59e230dc090db52aa43fa8ea95ac3d30970 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:05 +0800 Subject: [PATCH 169/373] feat: update --- lib/Model/GetGameConcurrencyForms.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyForms.php diff --git a/lib/Model/GetGameConcurrencyForms.php b/lib/Model/GetGameConcurrencyForms.php new file mode 100644 index 000000000..3635ee35b --- /dev/null +++ b/lib/Model/GetGameConcurrencyForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'query_queue_concurrency' => 'bool', +'queue_user_level' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null, +'query_queue_concurrency' => null, +'queue_user_level' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey', +'query_queue_concurrency' => 'queryQueueConcurrency', +'queue_user_level' => 'queueUserLevel' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'query_queue_concurrency' => 'setQueryQueueConcurrency', +'queue_user_level' => 'setQueueUserLevel' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'query_queue_concurrency' => 'getQueryQueueConcurrency', +'queue_user_level' => 'getQueueUserLevel' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['query_queue_concurrency'] = isset($data['query_queue_concurrency']) ? $data['query_queue_concurrency'] : null; + $this->container['queue_user_level'] = isset($data['queue_user_level']) ? $data['queue_user_level'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id 游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 云游戏项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets query_queue_concurrency + * + * @return bool + */ + public function getQueryQueueConcurrency() + { + return $this->container['query_queue_concurrency']; + } + + /** + * Sets query_queue_concurrency + * + * @param bool $query_queue_concurrency 是否查询PaaS当前排队人数 + * + * @return $this + */ + public function setQueryQueueConcurrency($query_queue_concurrency) + { + $this->container['query_queue_concurrency'] = $query_queue_concurrency; + + return $this; + } + + /** + * Gets queue_user_level + * + * @return int + */ + public function getQueueUserLevel() + { + return $this->container['queue_user_level']; + } + + /** + * Sets queue_user_level + * + * @param int $queue_user_level 指定userLevel查询当前userLevel排队人数,不指定时,查询当前所有排队人数 + * + * @return $this + */ + public function setQueueUserLevel($queue_user_level) + { + $this->container['queue_user_level'] = $queue_user_level; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b5fe3f92dd2e1ea65332c035779f394a9e14477c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:06 +0800 Subject: [PATCH 170/373] feat: update --- lib/Model/GetGameConcurrencyResult.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyResult.php diff --git a/lib/Model/GetGameConcurrencyResult.php b/lib/Model/GetGameConcurrencyResult.php new file mode 100644 index 000000000..cb687c9cb --- /dev/null +++ b/lib/Model/GetGameConcurrencyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 51b432e9d5f483c2ee705cdf105dd4a80e478565 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:08 +0800 Subject: [PATCH 171/373] feat: update --- lib/Model/GetGameConcurrencyResultModel.php | 497 ++++++++++++++++++++ 1 file changed, 497 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyResultModel.php diff --git a/lib/Model/GetGameConcurrencyResultModel.php b/lib/Model/GetGameConcurrencyResultModel.php new file mode 100644 index 000000000..c86a14f27 --- /dev/null +++ b/lib/Model/GetGameConcurrencyResultModel.php @@ -0,0 +1,497 @@ + 'string', +'current_time' => 'int', +'playing_region_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModelPlayingRegionList[]', +'code' => 'string', +'playing_total' => 'int', +'success' => 'bool', +'queuing_total' => 'int', +'message' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'current_time' => 'int64', +'playing_region_list' => null, +'code' => null, +'playing_total' => 'int64', +'success' => null, +'queuing_total' => 'int64', +'message' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'current_time' => 'currentTime', +'playing_region_list' => 'playingRegionList', +'code' => 'code', +'playing_total' => 'playingTotal', +'success' => 'success', +'queuing_total' => 'queuingTotal', +'message' => 'message', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'current_time' => 'setCurrentTime', +'playing_region_list' => 'setPlayingRegionList', +'code' => 'setCode', +'playing_total' => 'setPlayingTotal', +'success' => 'setSuccess', +'queuing_total' => 'setQueuingTotal', +'message' => 'setMessage', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'current_time' => 'getCurrentTime', +'playing_region_list' => 'getPlayingRegionList', +'code' => 'getCode', +'playing_total' => 'getPlayingTotal', +'success' => 'getSuccess', +'queuing_total' => 'getQueuingTotal', +'message' => 'getMessage', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['current_time'] = isset($data['current_time']) ? $data['current_time'] : null; + $this->container['playing_region_list'] = isset($data['playing_region_list']) ? $data['playing_region_list'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['playing_total'] = isset($data['playing_total']) ? $data['playing_total'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['queuing_total'] = isset($data['queuing_total']) ? $data['queuing_total'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets current_time + * + * @return int + */ + public function getCurrentTime() + { + return $this->container['current_time']; + } + + /** + * Sets current_time + * + * @param int $current_time 当前毫秒时间戳 + * + * @return $this + */ + public function setCurrentTime($current_time) + { + $this->container['current_time'] = $current_time; + + return $this; + } + + /** + * Gets playing_region_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModelPlayingRegionList[] + */ + public function getPlayingRegionList() + { + return $this->container['playing_region_list']; + } + + /** + * Sets playing_region_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResultModelPlayingRegionList[] $playing_region_list 当前游戏region维度游戏中人数统计 + * + * @return $this + */ + public function setPlayingRegionList($playing_region_list) + { + $this->container['playing_region_list'] = $playing_region_list; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets playing_total + * + * @return int + */ + public function getPlayingTotal() + { + return $this->container['playing_total']; + } + + /** + * Sets playing_total + * + * @param int $playing_total 当前游戏中人数 + * + * @return $this + */ + public function setPlayingTotal($playing_total) + { + $this->container['playing_total'] = $playing_total; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 查询结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets queuing_total + * + * @return int + */ + public function getQueuingTotal() + { + return $this->container['queuing_total']; + } + + /** + * Sets queuing_total + * + * @param int $queuing_total 当前排队人数 + * + * @return $this + */ + public function setQueuingTotal($queuing_total) + { + $this->container['queuing_total'] = $queuing_total; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 游戏归属的项目Id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ed968303081a1f2a70047f14153928bdc04f71ed Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:09 +0800 Subject: [PATCH 172/373] feat: update --- ...oncurrencyResultModelPlayingRegionList.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php diff --git a/lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php b/lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php new file mode 100644 index 000000000..8b49deabf --- /dev/null +++ b/lib/Model/GetGameConcurrencyResultModelPlayingRegionList.php @@ -0,0 +1,287 @@ + 'int', +'region_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'ccu' => 'int64', +'region_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'ccu' => 'ccu', +'region_id' => 'regionId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'ccu' => 'setCcu', +'region_id' => 'setRegionId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'ccu' => 'getCcu', +'region_id' => 'getRegionId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['ccu'] = isset($data['ccu']) ? $data['ccu'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + } + + + /** + * Gets ccu + * + * @return int + */ + public function getCcu() + { + return $this->container['ccu']; + } + + /** + * Sets ccu + * + * @param int $ccu 当前游戏指定region游戏中人数 + * + * @return $this + */ + public function setCcu($ccu) + { + $this->container['ccu'] = $ccu; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 当前统计的regionId + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c911358122a0b741a3989fc2b6f8bc859b318b27 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:11 +0800 Subject: [PATCH 173/373] feat: update --- lib/Model/GetPairResult.php | 377 ++++++++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/GetPairResult.php diff --git a/lib/Model/GetPairResult.php b/lib/Model/GetPairResult.php new file mode 100644 index 000000000..21c59f345 --- /dev/null +++ b/lib/Model/GetPairResult.php @@ -0,0 +1,377 @@ + 'string', +'code' => 'string', +'message' => 'string', +'token' => 'string', +'access_secret' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'expired' => null, +'code' => null, +'message' => null, +'token' => null, +'access_secret' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expired' => 'expired', +'code' => 'code', +'message' => 'message', +'token' => 'token', +'access_secret' => 'accessSecret' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expired' => 'setExpired', +'code' => 'setCode', +'message' => 'setMessage', +'token' => 'setToken', +'access_secret' => 'setAccessSecret' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expired' => 'getExpired', +'code' => 'getCode', +'message' => 'getMessage', +'token' => 'getToken', +'access_secret' => 'getAccessSecret' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expired'] = isset($data['expired']) ? $data['expired'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['access_secret'] = isset($data['access_secret']) ? $data['access_secret'] : null; + } + + + /** + * Gets expired + * + * @return string + */ + public function getExpired() + { + return $this->container['expired']; + } + + /** + * Sets expired + * + * @param string $expired token失效时间戳,单位:秒 + * + * @return $this + */ + public function setExpired($expired) + { + $this->container['expired'] = $expired; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token 临时token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets access_secret + * + * @return string + */ + public function getAccessSecret() + { + return $this->container['access_secret']; + } + + /** + * Sets access_secret + * + * @param string $access_secret 临时secretKey + * + * @return $this + */ + public function setAccessSecret($access_secret) + { + $this->container['access_secret'] = $access_secret; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 16cf165aff198a82c5f651a7286c447a20e0b981 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:12 +0800 Subject: [PATCH 174/373] feat: update --- lib/Model/GetStockForms.php | 317 ++++++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/GetStockForms.php diff --git a/lib/Model/GetStockForms.php b/lib/Model/GetStockForms.php new file mode 100644 index 000000000..406cde842 --- /dev/null +++ b/lib/Model/GetStockForms.php @@ -0,0 +1,317 @@ + 'string', +'app_key' => 'string', +'type' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null, +'type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey', +'type' => 'type' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'type' => 'setType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'type' => 'getType' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 查询库存类型 + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type 通过接口获取的token + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 88191bc8aacfb51bec7d58a6db0d3cf70b867f99 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:14 +0800 Subject: [PATCH 175/373] feat: update --- lib/Model/GetStockResult.php | 347 +++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetStockResult.php diff --git a/lib/Model/GetStockResult.php b/lib/Model/GetStockResult.php new file mode 100644 index 000000000..802ae87d9 --- /dev/null +++ b/lib/Model/GetStockResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 97d4520b9278c7ad98291bf024dec9021f09807d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:15 +0800 Subject: [PATCH 176/373] feat: update --- lib/Model/GetStockResultModel.php | 557 ++++++++++++++++++++++++++++++ 1 file changed, 557 insertions(+) create mode 100644 lib/Model/GetStockResultModel.php diff --git a/lib/Model/GetStockResultModel.php b/lib/Model/GetStockResultModel.php new file mode 100644 index 000000000..1a7932c0b --- /dev/null +++ b/lib/Model/GetStockResultModel.php @@ -0,0 +1,557 @@ + 'string', +'current_time' => 'int', +'code' => 'string', +'request_id' => 'string', +'success' => 'bool', +'message' => 'string', +'quota_total' => 'int', +'used_total' => 'int', +'project_id' => 'string', +'available_total' => 'int', +'instance_stock_list' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModelInstanceStockList[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'current_time' => 'int64', +'code' => null, +'request_id' => null, +'success' => null, +'message' => null, +'quota_total' => null, +'used_total' => null, +'project_id' => null, +'available_total' => null, +'instance_stock_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'current_time' => 'currentTime', +'code' => 'code', +'request_id' => 'requestId', +'success' => 'success', +'message' => 'message', +'quota_total' => 'quotaTotal', +'used_total' => 'usedTotal', +'project_id' => 'projectId', +'available_total' => 'availableTotal', +'instance_stock_list' => 'instanceStockList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'current_time' => 'setCurrentTime', +'code' => 'setCode', +'request_id' => 'setRequestId', +'success' => 'setSuccess', +'message' => 'setMessage', +'quota_total' => 'setQuotaTotal', +'used_total' => 'setUsedTotal', +'project_id' => 'setProjectId', +'available_total' => 'setAvailableTotal', +'instance_stock_list' => 'setInstanceStockList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'current_time' => 'getCurrentTime', +'code' => 'getCode', +'request_id' => 'getRequestId', +'success' => 'getSuccess', +'message' => 'getMessage', +'quota_total' => 'getQuotaTotal', +'used_total' => 'getUsedTotal', +'project_id' => 'getProjectId', +'available_total' => 'getAvailableTotal', +'instance_stock_list' => 'getInstanceStockList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['current_time'] = isset($data['current_time']) ? $data['current_time'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['quota_total'] = isset($data['quota_total']) ? $data['quota_total'] : null; + $this->container['used_total'] = isset($data['used_total']) ? $data['used_total'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['available_total'] = isset($data['available_total']) ? $data['available_total'] : null; + $this->container['instance_stock_list'] = isset($data['instance_stock_list']) ? $data['instance_stock_list'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets current_time + * + * @return int + */ + public function getCurrentTime() + { + return $this->container['current_time']; + } + + /** + * Sets current_time + * + * @param int $current_time 当前毫秒时间戳 + * + * @return $this + */ + public function setCurrentTime($current_time) + { + $this->container['current_time'] = $current_time; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id 请求链路唯一标示 + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets quota_total + * + * @return int + */ + public function getQuotaTotal() + { + return $this->container['quota_total']; + } + + /** + * Sets quota_total + * + * @param int $quota_total 总路数 + * + * @return $this + */ + public function setQuotaTotal($quota_total) + { + $this->container['quota_total'] = $quota_total; + + return $this; + } + + /** + * Gets used_total + * + * @return int + */ + public function getUsedTotal() + { + return $this->container['used_total']; + } + + /** + * Sets used_total + * + * @param int $used_total 已使用路数 + * + * @return $this + */ + public function setUsedTotal($used_total) + { + $this->container['used_total'] = $used_total; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 游戏归属的项目Id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets available_total + * + * @return int + */ + public function getAvailableTotal() + { + return $this->container['available_total']; + } + + /** + * Sets available_total + * + * @param int $available_total 可用剩余路数 + * + * @return $this + */ + public function setAvailableTotal($available_total) + { + $this->container['available_total'] = $available_total; + + return $this; + } + + /** + * Gets instance_stock_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModelInstanceStockList[] + */ + public function getInstanceStockList() + { + return $this->container['instance_stock_list']; + } + + /** + * Sets instance_stock_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResultModelInstanceStockList[] $instance_stock_list instance_stock_list + * + * @return $this + */ + public function setInstanceStockList($instance_stock_list) + { + $this->container['instance_stock_list'] = $instance_stock_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e25ae33439b24288ab6c38870e916c00f70ce3e9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:16 +0800 Subject: [PATCH 177/373] feat: update --- .../GetStockResultModelInstanceStockList.php | 497 ++++++++++++++++++ 1 file changed, 497 insertions(+) create mode 100644 lib/Model/GetStockResultModelInstanceStockList.php diff --git a/lib/Model/GetStockResultModelInstanceStockList.php b/lib/Model/GetStockResultModelInstanceStockList.php new file mode 100644 index 000000000..96078253b --- /dev/null +++ b/lib/Model/GetStockResultModelInstanceStockList.php @@ -0,0 +1,497 @@ + 'string', +'instance_game_available_total' => 'int', +'instance_total' => 'int', +'instance_available_total' => 'int', +'instance_game_total' => 'int', +'instance_used_total' => 'int', +'instance_game_used_total' => 'int', +'instance_region_id' => 'string', +'instance_user_level' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'instance_id' => null, +'instance_game_available_total' => null, +'instance_total' => null, +'instance_available_total' => null, +'instance_game_total' => null, +'instance_used_total' => null, +'instance_game_used_total' => null, +'instance_region_id' => null, +'instance_user_level' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'instance_id' => 'instanceId', +'instance_game_available_total' => 'instanceGameAvailableTotal', +'instance_total' => 'instanceTotal', +'instance_available_total' => 'instanceAvailableTotal', +'instance_game_total' => 'instanceGameTotal', +'instance_used_total' => 'instanceUsedTotal', +'instance_game_used_total' => 'instanceGameUsedTotal', +'instance_region_id' => 'instanceRegionId', +'instance_user_level' => 'instanceUserLevel' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'instance_id' => 'setInstanceId', +'instance_game_available_total' => 'setInstanceGameAvailableTotal', +'instance_total' => 'setInstanceTotal', +'instance_available_total' => 'setInstanceAvailableTotal', +'instance_game_total' => 'setInstanceGameTotal', +'instance_used_total' => 'setInstanceUsedTotal', +'instance_game_used_total' => 'setInstanceGameUsedTotal', +'instance_region_id' => 'setInstanceRegionId', +'instance_user_level' => 'setInstanceUserLevel' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'instance_id' => 'getInstanceId', +'instance_game_available_total' => 'getInstanceGameAvailableTotal', +'instance_total' => 'getInstanceTotal', +'instance_available_total' => 'getInstanceAvailableTotal', +'instance_game_total' => 'getInstanceGameTotal', +'instance_used_total' => 'getInstanceUsedTotal', +'instance_game_used_total' => 'getInstanceGameUsedTotal', +'instance_region_id' => 'getInstanceRegionId', +'instance_user_level' => 'getInstanceUserLevel' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['instance_id'] = isset($data['instance_id']) ? $data['instance_id'] : null; + $this->container['instance_game_available_total'] = isset($data['instance_game_available_total']) ? $data['instance_game_available_total'] : null; + $this->container['instance_total'] = isset($data['instance_total']) ? $data['instance_total'] : null; + $this->container['instance_available_total'] = isset($data['instance_available_total']) ? $data['instance_available_total'] : null; + $this->container['instance_game_total'] = isset($data['instance_game_total']) ? $data['instance_game_total'] : null; + $this->container['instance_used_total'] = isset($data['instance_used_total']) ? $data['instance_used_total'] : null; + $this->container['instance_game_used_total'] = isset($data['instance_game_used_total']) ? $data['instance_game_used_total'] : null; + $this->container['instance_region_id'] = isset($data['instance_region_id']) ? $data['instance_region_id'] : null; + $this->container['instance_user_level'] = isset($data['instance_user_level']) ? $data['instance_user_level'] : null; + } + + + /** + * Gets instance_id + * + * @return string + */ + public function getInstanceId() + { + return $this->container['instance_id']; + } + + /** + * Sets instance_id + * + * @param string $instance_id 实例id + * + * @return $this + */ + public function setInstanceId($instance_id) + { + $this->container['instance_id'] = $instance_id; + + return $this; + } + + /** + * Gets instance_game_available_total + * + * @return int + */ + public function getInstanceGameAvailableTotal() + { + return $this->container['instance_game_available_total']; + } + + /** + * Sets instance_game_available_total + * + * @param int $instance_game_available_total 实例游戏当前可使用路数 + * + * @return $this + */ + public function setInstanceGameAvailableTotal($instance_game_available_total) + { + $this->container['instance_game_available_total'] = $instance_game_available_total; + + return $this; + } + + /** + * Gets instance_total + * + * @return int + */ + public function getInstanceTotal() + { + return $this->container['instance_total']; + } + + /** + * Sets instance_total + * + * @param int $instance_total 实例总路数 + * + * @return $this + */ + public function setInstanceTotal($instance_total) + { + $this->container['instance_total'] = $instance_total; + + return $this; + } + + /** + * Gets instance_available_total + * + * @return int + */ + public function getInstanceAvailableTotal() + { + return $this->container['instance_available_total']; + } + + /** + * Sets instance_available_total + * + * @param int $instance_available_total 实例可用路数 + * + * @return $this + */ + public function setInstanceAvailableTotal($instance_available_total) + { + $this->container['instance_available_total'] = $instance_available_total; + + return $this; + } + + /** + * Gets instance_game_total + * + * @return int + */ + public function getInstanceGameTotal() + { + return $this->container['instance_game_total']; + } + + /** + * Sets instance_game_total + * + * @param int $instance_game_total 实例配置游戏总路数 + * + * @return $this + */ + public function setInstanceGameTotal($instance_game_total) + { + $this->container['instance_game_total'] = $instance_game_total; + + return $this; + } + + /** + * Gets instance_used_total + * + * @return int + */ + public function getInstanceUsedTotal() + { + return $this->container['instance_used_total']; + } + + /** + * Sets instance_used_total + * + * @param int $instance_used_total 实例已用路数 + * + * @return $this + */ + public function setInstanceUsedTotal($instance_used_total) + { + $this->container['instance_used_total'] = $instance_used_total; + + return $this; + } + + /** + * Gets instance_game_used_total + * + * @return int + */ + public function getInstanceGameUsedTotal() + { + return $this->container['instance_game_used_total']; + } + + /** + * Sets instance_game_used_total + * + * @param int $instance_game_used_total 实例游戏当前已使用路数 + * + * @return $this + */ + public function setInstanceGameUsedTotal($instance_game_used_total) + { + $this->container['instance_game_used_total'] = $instance_game_used_total; + + return $this; + } + + /** + * Gets instance_region_id + * + * @return string + */ + public function getInstanceRegionId() + { + return $this->container['instance_region_id']; + } + + /** + * Sets instance_region_id + * + * @param string $instance_region_id 实例大区ID + * + * @return $this + */ + public function setInstanceRegionId($instance_region_id) + { + $this->container['instance_region_id'] = $instance_region_id; + + return $this; + } + + /** + * Gets instance_user_level + * + * @return int + */ + public function getInstanceUserLevel() + { + return $this->container['instance_user_level']; + } + + /** + * Sets instance_user_level + * + * @param int $instance_user_level 实例调度等级 + * + * @return $this + */ + public function setInstanceUserLevel($instance_user_level) + { + $this->container['instance_user_level'] = $instance_user_level; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 70853338317ff6e8598fb27c1b8e285eeaab6c22 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:18 +0800 Subject: [PATCH 178/373] feat: update --- lib/Model/GetStopGameTokenForms.php | 287 ++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/GetStopGameTokenForms.php diff --git a/lib/Model/GetStopGameTokenForms.php b/lib/Model/GetStopGameTokenForms.php new file mode 100644 index 000000000..6dbfab237 --- /dev/null +++ b/lib/Model/GetStopGameTokenForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8ec38deb36c17cdb1728d07f800f8d2cdfbdd0cc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:19 +0800 Subject: [PATCH 179/373] feat: update --- lib/Model/GetStopGameTokenResult.php | 347 +++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/GetStopGameTokenResult.php diff --git a/lib/Model/GetStopGameTokenResult.php b/lib/Model/GetStopGameTokenResult.php new file mode 100644 index 000000000..4f705c0c7 --- /dev/null +++ b/lib/Model/GetStopGameTokenResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fd663844871159ac4f952917593bfbefb341dd1c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:20 +0800 Subject: [PATCH 180/373] feat: update --- lib/Model/GetStopGameTokenResultModel.php | 407 ++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/GetStopGameTokenResultModel.php diff --git a/lib/Model/GetStopGameTokenResultModel.php b/lib/Model/GetStopGameTokenResultModel.php new file mode 100644 index 000000000..f2fe04a0b --- /dev/null +++ b/lib/Model/GetStopGameTokenResultModel.php @@ -0,0 +1,407 @@ + 'int', +'code' => 'string', +'request_id' => 'string', +'success' => 'bool', +'message' => 'string', +'token' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'expire_time' => 'int64', +'code' => null, +'request_id' => null, +'success' => null, +'message' => null, +'token' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expire_time' => 'expireTime', +'code' => 'code', +'request_id' => 'requestId', +'success' => 'success', +'message' => 'message', +'token' => 'token' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expire_time' => 'setExpireTime', +'code' => 'setCode', +'request_id' => 'setRequestId', +'success' => 'setSuccess', +'message' => 'setMessage', +'token' => 'setToken' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expire_time' => 'getExpireTime', +'code' => 'getCode', +'request_id' => 'getRequestId', +'success' => 'getSuccess', +'message' => 'getMessage', +'token' => 'getToken' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expire_time'] = isset($data['expire_time']) ? $data['expire_time'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + } + + + /** + * Gets expire_time + * + * @return int + */ + public function getExpireTime() + { + return $this->container['expire_time']; + } + + /** + * Sets expire_time + * + * @param int $expire_time 当前token失效时间 + * + * @return $this + */ + public function setExpireTime($expire_time) + { + $this->container['expire_time'] = $expire_time; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id 请求链路唯一标示 + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a00918ac5bed8a4ee33878165c4584129d552306 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:22 +0800 Subject: [PATCH 181/373] feat: update --- lib/Model/GetTripleResult.php | 407 ++++++++++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/GetTripleResult.php diff --git a/lib/Model/GetTripleResult.php b/lib/Model/GetTripleResult.php new file mode 100644 index 000000000..7b591f213 --- /dev/null +++ b/lib/Model/GetTripleResult.php @@ -0,0 +1,407 @@ + 'string', +'code' => 'string', +'access_key' => 'string', +'message' => 'string', +'token' => 'string', +'access_secret' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'expired' => null, +'code' => null, +'access_key' => null, +'message' => null, +'token' => null, +'access_secret' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expired' => 'expired', +'code' => 'code', +'access_key' => 'accessKey', +'message' => 'message', +'token' => 'token', +'access_secret' => 'accessSecret' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expired' => 'setExpired', +'code' => 'setCode', +'access_key' => 'setAccessKey', +'message' => 'setMessage', +'token' => 'setToken', +'access_secret' => 'setAccessSecret' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expired' => 'getExpired', +'code' => 'getCode', +'access_key' => 'getAccessKey', +'message' => 'getMessage', +'token' => 'getToken', +'access_secret' => 'getAccessSecret' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expired'] = isset($data['expired']) ? $data['expired'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['access_key'] = isset($data['access_key']) ? $data['access_key'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + $this->container['access_secret'] = isset($data['access_secret']) ? $data['access_secret'] : null; + } + + + /** + * Gets expired + * + * @return string + */ + public function getExpired() + { + return $this->container['expired']; + } + + /** + * Sets expired + * + * @param string $expired token失效时间戳,单位:秒 + * + * @return $this + */ + public function setExpired($expired) + { + $this->container['expired'] = $expired; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets access_key + * + * @return string + */ + public function getAccessKey() + { + return $this->container['access_key']; + } + + /** + * Sets access_key + * + * @param string $access_key 临时accessKey + * + * @return $this + */ + public function setAccessKey($access_key) + { + $this->container['access_key'] = $access_key; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token 临时token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + + /** + * Gets access_secret + * + * @return string + */ + public function getAccessSecret() + { + return $this->container['access_secret']; + } + + /** + * Sets access_secret + * + * @param string $access_secret 临时secretKey + * + * @return $this + */ + public function setAccessSecret($access_secret) + { + $this->container['access_secret'] = $access_secret; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a46e9fe78a2a885c5d72702e3dcbff511bcca6a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:23 +0800 Subject: [PATCH 182/373] feat: update --- lib/Model/ListGameServerIpForms.php | 287 ++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/ListGameServerIpForms.php diff --git a/lib/Model/ListGameServerIpForms.php b/lib/Model/ListGameServerIpForms.php new file mode 100644 index 000000000..3fb8c05ad --- /dev/null +++ b/lib/Model/ListGameServerIpForms.php @@ -0,0 +1,287 @@ + 'int', +'next_token' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_size' => 'int64', +'next_token' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_size' => 'pageSize', +'next_token' => 'nextToken' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_size' => 'setPageSize', +'next_token' => 'setNextToken' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_size' => 'getPageSize', +'next_token' => 'getNextToken' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + } + + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size 分页大小,默认100 + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token 分页标识 + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a856b19b43c4de466ed31595eda3be2741688ebd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:24 +0800 Subject: [PATCH 183/373] feat: update --- lib/Model/ListGameServerIpResult.php | 347 +++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ListGameServerIpResult.php diff --git a/lib/Model/ListGameServerIpResult.php b/lib/Model/ListGameServerIpResult.php new file mode 100644 index 000000000..b06dbfc31 --- /dev/null +++ b/lib/Model/ListGameServerIpResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3cc06e6d7ea4e89f6871284e6fa298ac2cbf3884 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:26 +0800 Subject: [PATCH 184/373] feat: update --- lib/Model/ListGameServerIpResultModel.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ListGameServerIpResultModel.php diff --git a/lib/Model/ListGameServerIpResultModel.php b/lib/Model/ListGameServerIpResultModel.php new file mode 100644 index 000000000..79b7c09f2 --- /dev/null +++ b/lib/Model/ListGameServerIpResultModel.php @@ -0,0 +1,347 @@ + 'string', +'page_size' => 'int', +'total_count' => 'int', +'ip_list' => 'string[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'next_token' => null, +'page_size' => 'int64', +'total_count' => 'int64', +'ip_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'next_token' => 'nextToken', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'ip_list' => 'ipList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'next_token' => 'setNextToken', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'ip_list' => 'setIpList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'next_token' => 'getNextToken', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'ip_list' => 'getIpList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['ip_list'] = isset($data['ip_list']) ? $data['ip_list'] : null; + } + + + /** + * Gets next_token + * + * @return string + */ + public function getNextToken() + { + return $this->container['next_token']; + } + + /** + * Sets next_token + * + * @param string $next_token next_token + * + * @return $this + */ + public function setNextToken($next_token) + { + $this->container['next_token'] = $next_token; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets ip_list + * + * @return string[] + */ + public function getIpList() + { + return $this->container['ip_list']; + } + + /** + * Sets ip_list + * + * @param string[] $ip_list ip_list + * + * @return $this + */ + public function setIpList($ip_list) + { + $this->container['ip_list'] = $ip_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5292436f5b6a0a3e901bbc2c1448a6e5ee8f3f10 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:27 +0800 Subject: [PATCH 185/373] feat: update --- lib/Model/LiveQueryStatusForms.php | 317 +++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveQueryStatusForms.php diff --git a/lib/Model/LiveQueryStatusForms.php b/lib/Model/LiveQueryStatusForms.php new file mode 100644 index 000000000..a6e62ffe7 --- /dev/null +++ b/lib/Model/LiveQueryStatusForms.php @@ -0,0 +1,317 @@ + 'string', +'game_session' => 'string', +'live_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'live_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'live_id' => 'liveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'live_id' => 'setLiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'live_id' => 'getLiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f86d90336c25128d813a35a76563f9e5cbe0db91 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:29 +0800 Subject: [PATCH 186/373] feat: update --- lib/Model/LiveQueryStatusResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResult.php diff --git a/lib/Model/LiveQueryStatusResult.php b/lib/Model/LiveQueryStatusResult.php new file mode 100644 index 000000000..b3dab360d --- /dev/null +++ b/lib/Model/LiveQueryStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From db9e928481eb9110511ae270c06929070ce021e6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:30 +0800 Subject: [PATCH 187/373] feat: update --- lib/Model/LiveQueryStatusResultModel.php | 257 +++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResultModel.php diff --git a/lib/Model/LiveQueryStatusResultModel.php b/lib/Model/LiveQueryStatusResultModel.php new file mode 100644 index 000000000..0eb37c560 --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModel.php @@ -0,0 +1,257 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveList[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'live_list' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'live_list' => 'liveList' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'live_list' => 'setLiveList' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'live_list' => 'getLiveList' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['live_list'] = isset($data['live_list']) ? $data['live_list'] : null; + } + + + /** + * Gets live_list + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveList[] + */ + public function getLiveList() + { + return $this->container['live_list']; + } + + /** + * Sets live_list + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveList[] $live_list live_list + * + * @return $this + */ + public function setLiveList($live_list) + { + $this->container['live_list'] = $live_list; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 755a5309973ed32709499a1705e77c874f091bd5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:31 +0800 Subject: [PATCH 188/373] feat: update --- .../LiveQueryStatusResultModelLiveList.php | 407 ++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResultModelLiveList.php diff --git a/lib/Model/LiveQueryStatusResultModelLiveList.php b/lib/Model/LiveQueryStatusResultModelLiveList.php new file mode 100644 index 000000000..1e0bb1aac --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModelLiveList.php @@ -0,0 +1,407 @@ + 'string', +'server_url' => 'string', +'message' => 'string', +'live_id' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveListConfig', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'stream_key' => null, +'server_url' => null, +'message' => null, +'live_id' => null, +'config' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'stream_key' => 'streamKey', +'server_url' => 'serverUrl', +'message' => 'message', +'live_id' => 'liveId', +'config' => 'config', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stream_key' => 'setStreamKey', +'server_url' => 'setServerUrl', +'message' => 'setMessage', +'live_id' => 'setLiveId', +'config' => 'setConfig', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stream_key' => 'getStreamKey', +'server_url' => 'getServerUrl', +'message' => 'getMessage', +'live_id' => 'getLiveId', +'config' => 'getConfig', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stream_key'] = isset($data['stream_key']) ? $data['stream_key'] : null; + $this->container['server_url'] = isset($data['server_url']) ? $data['server_url'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets stream_key + * + * @return string + */ + public function getStreamKey() + { + return $this->container['stream_key']; + } + + /** + * Sets stream_key + * + * @param string $stream_key stream_key + * + * @return $this + */ + public function setStreamKey($stream_key) + { + $this->container['stream_key'] = $stream_key; + + return $this; + } + + /** + * Gets server_url + * + * @return string + */ + public function getServerUrl() + { + return $this->container['server_url']; + } + + /** + * Sets server_url + * + * @param string $server_url server_url + * + * @return $this + */ + public function setServerUrl($server_url) + { + $this->container['server_url'] = $server_url; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveListConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResultModelLiveListConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2b5ad2d2f76fa4cc75ed78675741c2cd72d241dd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:33 +0800 Subject: [PATCH 189/373] feat: update --- ...veQueryStatusResultModelLiveListConfig.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveQueryStatusResultModelLiveListConfig.php diff --git a/lib/Model/LiveQueryStatusResultModelLiveListConfig.php b/lib/Model/LiveQueryStatusResultModelLiveListConfig.php new file mode 100644 index 000000000..b4b8e067f --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModelLiveListConfig.php @@ -0,0 +1,317 @@ + 'int', +'bitrate' => 'int', +'resolution' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'frame_rate' => null, +'bitrate' => null, +'resolution' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'frame_rate' => 'frameRate', +'bitrate' => 'bitrate', +'resolution' => 'resolution' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'frame_rate' => 'setFrameRate', +'bitrate' => 'setBitrate', +'resolution' => 'setResolution' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'frame_rate' => 'getFrameRate', +'bitrate' => 'getBitrate', +'resolution' => 'getResolution' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['frame_rate'] = isset($data['frame_rate']) ? $data['frame_rate'] : null; + $this->container['bitrate'] = isset($data['bitrate']) ? $data['bitrate'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + } + + + /** + * Gets frame_rate + * + * @return int + */ + public function getFrameRate() + { + return $this->container['frame_rate']; + } + + /** + * Sets frame_rate + * + * @param int $frame_rate frame_rate + * + * @return $this + */ + public function setFrameRate($frame_rate) + { + $this->container['frame_rate'] = $frame_rate; + + return $this; + } + + /** + * Gets bitrate + * + * @return int + */ + public function getBitrate() + { + return $this->container['bitrate']; + } + + /** + * Sets bitrate + * + * @param int $bitrate bitrate + * + * @return $this + */ + public function setBitrate($bitrate) + { + $this->container['bitrate'] = $bitrate; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 8077b7ef20f5c9962c80c0c704a2570301cce12d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:34 +0800 Subject: [PATCH 190/373] feat: update --- lib/Model/LiveStartGameLiveForms.php | 377 +++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveForms.php diff --git a/lib/Model/LiveStartGameLiveForms.php b/lib/Model/LiveStartGameLiveForms.php new file mode 100644 index 000000000..85c970de1 --- /dev/null +++ b/lib/Model/LiveStartGameLiveForms.php @@ -0,0 +1,377 @@ + 'string', +'game_session' => 'string', +'server_url' => 'string', +'stream_key' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveFormsConfig' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'server_url' => null, +'stream_key' => null, +'config' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'server_url' => 'serverUrl', +'stream_key' => 'streamKey', +'config' => 'config' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'server_url' => 'setServerUrl', +'stream_key' => 'setStreamKey', +'config' => 'setConfig' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'server_url' => 'getServerUrl', +'stream_key' => 'getStreamKey', +'config' => 'getConfig' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['server_url'] = isset($data['server_url']) ? $data['server_url'] : null; + $this->container['stream_key'] = isset($data['stream_key']) ? $data['stream_key'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets server_url + * + * @return string + */ + public function getServerUrl() + { + return $this->container['server_url']; + } + + /** + * Sets server_url + * + * @param string $server_url server_url + * + * @return $this + */ + public function setServerUrl($server_url) + { + $this->container['server_url'] = $server_url; + + return $this; + } + + /** + * Gets stream_key + * + * @return string + */ + public function getStreamKey() + { + return $this->container['stream_key']; + } + + /** + * Sets stream_key + * + * @param string $stream_key stream_key + * + * @return $this + */ + public function setStreamKey($stream_key) + { + $this->container['stream_key'] = $stream_key; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveFormsConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveFormsConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2a21aff3f240d7c1d1972d0e56df42e6ff12ba50 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:36 +0800 Subject: [PATCH 191/373] feat: update --- lib/Model/LiveStartGameLiveFormsConfig.php | 317 +++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveFormsConfig.php diff --git a/lib/Model/LiveStartGameLiveFormsConfig.php b/lib/Model/LiveStartGameLiveFormsConfig.php new file mode 100644 index 000000000..8e698e997 --- /dev/null +++ b/lib/Model/LiveStartGameLiveFormsConfig.php @@ -0,0 +1,317 @@ + 'int', +'bitrate' => 'int', +'resolution' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'frame_rate' => null, +'bitrate' => null, +'resolution' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'frame_rate' => 'frameRate', +'bitrate' => 'bitrate', +'resolution' => 'resolution' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'frame_rate' => 'setFrameRate', +'bitrate' => 'setBitrate', +'resolution' => 'setResolution' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'frame_rate' => 'getFrameRate', +'bitrate' => 'getBitrate', +'resolution' => 'getResolution' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['frame_rate'] = isset($data['frame_rate']) ? $data['frame_rate'] : null; + $this->container['bitrate'] = isset($data['bitrate']) ? $data['bitrate'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + } + + + /** + * Gets frame_rate + * + * @return int + */ + public function getFrameRate() + { + return $this->container['frame_rate']; + } + + /** + * Sets frame_rate + * + * @param int $frame_rate frame_rate + * + * @return $this + */ + public function setFrameRate($frame_rate) + { + $this->container['frame_rate'] = $frame_rate; + + return $this; + } + + /** + * Gets bitrate + * + * @return int + */ + public function getBitrate() + { + return $this->container['bitrate']; + } + + /** + * Sets bitrate + * + * @param int $bitrate bitrate + * + * @return $this + */ + public function setBitrate($bitrate) + { + $this->container['bitrate'] = $bitrate; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 63c42874aec61589a91e8801ac83412b5cf61001 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:37 +0800 Subject: [PATCH 192/373] feat: update --- lib/Model/LiveStartGameLiveResult.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveResult.php diff --git a/lib/Model/LiveStartGameLiveResult.php b/lib/Model/LiveStartGameLiveResult.php new file mode 100644 index 000000000..070d3d39e --- /dev/null +++ b/lib/Model/LiveStartGameLiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9ee1e7679b802b9a010c0427e48ebb11c88277c6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:38 +0800 Subject: [PATCH 193/373] feat: update --- lib/Model/LiveStartGameLiveResultModel.php | 317 +++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveStartGameLiveResultModel.php diff --git a/lib/Model/LiveStartGameLiveResultModel.php b/lib/Model/LiveStartGameLiveResultModel.php new file mode 100644 index 000000000..ecd9b504e --- /dev/null +++ b/lib/Model/LiveStartGameLiveResultModel.php @@ -0,0 +1,317 @@ + 'bool', +'live_id' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null, +'live_id' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data', +'live_id' => 'liveId', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData', +'live_id' => 'setLiveId', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData', +'live_id' => 'getLiveId', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets data + * + * @return bool + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param bool $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c38320d967380862ee27964c4f97325123e73c28 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:40 +0800 Subject: [PATCH 194/373] feat: update --- lib/Model/LiveStopGameLiveForms.php | 317 ++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/LiveStopGameLiveForms.php diff --git a/lib/Model/LiveStopGameLiveForms.php b/lib/Model/LiveStopGameLiveForms.php new file mode 100644 index 000000000..464a233bd --- /dev/null +++ b/lib/Model/LiveStopGameLiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_session' => 'string', +'live_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_session' => null, +'live_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_session' => 'gameSession', +'live_id' => 'liveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'live_id' => 'setLiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'live_id' => 'getLiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['live_id'] = isset($data['live_id']) ? $data['live_id'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets live_id + * + * @return string + */ + public function getLiveId() + { + return $this->container['live_id']; + } + + /** + * Sets live_id + * + * @param string $live_id live_id + * + * @return $this + */ + public function setLiveId($live_id) + { + $this->container['live_id'] = $live_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0d6c2b3d1698ae838b2a8edb4b755e5d77cc4f67 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:41 +0800 Subject: [PATCH 195/373] feat: update --- lib/Model/LiveStopGameLiveResult.php | 347 +++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/LiveStopGameLiveResult.php diff --git a/lib/Model/LiveStopGameLiveResult.php b/lib/Model/LiveStopGameLiveResult.php new file mode 100644 index 000000000..6e690b8bf --- /dev/null +++ b/lib/Model/LiveStopGameLiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From eff496b421881503dd056c2faebe1fcbb9f828f3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:42 +0800 Subject: [PATCH 196/373] feat: update --- lib/Model/LiveStopGameLiveResultModel.php | 257 ++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/LiveStopGameLiveResultModel.php diff --git a/lib/Model/LiveStopGameLiveResultModel.php b/lib/Model/LiveStopGameLiveResultModel.php new file mode 100644 index 000000000..cf85cb3e8 --- /dev/null +++ b/lib/Model/LiveStopGameLiveResultModel.php @@ -0,0 +1,257 @@ + 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data' => 'data' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data' => 'setData' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data' => 'getData' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data'] = isset($data['data']) ? $data['data'] : null; + } + + + /** + * Gets data + * + * @return bool + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param bool $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f28ca9f2c269167d7f130e45988dfc9342538fda Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:44 +0800 Subject: [PATCH 197/373] feat: update --- lib/Model/MultiplayCloseForms.php | 287 ++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayCloseForms.php diff --git a/lib/Model/MultiplayCloseForms.php b/lib/Model/MultiplayCloseForms.php new file mode 100644 index 000000000..dc2981c99 --- /dev/null +++ b/lib/Model/MultiplayCloseForms.php @@ -0,0 +1,287 @@ + 'string', +'reason' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'reason' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'reason' => 'reason' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'reason' => 'setReason' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'reason' => 'getReason' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 74ab69f6d91a23d74fc762c93e9c385cd28c194d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:45 +0800 Subject: [PATCH 198/373] feat: update --- lib/Model/MultiplayCloseResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayCloseResult.php diff --git a/lib/Model/MultiplayCloseResult.php b/lib/Model/MultiplayCloseResult.php new file mode 100644 index 000000000..78ce36a5f --- /dev/null +++ b/lib/Model/MultiplayCloseResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 06bd5d9e8fd82ecb09a29771000d987c573488b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:47 +0800 Subject: [PATCH 199/373] feat: update --- lib/Model/MultiplayCloseResultModel.php | 257 ++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayCloseResultModel.php diff --git a/lib/Model/MultiplayCloseResultModel.php b/lib/Model/MultiplayCloseResultModel.php new file mode 100644 index 000000000..f103c5b4a --- /dev/null +++ b/lib/Model/MultiplayCloseResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 797b309f0773c9276f113e72fd9392e9c50a822b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:48 +0800 Subject: [PATCH 200/373] feat: update --- lib/Model/MultiplayInitForms.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitForms.php diff --git a/lib/Model/MultiplayInitForms.php b/lib/Model/MultiplayInitForms.php new file mode 100644 index 000000000..72cf2fd5e --- /dev/null +++ b/lib/Model/MultiplayInitForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsTokens[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null, +'config' => null, +'tokens' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey', +'config' => 'config', +'tokens' => 'tokens' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey', +'config' => 'setConfig', +'tokens' => 'setTokens' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey', +'config' => 'getConfig', +'tokens' => 'getTokens' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From ede4908c13304d5692878dbc0249ccc3c596449a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:49 +0800 Subject: [PATCH 201/373] feat: update --- lib/Model/MultiplayInitFormsConfig.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitFormsConfig.php diff --git a/lib/Model/MultiplayInitFormsConfig.php b/lib/Model/MultiplayInitFormsConfig.php new file mode 100644 index 000000000..dd2c32700 --- /dev/null +++ b/lib/Model/MultiplayInitFormsConfig.php @@ -0,0 +1,347 @@ + 'int', +'host_timeout' => 'int', +'connect_timeout' => 'int', +'input_timeout' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_token' => null, +'host_timeout' => null, +'connect_timeout' => null, +'input_timeout' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_token' => 'maxToken', +'host_timeout' => 'hostTimeout', +'connect_timeout' => 'connectTimeout', +'input_timeout' => 'inputTimeout' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_token' => 'setMaxToken', +'host_timeout' => 'setHostTimeout', +'connect_timeout' => 'setConnectTimeout', +'input_timeout' => 'setInputTimeout' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_token' => 'getMaxToken', +'host_timeout' => 'getHostTimeout', +'connect_timeout' => 'getConnectTimeout', +'input_timeout' => 'getInputTimeout' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_token'] = isset($data['max_token']) ? $data['max_token'] : null; + $this->container['host_timeout'] = isset($data['host_timeout']) ? $data['host_timeout'] : null; + $this->container['connect_timeout'] = isset($data['connect_timeout']) ? $data['connect_timeout'] : null; + $this->container['input_timeout'] = isset($data['input_timeout']) ? $data['input_timeout'] : null; + } + + + /** + * Gets max_token + * + * @return int + */ + public function getMaxToken() + { + return $this->container['max_token']; + } + + /** + * Sets max_token + * + * @param int $max_token max_token + * + * @return $this + */ + public function setMaxToken($max_token) + { + $this->container['max_token'] = $max_token; + + return $this; + } + + /** + * Gets host_timeout + * + * @return int + */ + public function getHostTimeout() + { + return $this->container['host_timeout']; + } + + /** + * Sets host_timeout + * + * @param int $host_timeout host_timeout + * + * @return $this + */ + public function setHostTimeout($host_timeout) + { + $this->container['host_timeout'] = $host_timeout; + + return $this; + } + + /** + * Gets connect_timeout + * + * @return int + */ + public function getConnectTimeout() + { + return $this->container['connect_timeout']; + } + + /** + * Sets connect_timeout + * + * @param int $connect_timeout connect_timeout + * + * @return $this + */ + public function setConnectTimeout($connect_timeout) + { + $this->container['connect_timeout'] = $connect_timeout; + + return $this; + } + + /** + * Gets input_timeout + * + * @return int + */ + public function getInputTimeout() + { + return $this->container['input_timeout']; + } + + /** + * Sets input_timeout + * + * @param int $input_timeout input_timeout + * + * @return $this + */ + public function setInputTimeout($input_timeout) + { + $this->container['input_timeout'] = $input_timeout; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b6f29a4fabd23452d16b888daedf606ada1005c3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:51 +0800 Subject: [PATCH 202/373] feat: update --- lib/Model/MultiplayInitFormsTokens.php | 287 +++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayInitFormsTokens.php diff --git a/lib/Model/MultiplayInitFormsTokens.php b/lib/Model/MultiplayInitFormsTokens.php new file mode 100644 index 000000000..54a1ebafe --- /dev/null +++ b/lib/Model/MultiplayInitFormsTokens.php @@ -0,0 +1,287 @@ + 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 323c84af00e63b39b1fbc4b3156220a487a1c770 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:52 +0800 Subject: [PATCH 203/373] feat: update --- lib/Model/MultiplayInitResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitResult.php diff --git a/lib/Model/MultiplayInitResult.php b/lib/Model/MultiplayInitResult.php new file mode 100644 index 000000000..0947da9b7 --- /dev/null +++ b/lib/Model/MultiplayInitResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e6dd7565b917a5736d35ad77481a4f49403d7460 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:53 +0800 Subject: [PATCH 204/373] feat: update --- lib/Model/MultiplayInitResultModel.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitResultModel.php diff --git a/lib/Model/MultiplayInitResultModel.php b/lib/Model/MultiplayInitResultModel.php new file mode 100644 index 000000000..93cf1240e --- /dev/null +++ b/lib/Model/MultiplayInitResultModel.php @@ -0,0 +1,347 @@ + 'string', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModelTokens[]', +'data_ver' => 'string', +'mp_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'creator_token_id' => null, +'tokens' => null, +'data_ver' => null, +'mp_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'creator_token_id' => 'creatorTokenId', +'tokens' => 'tokens', +'data_ver' => 'dataVer', +'mp_id' => 'mpId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'creator_token_id' => 'setCreatorTokenId', +'tokens' => 'setTokens', +'data_ver' => 'setDataVer', +'mp_id' => 'setMpId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'creator_token_id' => 'getCreatorTokenId', +'tokens' => 'getTokens', +'data_ver' => 'getDataVer', +'mp_id' => 'getMpId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['creator_token_id'] = isset($data['creator_token_id']) ? $data['creator_token_id'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + } + + + /** + * Gets creator_token_id + * + * @return string + */ + public function getCreatorTokenId() + { + return $this->container['creator_token_id']; + } + + /** + * Sets creator_token_id + * + * @param string $creator_token_id creator_token_id + * + * @return $this + */ + public function setCreatorTokenId($creator_token_id) + { + $this->container['creator_token_id'] = $creator_token_id; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModelTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResultModelTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 52cf38711ad434ceac94087bcd0126eb533297c3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:55 +0800 Subject: [PATCH 205/373] feat: update --- lib/Model/MultiplayInitResultModelTokens.php | 347 +++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayInitResultModelTokens.php diff --git a/lib/Model/MultiplayInitResultModelTokens.php b/lib/Model/MultiplayInitResultModelTokens.php new file mode 100644 index 000000000..32a257bfe --- /dev/null +++ b/lib/Model/MultiplayInitResultModelTokens.php @@ -0,0 +1,347 @@ + 'string', +'token_id' => 'string', +'session' => 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'token_id' => null, +'session' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'token_id' => 'tokenId', +'session' => 'session', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'token_id' => 'setTokenId', +'session' => 'setSession', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'token_id' => 'getTokenId', +'session' => 'getSession', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 404250ef7b22906ae5dcad7e5e45550ef0eb2366 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:56 +0800 Subject: [PATCH 206/373] feat: update --- lib/Model/MultiplayJoinForms.php | 317 +++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/MultiplayJoinForms.php diff --git a/lib/Model/MultiplayJoinForms.php b/lib/Model/MultiplayJoinForms.php new file mode 100644 index 000000000..2d6f282ff --- /dev/null +++ b/lib/Model/MultiplayJoinForms.php @@ -0,0 +1,317 @@ + 'string', +'account_id' => 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'account_id' => null, +'control_id' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'account_id' => 'accountId', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'account_id' => 'setAccountId', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'account_id' => 'getAccountId', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cd0550f048013a410d4af70acb519027282dbeb5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:57 +0800 Subject: [PATCH 207/373] feat: update --- lib/Model/MultiplayJoinResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayJoinResult.php diff --git a/lib/Model/MultiplayJoinResult.php b/lib/Model/MultiplayJoinResult.php new file mode 100644 index 000000000..f7bf4c800 --- /dev/null +++ b/lib/Model/MultiplayJoinResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 847365ec0565be3394161433324bfd3c01a325d8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:14:59 +0800 Subject: [PATCH 208/373] feat: update --- lib/Model/MultiplayJoinResultModel.php | 317 +++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/MultiplayJoinResultModel.php diff --git a/lib/Model/MultiplayJoinResultModel.php b/lib/Model/MultiplayJoinResultModel.php new file mode 100644 index 000000000..ae1655bfb --- /dev/null +++ b/lib/Model/MultiplayJoinResultModel.php @@ -0,0 +1,317 @@ + 'string', +'session' => 'string', +'data_ver' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'token_id' => null, +'session' => null, +'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'token_id' => 'tokenId', +'session' => 'session', +'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'token_id' => 'setTokenId', +'session' => 'setSession', +'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'token_id' => 'getTokenId', +'session' => 'getSession', +'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c90dde33c362bb870597c05df476ccf81a931999 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:00 +0800 Subject: [PATCH 209/373] feat: update --- lib/Model/MultiplayLeaveForms.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayLeaveForms.php diff --git a/lib/Model/MultiplayLeaveForms.php b/lib/Model/MultiplayLeaveForms.php new file mode 100644 index 000000000..0f09bca12 --- /dev/null +++ b/lib/Model/MultiplayLeaveForms.php @@ -0,0 +1,347 @@ + 'string', +'kick_out' => 'bool', +'reason' => 'string', +'token_ids' => 'string[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'kick_out' => null, +'reason' => null, +'token_ids' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'kick_out' => 'kickOut', +'reason' => 'reason', +'token_ids' => 'tokenIds' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'kick_out' => 'setKickOut', +'reason' => 'setReason', +'token_ids' => 'setTokenIds' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'kick_out' => 'getKickOut', +'reason' => 'getReason', +'token_ids' => 'getTokenIds' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['kick_out'] = isset($data['kick_out']) ? $data['kick_out'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['token_ids'] = isset($data['token_ids']) ? $data['token_ids'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets kick_out + * + * @return bool + */ + public function getKickOut() + { + return $this->container['kick_out']; + } + + /** + * Sets kick_out + * + * @param bool $kick_out kick_out + * + * @return $this + */ + public function setKickOut($kick_out) + { + $this->container['kick_out'] = $kick_out; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason reason + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets token_ids + * + * @return string[] + */ + public function getTokenIds() + { + return $this->container['token_ids']; + } + + /** + * Sets token_ids + * + * @param string[] $token_ids token_ids + * + * @return $this + */ + public function setTokenIds($token_ids) + { + $this->container['token_ids'] = $token_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fcdd5bf96cdf0afa1b01959e7e9174235b083e4e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:02 +0800 Subject: [PATCH 210/373] feat: update --- lib/Model/MultiplayLeaveResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayLeaveResult.php diff --git a/lib/Model/MultiplayLeaveResult.php b/lib/Model/MultiplayLeaveResult.php new file mode 100644 index 000000000..61430f54b --- /dev/null +++ b/lib/Model/MultiplayLeaveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 692dc1d73b33aceae21095eecde4e088ba6da619 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:03 +0800 Subject: [PATCH 211/373] feat: update --- lib/Model/MultiplayLeaveResultModel.php | 257 ++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayLeaveResultModel.php diff --git a/lib/Model/MultiplayLeaveResultModel.php b/lib/Model/MultiplayLeaveResultModel.php new file mode 100644 index 000000000..0b283abb6 --- /dev/null +++ b/lib/Model/MultiplayLeaveResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cc1d2838f03167dfb199c2875aeed17d9b883ce4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:05 +0800 Subject: [PATCH 212/373] feat: update --- lib/Model/MultiplayModifyForms.php | 287 +++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayModifyForms.php diff --git a/lib/Model/MultiplayModifyForms.php b/lib/Model/MultiplayModifyForms.php new file mode 100644 index 000000000..fbda05d9b --- /dev/null +++ b/lib/Model/MultiplayModifyForms.php @@ -0,0 +1,287 @@ + 'string', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyFormsTokens[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null, +'tokens' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId', +'tokens' => 'tokens' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId', +'tokens' => 'setTokens' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId', +'tokens' => 'getTokens' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyFormsTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyFormsTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 138cd23a63f31aec2793c1535efeb4fcda494343 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:06 +0800 Subject: [PATCH 213/373] feat: update --- lib/Model/MultiplayModifyFormsTokens.php | 287 +++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/MultiplayModifyFormsTokens.php diff --git a/lib/Model/MultiplayModifyFormsTokens.php b/lib/Model/MultiplayModifyFormsTokens.php new file mode 100644 index 000000000..a7f65c566 --- /dev/null +++ b/lib/Model/MultiplayModifyFormsTokens.php @@ -0,0 +1,287 @@ + 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'token_id' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'token_id' => 'tokenId', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'token_id' => 'setTokenId', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'token_id' => 'getTokenId', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d627e413d0693ff6c80e83b5181db02eca7a7b2a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:07 +0800 Subject: [PATCH 214/373] feat: update --- lib/Model/MultiplayModifyResult.php | 347 ++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayModifyResult.php diff --git a/lib/Model/MultiplayModifyResult.php b/lib/Model/MultiplayModifyResult.php new file mode 100644 index 000000000..ba570f404 --- /dev/null +++ b/lib/Model/MultiplayModifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b7b84458a9318f6b74ee9271c85247b7b14051ab Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:09 +0800 Subject: [PATCH 215/373] feat: update --- lib/Model/MultiplayModifyResultModel.php | 257 +++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayModifyResultModel.php diff --git a/lib/Model/MultiplayModifyResultModel.php b/lib/Model/MultiplayModifyResultModel.php new file mode 100644 index 000000000..2cd86ebcd --- /dev/null +++ b/lib/Model/MultiplayModifyResultModel.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'data_ver' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'data_ver' => 'dataVer' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'data_ver' => 'setDataVer' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'data_ver' => 'getDataVer' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + } + + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3930194882353a70336cf226fe014b7ebaf2b349 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:10 +0800 Subject: [PATCH 216/373] feat: update --- lib/Model/MultiplayQueryForms.php | 257 ++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/MultiplayQueryForms.php diff --git a/lib/Model/MultiplayQueryForms.php b/lib/Model/MultiplayQueryForms.php new file mode 100644 index 000000000..72fde7a9d --- /dev/null +++ b/lib/Model/MultiplayQueryForms.php @@ -0,0 +1,257 @@ + 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'mp_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'mp_id' => 'mpId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mp_id' => 'setMpId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mp_id' => 'getMpId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + } + + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 23b92bffdc915a29614f30115dc0ee12472f1269 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:11 +0800 Subject: [PATCH 217/373] feat: update --- lib/Model/MultiplayQueryResult.php | 347 +++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayQueryResult.php diff --git a/lib/Model/MultiplayQueryResult.php b/lib/Model/MultiplayQueryResult.php new file mode 100644 index 000000000..de33b3c1c --- /dev/null +++ b/lib/Model/MultiplayQueryResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 79220ea98796947c9d75889e97b8a0439edd2792 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:13 +0800 Subject: [PATCH 218/373] feat: update --- lib/Model/MultiplayQueryResultModel.php | 407 ++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/MultiplayQueryResultModel.php diff --git a/lib/Model/MultiplayQueryResultModel.php b/lib/Model/MultiplayQueryResultModel.php new file mode 100644 index 000000000..e21a75d43 --- /dev/null +++ b/lib/Model/MultiplayQueryResultModel.php @@ -0,0 +1,407 @@ + 'string', +'end_ts' => 'int', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[]', +'data_ver' => 'string', +'mp_id' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelConfig' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'creator_token_id' => null, +'end_ts' => 'int64', +'tokens' => null, +'data_ver' => null, +'mp_id' => null, +'config' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'creator_token_id' => 'creatorTokenId', +'end_ts' => 'endTs', +'tokens' => 'tokens', +'data_ver' => 'dataVer', +'mp_id' => 'mpId', +'config' => 'config' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'creator_token_id' => 'setCreatorTokenId', +'end_ts' => 'setEndTs', +'tokens' => 'setTokens', +'data_ver' => 'setDataVer', +'mp_id' => 'setMpId', +'config' => 'setConfig' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'creator_token_id' => 'getCreatorTokenId', +'end_ts' => 'getEndTs', +'tokens' => 'getTokens', +'data_ver' => 'getDataVer', +'mp_id' => 'getMpId', +'config' => 'getConfig' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['creator_token_id'] = isset($data['creator_token_id']) ? $data['creator_token_id'] : null; + $this->container['end_ts'] = isset($data['end_ts']) ? $data['end_ts'] : null; + $this->container['tokens'] = isset($data['tokens']) ? $data['tokens'] : null; + $this->container['data_ver'] = isset($data['data_ver']) ? $data['data_ver'] : null; + $this->container['mp_id'] = isset($data['mp_id']) ? $data['mp_id'] : null; + $this->container['config'] = isset($data['config']) ? $data['config'] : null; + } + + + /** + * Gets creator_token_id + * + * @return string + */ + public function getCreatorTokenId() + { + return $this->container['creator_token_id']; + } + + /** + * Sets creator_token_id + * + * @param string $creator_token_id creator_token_id + * + * @return $this + */ + public function setCreatorTokenId($creator_token_id) + { + $this->container['creator_token_id'] = $creator_token_id; + + return $this; + } + + /** + * Gets end_ts + * + * @return int + */ + public function getEndTs() + { + return $this->container['end_ts']; + } + + /** + * Sets end_ts + * + * @param int $end_ts end_ts + * + * @return $this + */ + public function setEndTs($end_ts) + { + $this->container['end_ts'] = $end_ts; + + return $this; + } + + /** + * Gets tokens + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[] $tokens tokens + * + * @return $this + */ + public function setTokens($tokens) + { + $this->container['tokens'] = $tokens; + + return $this; + } + + /** + * Gets data_ver + * + * @return string + */ + public function getDataVer() + { + return $this->container['data_ver']; + } + + /** + * Sets data_ver + * + * @param string $data_ver data_ver + * + * @return $this + */ + public function setDataVer($data_ver) + { + $this->container['data_ver'] = $data_ver; + + return $this; + } + + /** + * Gets mp_id + * + * @return string + */ + public function getMpId() + { + return $this->container['mp_id']; + } + + /** + * Sets mp_id + * + * @param string $mp_id mp_id + * + * @return $this + */ + public function setMpId($mp_id) + { + $this->container['mp_id'] = $mp_id; + + return $this; + } + + /** + * Gets config + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelConfig $config config + * + * @return $this + */ + public function setConfig($config) + { + $this->container['config'] = $config; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6c52b2f591cbbb6c377b05513f53a8afdac350b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:14 +0800 Subject: [PATCH 219/373] feat: update --- lib/Model/MultiplayQueryResultModelConfig.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayQueryResultModelConfig.php diff --git a/lib/Model/MultiplayQueryResultModelConfig.php b/lib/Model/MultiplayQueryResultModelConfig.php new file mode 100644 index 000000000..91891c113 --- /dev/null +++ b/lib/Model/MultiplayQueryResultModelConfig.php @@ -0,0 +1,347 @@ + 'int', +'host_timeout' => 'int', +'connect_timeout' => 'int', +'input_timeout' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'max_token' => null, +'host_timeout' => null, +'connect_timeout' => null, +'input_timeout' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'max_token' => 'maxToken', +'host_timeout' => 'hostTimeout', +'connect_timeout' => 'connectTimeout', +'input_timeout' => 'inputTimeout' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'max_token' => 'setMaxToken', +'host_timeout' => 'setHostTimeout', +'connect_timeout' => 'setConnectTimeout', +'input_timeout' => 'setInputTimeout' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'max_token' => 'getMaxToken', +'host_timeout' => 'getHostTimeout', +'connect_timeout' => 'getConnectTimeout', +'input_timeout' => 'getInputTimeout' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['max_token'] = isset($data['max_token']) ? $data['max_token'] : null; + $this->container['host_timeout'] = isset($data['host_timeout']) ? $data['host_timeout'] : null; + $this->container['connect_timeout'] = isset($data['connect_timeout']) ? $data['connect_timeout'] : null; + $this->container['input_timeout'] = isset($data['input_timeout']) ? $data['input_timeout'] : null; + } + + + /** + * Gets max_token + * + * @return int + */ + public function getMaxToken() + { + return $this->container['max_token']; + } + + /** + * Sets max_token + * + * @param int $max_token max_token + * + * @return $this + */ + public function setMaxToken($max_token) + { + $this->container['max_token'] = $max_token; + + return $this; + } + + /** + * Gets host_timeout + * + * @return int + */ + public function getHostTimeout() + { + return $this->container['host_timeout']; + } + + /** + * Sets host_timeout + * + * @param int $host_timeout host_timeout + * + * @return $this + */ + public function setHostTimeout($host_timeout) + { + $this->container['host_timeout'] = $host_timeout; + + return $this; + } + + /** + * Gets connect_timeout + * + * @return int + */ + public function getConnectTimeout() + { + return $this->container['connect_timeout']; + } + + /** + * Sets connect_timeout + * + * @param int $connect_timeout connect_timeout + * + * @return $this + */ + public function setConnectTimeout($connect_timeout) + { + $this->container['connect_timeout'] = $connect_timeout; + + return $this; + } + + /** + * Gets input_timeout + * + * @return int + */ + public function getInputTimeout() + { + return $this->container['input_timeout']; + } + + /** + * Sets input_timeout + * + * @param int $input_timeout input_timeout + * + * @return $this + */ + public function setInputTimeout($input_timeout) + { + $this->container['input_timeout'] = $input_timeout; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6ce9a17653d1481f72b4da17d8570023ed255d6d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:15 +0800 Subject: [PATCH 220/373] feat: update --- lib/Model/MultiplayQueryResultModelTokens.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/MultiplayQueryResultModelTokens.php diff --git a/lib/Model/MultiplayQueryResultModelTokens.php b/lib/Model/MultiplayQueryResultModelTokens.php new file mode 100644 index 000000000..db5e13cbe --- /dev/null +++ b/lib/Model/MultiplayQueryResultModelTokens.php @@ -0,0 +1,347 @@ + 'string', +'token_id' => 'string', +'session' => 'string', +'control_id' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'token_id' => null, +'session' => null, +'control_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'token_id' => 'tokenId', +'session' => 'session', +'control_id' => 'controlId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'token_id' => 'setTokenId', +'session' => 'setSession', +'control_id' => 'setControlId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'token_id' => 'getTokenId', +'session' => 'getSession', +'control_id' => 'getControlId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['token_id'] = isset($data['token_id']) ? $data['token_id'] : null; + $this->container['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['control_id'] = isset($data['control_id']) ? $data['control_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets token_id + * + * @return string + */ + public function getTokenId() + { + return $this->container['token_id']; + } + + /** + * Sets token_id + * + * @param string $token_id token_id + * + * @return $this + */ + public function setTokenId($token_id) + { + $this->container['token_id'] = $token_id; + + return $this; + } + + /** + * Gets session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets control_id + * + * @return int + */ + public function getControlId() + { + return $this->container['control_id']; + } + + /** + * Sets control_id + * + * @param int $control_id control_id + * + * @return $this + */ + public function setControlId($control_id) + { + $this->container['control_id'] = $control_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d130edd86a6ff7880a0b79942f41947802a3ff83 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:17 +0800 Subject: [PATCH 221/373] feat: update --- lib/Model/QueryGameHangForms.php | 287 +++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/QueryGameHangForms.php diff --git a/lib/Model/QueryGameHangForms.php b/lib/Model/QueryGameHangForms.php new file mode 100644 index 000000000..3cbe170e3 --- /dev/null +++ b/lib/Model/QueryGameHangForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5b65094588d1a56bdbd3fc5d33d487c858720917 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:18 +0800 Subject: [PATCH 222/373] feat: update --- lib/Model/QueryGameHangResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/QueryGameHangResult.php diff --git a/lib/Model/QueryGameHangResult.php b/lib/Model/QueryGameHangResult.php new file mode 100644 index 000000000..4fb5f6679 --- /dev/null +++ b/lib/Model/QueryGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 423027a5b142f263e5ce9c1f15c679e3712cf3bd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:19 +0800 Subject: [PATCH 223/373] feat: update --- lib/Model/QueryGameHangResultModel.php | 437 +++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/QueryGameHangResultModel.php diff --git a/lib/Model/QueryGameHangResultModel.php b/lib/Model/QueryGameHangResultModel.php new file mode 100644 index 000000000..9e18f7e7b --- /dev/null +++ b/lib/Model/QueryGameHangResultModel.php @@ -0,0 +1,437 @@ + 'int', +'code' => 'string', +'start_hang_timestamp' => 'int', +'success' => 'bool', +'message' => 'string', +'hanging' => 'bool', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'duration' => 'int64', +'code' => null, +'start_hang_timestamp' => 'int64', +'success' => null, +'message' => null, +'hanging' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'duration' => 'duration', +'code' => 'code', +'start_hang_timestamp' => 'startHangTimestamp', +'success' => 'success', +'message' => 'message', +'hanging' => 'hanging', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'duration' => 'setDuration', +'code' => 'setCode', +'start_hang_timestamp' => 'setStartHangTimestamp', +'success' => 'setSuccess', +'message' => 'setMessage', +'hanging' => 'setHanging', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'duration' => 'getDuration', +'code' => 'getCode', +'start_hang_timestamp' => 'getStartHangTimestamp', +'success' => 'getSuccess', +'message' => 'getMessage', +'hanging' => 'getHanging', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['start_hang_timestamp'] = isset($data['start_hang_timestamp']) ? $data['start_hang_timestamp'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['hanging'] = isset($data['hanging']) ? $data['hanging'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration 挂机时长 + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets start_hang_timestamp + * + * @return int + */ + public function getStartHangTimestamp() + { + return $this->container['start_hang_timestamp']; + } + + /** + * Sets start_hang_timestamp + * + * @param int $start_hang_timestamp 开始挂机毫秒时间戳 + * + * @return $this + */ + public function setStartHangTimestamp($start_hang_timestamp) + { + $this->container['start_hang_timestamp'] = $start_hang_timestamp; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets hanging + * + * @return bool + */ + public function getHanging() + { + return $this->container['hanging']; + } + + /** + * Sets hanging + * + * @param bool $hanging 会话ID是否在挂机中 + * + * @return $this + */ + public function setHanging($hanging) + { + $this->container['hanging'] = $hanging; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7cef2505743bf5671abc86bc3aa7f9b03108bd11 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:21 +0800 Subject: [PATCH 224/373] feat: update --- lib/Model/QuerySessionStatusForms.php | 287 ++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/QuerySessionStatusForms.php diff --git a/lib/Model/QuerySessionStatusForms.php b/lib/Model/QuerySessionStatusForms.php new file mode 100644 index 000000000..f5700fb2e --- /dev/null +++ b/lib/Model/QuerySessionStatusForms.php @@ -0,0 +1,287 @@ + 'string', +'app_key' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f761dea4c853440289f277c049795fb2b3947086 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:22 +0800 Subject: [PATCH 225/373] feat: update --- lib/Model/QuerySessionStatusResult.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/QuerySessionStatusResult.php diff --git a/lib/Model/QuerySessionStatusResult.php b/lib/Model/QuerySessionStatusResult.php new file mode 100644 index 000000000..2f98de78e --- /dev/null +++ b/lib/Model/QuerySessionStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e4521304f43f78326d74ab0f28f5c16af2e8afff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:23 +0800 Subject: [PATCH 226/373] feat: update --- lib/Model/QuerySessionStatusResultModel.php | 647 ++++++++++++++++++++ 1 file changed, 647 insertions(+) create mode 100644 lib/Model/QuerySessionStatusResultModel.php diff --git a/lib/Model/QuerySessionStatusResultModel.php b/lib/Model/QuerySessionStatusResultModel.php new file mode 100644 index 000000000..2b9462cf0 --- /dev/null +++ b/lib/Model/QuerySessionStatusResultModel.php @@ -0,0 +1,647 @@ + 'string', +'code' => 'string', +'message' => 'string', +'account_id' => 'string', +'dispatch_time' => 'int', +'user_level' => 'int', +'region_id' => 'string', +'success' => 'bool', +'tenant_id' => 'int', +'stop_time' => 'int', +'play_time' => 'int', +'project_id' => 'string', +'game_session' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'code' => null, +'message' => null, +'account_id' => null, +'dispatch_time' => 'int64', +'user_level' => null, +'region_id' => null, +'success' => null, +'tenant_id' => 'int64', +'stop_time' => 'int64', +'play_time' => 'int64', +'project_id' => null, +'game_session' => null, +'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'code' => 'code', +'message' => 'message', +'account_id' => 'accountId', +'dispatch_time' => 'dispatchTime', +'user_level' => 'userLevel', +'region_id' => 'regionId', +'success' => 'success', +'tenant_id' => 'tenantId', +'stop_time' => 'stopTime', +'play_time' => 'playTime', +'project_id' => 'projectId', +'game_session' => 'gameSession', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'code' => 'setCode', +'message' => 'setMessage', +'account_id' => 'setAccountId', +'dispatch_time' => 'setDispatchTime', +'user_level' => 'setUserLevel', +'region_id' => 'setRegionId', +'success' => 'setSuccess', +'tenant_id' => 'setTenantId', +'stop_time' => 'setStopTime', +'play_time' => 'setPlayTime', +'project_id' => 'setProjectId', +'game_session' => 'setGameSession', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'code' => 'getCode', +'message' => 'getMessage', +'account_id' => 'getAccountId', +'dispatch_time' => 'getDispatchTime', +'user_level' => 'getUserLevel', +'region_id' => 'getRegionId', +'success' => 'getSuccess', +'tenant_id' => 'getTenantId', +'stop_time' => 'getStopTime', +'play_time' => 'getPlayTime', +'project_id' => 'getProjectId', +'game_session' => 'getGameSession', +'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['dispatch_time'] = isset($data['dispatch_time']) ? $data['dispatch_time'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['tenant_id'] = isset($data['tenant_id']) ? $data['tenant_id'] : null; + $this->container['stop_time'] = isset($data['stop_time']) ? $data['stop_time'] : null; + $this->container['play_time'] = isset($data['play_time']) ? $data['play_time'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id 会话归属的游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 会话所属用户ID + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets dispatch_time + * + * @return int + */ + public function getDispatchTime() + { + return $this->container['dispatch_time']; + } + + /** + * Sets dispatch_time + * + * @param int $dispatch_time 会话调度毫秒时间戳 + * + * @return $this + */ + public function setDispatchTime($dispatch_time) + { + $this->container['dispatch_time'] = $dispatch_time; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level 会话调度用户等级 + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 会话调度大区ID + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets tenant_id + * + * @return int + */ + public function getTenantId() + { + return $this->container['tenant_id']; + } + + /** + * Sets tenant_id + * + * @param int $tenant_id 会话归属的租户ID + * + * @return $this + */ + public function setTenantId($tenant_id) + { + $this->container['tenant_id'] = $tenant_id; + + return $this; + } + + /** + * Gets stop_time + * + * @return int + */ + public function getStopTime() + { + return $this->container['stop_time']; + } + + /** + * Sets stop_time + * + * @param int $stop_time 会话停止毫秒时间戳 + * + * @return $this + */ + public function setStopTime($stop_time) + { + $this->container['stop_time'] = $stop_time; + + return $this; + } + + /** + * Gets play_time + * + * @return int + */ + public function getPlayTime() + { + return $this->container['play_time']; + } + + /** + * Sets play_time + * + * @param int $play_time 用户开始游戏毫秒时间戳 + * + * @return $this + */ + public function setPlayTime($play_time) + { + $this->container['play_time'] = $play_time; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id 会话归属的项目ID + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 会话当前状态:STARTED: 运行中,STOPPED: 已停止 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 6eb6199e261fd57d11d85a3a6136db4ad30058ae Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:25 +0800 Subject: [PATCH 227/373] feat: update --- lib/Model/ReplaceSlotForms.php | 647 +++++++++++++++++++++++++++++++++ 1 file changed, 647 insertions(+) create mode 100644 lib/Model/ReplaceSlotForms.php diff --git a/lib/Model/ReplaceSlotForms.php b/lib/Model/ReplaceSlotForms.php new file mode 100644 index 000000000..a873c6ddc --- /dev/null +++ b/lib/Model/ReplaceSlotForms.php @@ -0,0 +1,647 @@ + 'string', +'account_id' => 'string', +'game_id' => 'string', +'app_key' => 'string', +'biz_param' => 'string', +'client_ip' => 'string', +'tags' => 'string', +'codec' => 'int', +'resolution' => 'int', +'bit_rate' => 'int', +'fps' => 'int', +'game_cmd_param' => 'string', +'user_level' => 'int', +'start_param' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotFormsStartParam' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'replace_session' => null, +'account_id' => null, +'game_id' => null, +'app_key' => null, +'biz_param' => null, +'client_ip' => null, +'tags' => null, +'codec' => 'int32', +'resolution' => 'int32', +'bit_rate' => 'int32', +'fps' => 'int32', +'game_cmd_param' => null, +'user_level' => 'int32', +'start_param' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'replace_session' => 'replaceSession', +'account_id' => 'accountId', +'game_id' => 'gameId', +'app_key' => 'appKey', +'biz_param' => 'bizParam', +'client_ip' => 'clientIp', +'tags' => 'tags', +'codec' => 'codec', +'resolution' => 'resolution', +'bit_rate' => 'bitRate', +'fps' => 'fps', +'game_cmd_param' => 'gameCmdParam', +'user_level' => 'userLevel', +'start_param' => 'startParam' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'replace_session' => 'setReplaceSession', +'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'biz_param' => 'setBizParam', +'client_ip' => 'setClientIp', +'tags' => 'setTags', +'codec' => 'setCodec', +'resolution' => 'setResolution', +'bit_rate' => 'setBitRate', +'fps' => 'setFps', +'game_cmd_param' => 'setGameCmdParam', +'user_level' => 'setUserLevel', +'start_param' => 'setStartParam' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'replace_session' => 'getReplaceSession', +'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'biz_param' => 'getBizParam', +'client_ip' => 'getClientIp', +'tags' => 'getTags', +'codec' => 'getCodec', +'resolution' => 'getResolution', +'bit_rate' => 'getBitRate', +'fps' => 'getFps', +'game_cmd_param' => 'getGameCmdParam', +'user_level' => 'getUserLevel', +'start_param' => 'getStartParam' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['replace_session'] = isset($data['replace_session']) ? $data['replace_session'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['biz_param'] = isset($data['biz_param']) ? $data['biz_param'] : null; + $this->container['client_ip'] = isset($data['client_ip']) ? $data['client_ip'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['codec'] = isset($data['codec']) ? $data['codec'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['bit_rate'] = isset($data['bit_rate']) ? $data['bit_rate'] : null; + $this->container['fps'] = isset($data['fps']) ? $data['fps'] : null; + $this->container['game_cmd_param'] = isset($data['game_cmd_param']) ? $data['game_cmd_param'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['start_param'] = isset($data['start_param']) ? $data['start_param'] : null; + } + + + /** + * Gets replace_session + * + * @return string + */ + public function getReplaceSession() + { + return $this->container['replace_session']; + } + + /** + * Sets replace_session + * + * @param string $replace_session replace_session + * + * @return $this + */ + public function setReplaceSession($replace_session) + { + $this->container['replace_session'] = $replace_session; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets biz_param + * + * @return string + */ + public function getBizParam() + { + return $this->container['biz_param']; + } + + /** + * Sets biz_param + * + * @param string $biz_param biz_param + * + * @return $this + */ + public function setBizParam($biz_param) + { + $this->container['biz_param'] = $biz_param; + + return $this; + } + + /** + * Gets client_ip + * + * @return string + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string $client_ip client_ip + * + * @return $this + */ + public function setClientIp($client_ip) + { + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets codec + * + * @return int + */ + public function getCodec() + { + return $this->container['codec']; + } + + /** + * Sets codec + * + * @param int $codec codec + * + * @return $this + */ + public function setCodec($codec) + { + $this->container['codec'] = $codec; + + return $this; + } + + /** + * Gets resolution + * + * @return int + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param int $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets bit_rate + * + * @return int + */ + public function getBitRate() + { + return $this->container['bit_rate']; + } + + /** + * Sets bit_rate + * + * @param int $bit_rate bit_rate + * + * @return $this + */ + public function setBitRate($bit_rate) + { + $this->container['bit_rate'] = $bit_rate; + + return $this; + } + + /** + * Gets fps + * + * @return int + */ + public function getFps() + { + return $this->container['fps']; + } + + /** + * Sets fps + * + * @param int $fps fps + * + * @return $this + */ + public function setFps($fps) + { + $this->container['fps'] = $fps; + + return $this; + } + + /** + * Gets game_cmd_param + * + * @return string + */ + public function getGameCmdParam() + { + return $this->container['game_cmd_param']; + } + + /** + * Sets game_cmd_param + * + * @param string $game_cmd_param game_cmd_param + * + * @return $this + */ + public function setGameCmdParam($game_cmd_param) + { + $this->container['game_cmd_param'] = $game_cmd_param; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level user_level + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets start_param + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotFormsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotFormsStartParam $start_param start_param + * + * @return $this + */ + public function setStartParam($start_param) + { + $this->container['start_param'] = $start_param; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c48697eee3be2f253c07083848bd1e270da8cec6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:26 +0800 Subject: [PATCH 228/373] feat: update --- lib/Model/ReplaceSlotFormsStartParam.php | Bin 0 -> 19765 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 lib/Model/ReplaceSlotFormsStartParam.php diff --git a/lib/Model/ReplaceSlotFormsStartParam.php b/lib/Model/ReplaceSlotFormsStartParam.php new file mode 100644 index 0000000000000000000000000000000000000000..b1c785ff59afac4cf29bd5d82a26f86a621f041d GIT binary patch literal 19765 zcmd5^-EZ7B62E8v6?|C0c94r-uJ@2!+HCALb%P{^Hz^P#!9rfqwwm=ym9%c1BLDl% zki&0Eq}I7Z1GHX|L(a!f zSJIiJqp*{D#g6Nn8|fAZ>vUIIq05c)9?MY$Kc

PRm#l}v8^rgK zpa(kjmp!{JTGsU~c(y7#5778W65%8jzrS#NKtl5yR@B>bihV z12IYSvS}T~x>Z{>{W4@D)S`hoQhibN%N9oIWyjZ-%c3kAV@*Oq2)e14Fag{}WbL{l zMUsI{;)>IgC zX{s7=XQCMKW+|WXXKJC8RK85bp&wI4;KOdY@n0;D`tAcc0o`+yruhZt&X)JvcEbux zDCD3E2@-N{wij!dRcLa#+-_DF{Y(z|Vw^rW6ohgT#3s}i4i}Ff({v;#p9sRQ-fTFa z%H$}#uQC*eS?UmNQlX-UDf?pE!)*4)HE+3?;y?2{R(0a%x?a)z|B$TCVCWK6x5awP z6`hkR5T$Bhr3Pw#RoDf&ftKf0(Too`7zA@M-9~0vG3%bfr2CJNnN~XaxtV{>IHiUn znxs!)3WiD*MQTJ+1@B-chH7tQ63?e%GKNZTfU=*Vc4VN!suMjuYmJpGYW|_;(-I{S z-T9*z7XA!#wdg|F1(GFqiiUz?nzEr6Z#dJoXpx0Gs?nq59vj<)F@BY6D@ipn%nk$p3K~NREf(afqicIQv-HFK3q{zXj zNG1`fEOtQzW_YBM=W@P>p(mK*t-(e6K7?Kk16U8aJW~T&#|~h?VI_BRSsY%$vl__k zc_)WCm6OAmX;SiJ+(~YUIUa~!jzt~RA7i?UfoGY+cYPp}RviyLO*RyLKrolN@IU|p z!3)TU2V)TGT@ggw#B*VwMcp$Z(TFt?jMSZuM>JOuj@Z*^L;``d+(r1)|Ylh5DRe1+tuA)nr4#3IyZ93IwCU3ia8+3bdKQYQ!1| zR_bm%Sh1(kUruma7bU~mtrW?Mk8!iQ-L8P4-+O~cHmZL%D~rBh za}pOeeZ>}mv+v*tDMStaha0qFj~}(u+uX$2*=W#~UoORlI?8w;c}h{_mb$;^Fzc_Y z?w{XlwLjP!#-G3lRR`g4Ai8kt4%rV|qCt zA|w{SNNqk_T%`~36LldY*(7Z`m51U|KVachT0ETc3^lIIc74FZuCrL!#Tgu|rB}eg zuCqAU#TgtvLu$VamP`S&0Wyp407Zrf%IsA+3>DT{%$z1^ZxFIs`zdktYyyi{*f`D5 zUJ3@xoJxz4Q=VZriak7r33%9b77M#LgM(R*1`Mn!tADFBqk9ny*11r?Bp|R@1$7w= z2llK2zC&~t`yrAHDTG70+hBnNF&c||tU80U+)4|WQL)v(BFyk~Yr!9Mtilv`17hJT z%5&s)w)O%x?#`dh$g9a;Q3JWv7-;0yhI~{rn-3g&h$yPt?rCJkq-qlprvs4vyF;ZTYiCNGBVKBR}3xki*fm6q6p%# zndvR9kC0_lBgoW@MpoaGlRm309sZ)CWLF`_km>>&ldTOvled64R-3l@=orokbPS;{ zqC`hZ$YzF)nV)_W+b}7Bj(xEN3~V~CVWo;1~DRK=QR zXq*s3BqdI^DqZ zn@mCIT=#M?Gd-puGPDvR^Sld0BG2`=V+Pd9n3OQf^^Uyrqbe#(0={S)Uw&)Siqgvz zKhp}?*}iWFnY;U3(tt-rme@zDc5wqW5?7^fJ96o~p>!^%hSM@1bi+A;v?26GbOY7U z=?QO8t1K*yQhK_p$~0_74tKJv%3S~wNSh5q-voqGW`yd4>3o@Yv62>Bx~P8-rE zYd|y_nRQy52FJ)Du`$oPK%;m5ea#7(yck;0b+>$MG~Wa?n$DNcjUG+L^e?}`l*m~q zeP+75G%%V};-VjSfkiAB%n{3gE_vX*uBjkyYz{#Wb1$NQ$h~-)>sclwJxys5# zo9Q_Xq9>Y!(kt8r(D=ENZ>Id=@OgL{G#}cyFbRa?jeHHPoFv|W#f$xZrbO%Wh%IJu zHfaZlx08MluiM2PL{j9OB@P%MGZnRN`R2PpC`7^q!Un$77W^Tx%t~{#&Ix-vwrI9_!m^+RTcVKJy`^1K`nJ>8Mcd04+#ZlyFL5E`;zi(N7u* zK}K^YHr&PFYPAR_)b}zwEmq;~d%o>0-ibJ}D19ki94tb;3LjQ2D{3sw^g0~6Ov7Wz zB0;hWc7e({Tm*^BvH959+!N5*q`sgoayF$};f?8+6>YY9YLzECO~Yo(BT=(U z?g5&(gyP#`Qou>A#0vnEL8B`$qcapK8Wl7OnxIsmMVn0tHd{Rfn&>neG(qivCQ1^Z z;T;s~7SOqP^%`DEZ1H{HOSoEn2^U}(|FeSkm>#j8iZy)drG`t>?H^Ug>C+(QGPpDp zcyX@yjA;bao>f42kO;@Y^8`#w7)8UX0h&wit z&$rM@+=wTQ<5$WhFJOC5h49Askhabpwt*{E^40E(0>7aG@6zvX0{m8zzN`;kHIqHF zU&XuQ@NUWl#}{1(+~Bs>JN;w!f-4TnUJr?b?+DN9@_r5yNj(VJ!;S!)JsVc)5j~5wHdV_(x;NZ(Y4v z^34kFbsk7*H3d@nABuYXxGV6Lk}n*-#IT_6M+yC Date: Thu, 24 Oct 2024 00:15:28 +0800 Subject: [PATCH 229/373] feat: update --- lib/Model/ReplaceSlotResult.php | 347 ++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/ReplaceSlotResult.php diff --git a/lib/Model/ReplaceSlotResult.php b/lib/Model/ReplaceSlotResult.php new file mode 100644 index 000000000..2b0f70be6 --- /dev/null +++ b/lib/Model/ReplaceSlotResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f259b549717bf93adc30ffc612afc205cfb9f8e8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:29 +0800 Subject: [PATCH 230/373] feat: update --- lib/Model/ReplaceSlotResultModel.php | 437 +++++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/ReplaceSlotResultModel.php diff --git a/lib/Model/ReplaceSlotResultModel.php b/lib/Model/ReplaceSlotResultModel.php new file mode 100644 index 000000000..aaae3ff1e --- /dev/null +++ b/lib/Model/ReplaceSlotResultModel.php @@ -0,0 +1,437 @@ + 'string', +'account_id' => 'string', +'code' => 'string', +'region_id' => 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'code' => null, +'region_id' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'code' => 'code', +'region_id' => 'regionId', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'code' => 'setCode', +'region_id' => 'setRegionId', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'code' => 'getCode', +'region_id' => 'getRegionId', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id region_id + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5215a312950076bce912c2fa212cdcfd78e20ddb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:31 +0800 Subject: [PATCH 231/373] feat: update --- lib/Model/SetGameAliveForms.php | 317 ++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/SetGameAliveForms.php diff --git a/lib/Model/SetGameAliveForms.php b/lib/Model/SetGameAliveForms.php new file mode 100644 index 000000000..49886ef96 --- /dev/null +++ b/lib/Model/SetGameAliveForms.php @@ -0,0 +1,317 @@ + 'string', +'app_key' => 'string', +'keep_alive' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null, +'keep_alive' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey', +'keep_alive' => 'keepAlive' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey', +'keep_alive' => 'setKeepAlive' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey', +'keep_alive' => 'getKeepAlive' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['keep_alive'] = isset($data['keep_alive']) ? $data['keep_alive'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets keep_alive + * + * @return int + */ + public function getKeepAlive() + { + return $this->container['keep_alive']; + } + + /** + * Sets keep_alive + * + * @param int $keep_alive 游戏可运行时长 + * + * @return $this + */ + public function setKeepAlive($keep_alive) + { + $this->container['keep_alive'] = $keep_alive; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 7f6ee450cdf7e816cfc98e937bf2d08f2f346e00 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:32 +0800 Subject: [PATCH 232/373] feat: update --- lib/Model/SetGameAliveResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameAliveResult.php diff --git a/lib/Model/SetGameAliveResult.php b/lib/Model/SetGameAliveResult.php new file mode 100644 index 000000000..d1dbce295 --- /dev/null +++ b/lib/Model/SetGameAliveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b6beeff71bf82860c8ffbee96c60bd81b03d9ce5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:34 +0800 Subject: [PATCH 233/373] feat: update --- lib/Model/SetGameAliveResultModel.php | 347 ++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameAliveResultModel.php diff --git a/lib/Model/SetGameAliveResultModel.php b/lib/Model/SetGameAliveResultModel.php new file mode 100644 index 000000000..e128e5334 --- /dev/null +++ b/lib/Model/SetGameAliveResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 857abc7e0734ae3724e632694cf62f8ca4980a8b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:35 +0800 Subject: [PATCH 234/373] feat: update --- lib/Model/SetGameHangForms.php | 347 +++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameHangForms.php diff --git a/lib/Model/SetGameHangForms.php b/lib/Model/SetGameHangForms.php new file mode 100644 index 000000000..93c4f3505 --- /dev/null +++ b/lib/Model/SetGameHangForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'duration' => 'int', +'kick_in_the_game' => 'bool' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session' => null, +'app_key' => null, +'duration' => 'int64', +'kick_in_the_game' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session' => 'gameSession', +'app_key' => 'appKey', +'duration' => 'duration', +'kick_in_the_game' => 'kickInTheGame' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session' => 'setGameSession', +'app_key' => 'setAppKey', +'duration' => 'setDuration', +'kick_in_the_game' => 'setKickInTheGame' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session' => 'getGameSession', +'app_key' => 'getAppKey', +'duration' => 'getDuration', +'kick_in_the_game' => 'getKickInTheGame' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['kick_in_the_game'] = isset($data['kick_in_the_game']) ? $data['kick_in_the_game'] : null; + } + + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 项目应用AK + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration 挂机时长 + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets kick_in_the_game + * + * @return bool + */ + public function getKickInTheGame() + { + return $this->container['kick_in_the_game']; + } + + /** + * Sets kick_in_the_game + * + * @param bool $kick_in_the_game 是否踢出游戏中用户 + * + * @return $this + */ + public function setKickInTheGame($kick_in_the_game) + { + $this->container['kick_in_the_game'] = $kick_in_the_game; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e08d6704d3b51a6f97c23810a6e16132a41742d6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:37 +0800 Subject: [PATCH 235/373] feat: update --- lib/Model/SetGameHangResult.php | 347 ++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/SetGameHangResult.php diff --git a/lib/Model/SetGameHangResult.php b/lib/Model/SetGameHangResult.php new file mode 100644 index 000000000..0e5715905 --- /dev/null +++ b/lib/Model/SetGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0a13cb707b04a767a23e4c33e6c2eb54ddc7f6d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:38 +0800 Subject: [PATCH 236/373] feat: update --- lib/Model/SetGameHangResultModel.php | 407 +++++++++++++++++++++++++++ 1 file changed, 407 insertions(+) create mode 100644 lib/Model/SetGameHangResultModel.php diff --git a/lib/Model/SetGameHangResultModel.php b/lib/Model/SetGameHangResultModel.php new file mode 100644 index 000000000..450b45198 --- /dev/null +++ b/lib/Model/SetGameHangResultModel.php @@ -0,0 +1,407 @@ + 'int', +'code' => 'string', +'start_hang_timestamp' => 'int', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'duration' => 'int64', +'code' => null, +'start_hang_timestamp' => 'int64', +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'duration' => 'duration', +'code' => 'code', +'start_hang_timestamp' => 'startHangTimestamp', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'duration' => 'setDuration', +'code' => 'setCode', +'start_hang_timestamp' => 'setStartHangTimestamp', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'duration' => 'getDuration', +'code' => 'getCode', +'start_hang_timestamp' => 'getStartHangTimestamp', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['start_hang_timestamp'] = isset($data['start_hang_timestamp']) ? $data['start_hang_timestamp'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration 挂机时长,单位:秒 + * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 错误Code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets start_hang_timestamp + * + * @return int + */ + public function getStartHangTimestamp() + { + return $this->container['start_hang_timestamp']; + } + + /** + * Sets start_hang_timestamp + * + * @param int $start_hang_timestamp 开始挂机毫秒时间戳 + * + * @return $this + */ + public function setStartHangTimestamp($start_hang_timestamp) + { + $this->container['start_hang_timestamp'] = $start_hang_timestamp; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 设置是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 错误Message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话ID + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d2715a56c9a594414762e57e3badd60ee035670c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:39 +0800 Subject: [PATCH 237/373] feat: update --- lib/Model/StopGameForms.php | 377 ++++++++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/StopGameForms.php diff --git a/lib/Model/StopGameForms.php b/lib/Model/StopGameForms.php new file mode 100644 index 000000000..b59cd21b1 --- /dev/null +++ b/lib/Model/StopGameForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'app_key' => 'string', +'game_session' => 'string', +'reason' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'app_key' => null, +'game_session' => null, +'reason' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'app_key' => 'appKey', +'game_session' => 'gameSession', +'reason' => 'reason' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'game_session' => 'setGameSession', +'reason' => 'setReason' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'game_session' => 'getGameSession', +'reason' => 'getReason' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 调度成功返回的GameSession + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + + /** + * Gets reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason 端侧从Paas sdk获取的调度业务参数 + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c698a22d56fa8e1a8e1012e334467f4dee5636ff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:41 +0800 Subject: [PATCH 238/373] feat: update --- lib/Model/StopGameResult.php | 347 +++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/StopGameResult.php diff --git a/lib/Model/StopGameResult.php b/lib/Model/StopGameResult.php new file mode 100644 index 000000000..4a3f74b40 --- /dev/null +++ b/lib/Model/StopGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info 错误信息 + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code 错误码 + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 53403320d925f26e0563def6259b904bf1c13f67 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:42 +0800 Subject: [PATCH 239/373] feat: update --- lib/Model/StopGameResultModel.php | 377 ++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/StopGameResultModel.php diff --git a/lib/Model/StopGameResultModel.php b/lib/Model/StopGameResultModel.php new file mode 100644 index 000000000..8d5593389 --- /dev/null +++ b/lib/Model/StopGameResultModel.php @@ -0,0 +1,377 @@ + 'string', +'code' => 'string', +'success' => 'bool', +'message' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'code' => null, +'success' => null, +'message' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'code' => 'code', +'success' => 'success', +'message' => 'message', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'code' => 'setCode', +'success' => 'setSuccess', +'message' => 'setMessage', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'code' => 'getCode', +'success' => 'getSuccess', +'message' => 'getMessage', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话标识 + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From e8df1f0a1416d5c71146643bb257b6d5298b2709 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:44 +0800 Subject: [PATCH 240/373] feat: update --- lib/Model/StopPreopenContainerForms.php | 317 ++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/StopPreopenContainerForms.php diff --git a/lib/Model/StopPreopenContainerForms.php b/lib/Model/StopPreopenContainerForms.php new file mode 100644 index 000000000..09b1791e0 --- /dev/null +++ b/lib/Model/StopPreopenContainerForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'number_of_batches' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_id' => null, +'number_of_batches' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_id' => 'gameId', +'number_of_batches' => 'numberOfBatches' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_id' => 'setGameId', +'number_of_batches' => 'setNumberOfBatches' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_id' => 'getGameId', +'number_of_batches' => 'getNumberOfBatches' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['number_of_batches'] = isset($data['number_of_batches']) ? $data['number_of_batches'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key 云游戏项目appKey + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id 云游戏平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets number_of_batches + * + * @return int + */ + public function getNumberOfBatches() + { + return $this->container['number_of_batches']; + } + + /** + * Sets number_of_batches + * + * @param int $number_of_batches number_of_batches + * + * @return $this + */ + public function setNumberOfBatches($number_of_batches) + { + $this->container['number_of_batches'] = $number_of_batches; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3808a8e108521922197505f14b34a367a4f0c123 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:46 +0800 Subject: [PATCH 241/373] feat: update --- lib/Model/StopPreopenContainerResult.php | 347 +++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/StopPreopenContainerResult.php diff --git a/lib/Model/StopPreopenContainerResult.php b/lib/Model/StopPreopenContainerResult.php new file mode 100644 index 000000000..9206b5062 --- /dev/null +++ b/lib/Model/StopPreopenContainerResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 是否成功 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model 返回值 + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info 错误信息 + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code 错误码 + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f1631b8b68c0c086290a43ee19c97a290b4ff00e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:47 +0800 Subject: [PATCH 242/373] feat: update --- lib/Model/TryToGetSlotForms.php | 677 ++++++++++++++++++++++++++++++++ 1 file changed, 677 insertions(+) create mode 100644 lib/Model/TryToGetSlotForms.php diff --git a/lib/Model/TryToGetSlotForms.php b/lib/Model/TryToGetSlotForms.php new file mode 100644 index 000000000..50d6d8c6f --- /dev/null +++ b/lib/Model/TryToGetSlotForms.php @@ -0,0 +1,677 @@ + 'string', +'game_id' => 'string', +'app_key' => 'string', +'region_id' => 'string', +'re_connect' => 'bool', +'biz_param' => 'string', +'client_ip' => 'string', +'tags' => 'string', +'user_level' => 'int', +'codec' => 'int', +'resolution' => 'int', +'bit_rate' => 'int', +'fps' => 'int', +'game_cmd_param' => 'string', +'start_param' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotFormsStartParam' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'app_key' => null, +'region_id' => null, +'re_connect' => null, +'biz_param' => null, +'client_ip' => null, +'tags' => null, +'user_level' => 'int32', +'codec' => 'int32', +'resolution' => 'int32', +'bit_rate' => 'int32', +'fps' => 'int32', +'game_cmd_param' => null, +'start_param' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'app_key' => 'appKey', +'region_id' => 'regionId', +'re_connect' => 'reConnect', +'biz_param' => 'bizParam', +'client_ip' => 'clientIp', +'tags' => 'tags', +'user_level' => 'userLevel', +'codec' => 'codec', +'resolution' => 'resolution', +'bit_rate' => 'bitRate', +'fps' => 'fps', +'game_cmd_param' => 'gameCmdParam', +'start_param' => 'startParam' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'app_key' => 'setAppKey', +'region_id' => 'setRegionId', +'re_connect' => 'setReConnect', +'biz_param' => 'setBizParam', +'client_ip' => 'setClientIp', +'tags' => 'setTags', +'user_level' => 'setUserLevel', +'codec' => 'setCodec', +'resolution' => 'setResolution', +'bit_rate' => 'setBitRate', +'fps' => 'setFps', +'game_cmd_param' => 'setGameCmdParam', +'start_param' => 'setStartParam' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'app_key' => 'getAppKey', +'region_id' => 'getRegionId', +'re_connect' => 'getReConnect', +'biz_param' => 'getBizParam', +'client_ip' => 'getClientIp', +'tags' => 'getTags', +'user_level' => 'getUserLevel', +'codec' => 'getCodec', +'resolution' => 'getResolution', +'bit_rate' => 'getBitRate', +'fps' => 'getFps', +'game_cmd_param' => 'getGameCmdParam', +'start_param' => 'getStartParam' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['re_connect'] = isset($data['re_connect']) ? $data['re_connect'] : null; + $this->container['biz_param'] = isset($data['biz_param']) ? $data['biz_param'] : null; + $this->container['client_ip'] = isset($data['client_ip']) ? $data['client_ip'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['codec'] = isset($data['codec']) ? $data['codec'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['bit_rate'] = isset($data['bit_rate']) ? $data['bit_rate'] : null; + $this->container['fps'] = isset($data['fps']) ? $data['fps'] : null; + $this->container['game_cmd_param'] = isset($data['game_cmd_param']) ? $data['game_cmd_param'] : null; + $this->container['start_param'] = isset($data['start_param']) ? $data['start_param'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台部署的游戏Id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key Paas平台AK(应用的AK,非服务端AK) + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 需要调度的区域 + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets re_connect + * + * @return bool + */ + public function getReConnect() + { + return $this->container['re_connect']; + } + + /** + * Sets re_connect + * + * @param bool $re_connect false代表不使用断线重连,开启新游戏 + * + * @return $this + */ + public function setReConnect($re_connect) + { + $this->container['re_connect'] = $re_connect; + + return $this; + } + + /** + * Gets biz_param + * + * @return string + */ + public function getBizParam() + { + return $this->container['biz_param']; + } + + /** + * Sets biz_param + * + * @param string $biz_param 端侧从Paas sdk获取的调度业务参数 + * + * @return $this + */ + public function setBizParam($biz_param) + { + $this->container['biz_param'] = $biz_param; + + return $this; + } + + /** + * Gets client_ip + * + * @return string + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string $client_ip App端公网ip + * + * @return $this + */ + public function setClientIp($client_ip) + { + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags 标签之间用半角逗号分隔 + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level 调度等级 + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets codec + * + * @return int + */ + public function getCodec() + { + return $this->container['codec']; + } + + /** + * Sets codec + * + * @param int $codec 编码 + * + * @return $this + */ + public function setCodec($codec) + { + $this->container['codec'] = $codec; + + return $this; + } + + /** + * Gets resolution + * + * @return int + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param int $resolution 画质 + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets bit_rate + * + * @return int + */ + public function getBitRate() + { + return $this->container['bit_rate']; + } + + /** + * Sets bit_rate + * + * @param int $bit_rate 码率 + * + * @return $this + */ + public function setBitRate($bit_rate) + { + $this->container['bit_rate'] = $bit_rate; + + return $this; + } + + /** + * Gets fps + * + * @return int + */ + public function getFps() + { + return $this->container['fps']; + } + + /** + * Sets fps + * + * @param int $fps 帧率 + * + * @return $this + */ + public function setFps($fps) + { + $this->container['fps'] = $fps; + + return $this; + } + + /** + * Gets game_cmd_param + * + * @return string + */ + public function getGameCmdParam() + { + return $this->container['game_cmd_param']; + } + + /** + * Sets game_cmd_param + * + * @param string $game_cmd_param 启动命令,透传至ISV用于启动游戏 + * + * @return $this + */ + public function setGameCmdParam($game_cmd_param) + { + $this->container['game_cmd_param'] = $game_cmd_param; + + return $this; + } + + /** + * Gets start_param + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotFormsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotFormsStartParam $start_param 游戏启动设置参数 + * + * @return $this + */ + public function setStartParam($start_param) + { + $this->container['start_param'] = $start_param; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 9544af51f90ae73bf87e93c8ca24e7d1725c4d4b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:49 +0800 Subject: [PATCH 243/373] feat: update --- lib/Model/TryToGetSlotFormsStartParam.php | 797 ++++++++++++++++++++++ 1 file changed, 797 insertions(+) create mode 100644 lib/Model/TryToGetSlotFormsStartParam.php diff --git a/lib/Model/TryToGetSlotFormsStartParam.php b/lib/Model/TryToGetSlotFormsStartParam.php new file mode 100644 index 000000000..3657a54c8 --- /dev/null +++ b/lib/Model/TryToGetSlotFormsStartParam.php @@ -0,0 +1,797 @@ + 'string', +'keep_alive' => 'int', +'device_resolution' => 'string', +'device_dpi' => 'int', +'archive_url' => 'string', +'game_input' => 'string', +'resolution' => 'string', +'keep_disconnect_alive' => 'int', +'app_channel' => 'string', +'device_dpr' => 'int', +'cloud_init' => 'string', +'script_id' => 'int', +'bit_rate_self_adaption' => 'int', +'keep_no_play_alive' => 'int', +'ssaid' => 'string', +'archive_md5' => 'string', +'sys_device_id' => 'string', +'device_model' => 'string', +'device_brand' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'schedule_user_levels' => null, +'keep_alive' => 'int64', +'device_resolution' => null, +'device_dpi' => null, +'archive_url' => null, +'game_input' => null, +'resolution' => null, +'keep_disconnect_alive' => 'int64', +'app_channel' => null, +'device_dpr' => null, +'cloud_init' => null, +'script_id' => null, +'bit_rate_self_adaption' => null, +'keep_no_play_alive' => 'int64', +'ssaid' => null, +'archive_md5' => null, +'sys_device_id' => null, +'device_model' => null, +'device_brand' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'schedule_user_levels' => 'scheduleUserLevels', +'keep_alive' => 'keepAlive', +'device_resolution' => 'deviceResolution', +'device_dpi' => 'deviceDpi', +'archive_url' => 'archiveUrl', +'game_input' => 'gameInput', +'resolution' => 'resolution', +'keep_disconnect_alive' => 'keepDisconnectAlive', +'app_channel' => 'appChannel', +'device_dpr' => 'deviceDpr', +'cloud_init' => 'cloudInit', +'script_id' => 'scriptId', +'bit_rate_self_adaption' => 'bitRateSelfAdaption', +'keep_no_play_alive' => 'keepNoPlayAlive', +'ssaid' => 'ssaid', +'archive_md5' => 'archiveMd5', +'sys_device_id' => 'sysDeviceId', +'device_model' => 'deviceModel', +'device_brand' => 'deviceBrand' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'schedule_user_levels' => 'setScheduleUserLevels', +'keep_alive' => 'setKeepAlive', +'device_resolution' => 'setDeviceResolution', +'device_dpi' => 'setDeviceDpi', +'archive_url' => 'setArchiveUrl', +'game_input' => 'setGameInput', +'resolution' => 'setResolution', +'keep_disconnect_alive' => 'setKeepDisconnectAlive', +'app_channel' => 'setAppChannel', +'device_dpr' => 'setDeviceDpr', +'cloud_init' => 'setCloudInit', +'script_id' => 'setScriptId', +'bit_rate_self_adaption' => 'setBitRateSelfAdaption', +'keep_no_play_alive' => 'setKeepNoPlayAlive', +'ssaid' => 'setSsaid', +'archive_md5' => 'setArchiveMd5', +'sys_device_id' => 'setSysDeviceId', +'device_model' => 'setDeviceModel', +'device_brand' => 'setDeviceBrand' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'schedule_user_levels' => 'getScheduleUserLevels', +'keep_alive' => 'getKeepAlive', +'device_resolution' => 'getDeviceResolution', +'device_dpi' => 'getDeviceDpi', +'archive_url' => 'getArchiveUrl', +'game_input' => 'getGameInput', +'resolution' => 'getResolution', +'keep_disconnect_alive' => 'getKeepDisconnectAlive', +'app_channel' => 'getAppChannel', +'device_dpr' => 'getDeviceDpr', +'cloud_init' => 'getCloudInit', +'script_id' => 'getScriptId', +'bit_rate_self_adaption' => 'getBitRateSelfAdaption', +'keep_no_play_alive' => 'getKeepNoPlayAlive', +'ssaid' => 'getSsaid', +'archive_md5' => 'getArchiveMd5', +'sys_device_id' => 'getSysDeviceId', +'device_model' => 'getDeviceModel', +'device_brand' => 'getDeviceBrand' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['schedule_user_levels'] = isset($data['schedule_user_levels']) ? $data['schedule_user_levels'] : null; + $this->container['keep_alive'] = isset($data['keep_alive']) ? $data['keep_alive'] : null; + $this->container['device_resolution'] = isset($data['device_resolution']) ? $data['device_resolution'] : null; + $this->container['device_dpi'] = isset($data['device_dpi']) ? $data['device_dpi'] : null; + $this->container['archive_url'] = isset($data['archive_url']) ? $data['archive_url'] : null; + $this->container['game_input'] = isset($data['game_input']) ? $data['game_input'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['keep_disconnect_alive'] = isset($data['keep_disconnect_alive']) ? $data['keep_disconnect_alive'] : null; + $this->container['app_channel'] = isset($data['app_channel']) ? $data['app_channel'] : null; + $this->container['device_dpr'] = isset($data['device_dpr']) ? $data['device_dpr'] : null; + $this->container['cloud_init'] = isset($data['cloud_init']) ? $data['cloud_init'] : null; + $this->container['script_id'] = isset($data['script_id']) ? $data['script_id'] : null; + $this->container['bit_rate_self_adaption'] = isset($data['bit_rate_self_adaption']) ? $data['bit_rate_self_adaption'] : null; + $this->container['keep_no_play_alive'] = isset($data['keep_no_play_alive']) ? $data['keep_no_play_alive'] : null; + $this->container['ssaid'] = isset($data['ssaid']) ? $data['ssaid'] : null; + $this->container['archive_md5'] = isset($data['archive_md5']) ? $data['archive_md5'] : null; + $this->container['sys_device_id'] = isset($data['sys_device_id']) ? $data['sys_device_id'] : null; + $this->container['device_model'] = isset($data['device_model']) ? $data['device_model'] : null; + $this->container['device_brand'] = isset($data['device_brand']) ? $data['device_brand'] : null; + } + + + /** + * Gets schedule_user_levels + * + * @return string + */ + public function getScheduleUserLevels() + { + return $this->container['schedule_user_levels']; + } + + /** + * Sets schedule_user_levels + * + * @param string $schedule_user_levels 游戏调度实例等级 + * + * @return $this + */ + public function setScheduleUserLevels($schedule_user_levels) + { + $this->container['schedule_user_levels'] = $schedule_user_levels; + + return $this; + } + + /** + * Gets keep_alive + * + * @return int + */ + public function getKeepAlive() + { + return $this->container['keep_alive']; + } + + /** + * Sets keep_alive + * + * @param int $keep_alive 控制游戏运行时长 + * + * @return $this + */ + public function setKeepAlive($keep_alive) + { + $this->container['keep_alive'] = $keep_alive; + + return $this; + } + + /** + * Gets device_resolution + * + * @return string + */ + public function getDeviceResolution() + { + return $this->container['device_resolution']; + } + + /** + * Sets device_resolution + * + * @param string $device_resolution 设备分辨率 + * + * @return $this + */ + public function setDeviceResolution($device_resolution) + { + $this->container['device_resolution'] = $device_resolution; + + return $this; + } + + /** + * Gets device_dpi + * + * @return int + */ + public function getDeviceDpi() + { + return $this->container['device_dpi']; + } + + /** + * Sets device_dpi + * + * @param int $device_dpi deviceDpi + * + * @return $this + */ + public function setDeviceDpi($device_dpi) + { + $this->container['device_dpi'] = $device_dpi; + + return $this; + } + + /** + * Gets archive_url + * + * @return string + */ + public function getArchiveUrl() + { + return $this->container['archive_url']; + } + + /** + * Sets archive_url + * + * @param string $archive_url archive_url + * + * @return $this + */ + public function setArchiveUrl($archive_url) + { + $this->container['archive_url'] = $archive_url; + + return $this; + } + + /** + * Gets game_input + * + * @return string + */ + public function getGameInput() + { + return $this->container['game_input']; + } + + /** + * Sets game_input + * + * @param string $game_input 手游输入法控制 + * + * @return $this + */ + public function setGameInput($game_input) + { + $this->container['game_input'] = $game_input; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution 启动待缩放分辨率 + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets keep_disconnect_alive + * + * @return int + */ + public function getKeepDisconnectAlive() + { + return $this->container['keep_disconnect_alive']; + } + + /** + * Sets keep_disconnect_alive + * + * @param int $keep_disconnect_alive 游戏中设备掉线后会话保活时长 + * + * @return $this + */ + public function setKeepDisconnectAlive($keep_disconnect_alive) + { + $this->container['keep_disconnect_alive'] = $keep_disconnect_alive; + + return $this; + } + + /** + * Gets app_channel + * + * @return string + */ + public function getAppChannel() + { + return $this->container['app_channel']; + } + + /** + * Sets app_channel + * + * @param string $app_channel 应用渠道 + * + * @return $this + */ + public function setAppChannel($app_channel) + { + $this->container['app_channel'] = $app_channel; + + return $this; + } + + /** + * Gets device_dpr + * + * @return int + */ + public function getDeviceDpr() + { + return $this->container['device_dpr']; + } + + /** + * Sets device_dpr + * + * @param int $device_dpr 设备DPR + * + * @return $this + */ + public function setDeviceDpr($device_dpr) + { + $this->container['device_dpr'] = $device_dpr; + + return $this; + } + + /** + * Gets cloud_init + * + * @return string + */ + public function getCloudInit() + { + return $this->container['cloud_init']; + } + + /** + * Sets cloud_init + * + * @param string $cloud_init 游戏初始化路径 + * + * @return $this + */ + public function setCloudInit($cloud_init) + { + $this->container['cloud_init'] = $cloud_init; + + return $this; + } + + /** + * Gets script_id + * + * @return int + */ + public function getScriptId() + { + return $this->container['script_id']; + } + + /** + * Sets script_id + * + * @param int $script_id 游戏脚本id + * + * @return $this + */ + public function setScriptId($script_id) + { + $this->container['script_id'] = $script_id; + + return $this; + } + + /** + * Gets bit_rate_self_adaption + * + * @return int + */ + public function getBitRateSelfAdaption() + { + return $this->container['bit_rate_self_adaption']; + } + + /** + * Sets bit_rate_self_adaption + * + * @param int $bit_rate_self_adaption 码率自适应开关 + * + * @return $this + */ + public function setBitRateSelfAdaption($bit_rate_self_adaption) + { + $this->container['bit_rate_self_adaption'] = $bit_rate_self_adaption; + + return $this; + } + + /** + * Gets keep_no_play_alive + * + * @return int + */ + public function getKeepNoPlayAlive() + { + return $this->container['keep_no_play_alive']; + } + + /** + * Sets keep_no_play_alive + * + * @param int $keep_no_play_alive 游戏中无操作时会话保活时长 + * + * @return $this + */ + public function setKeepNoPlayAlive($keep_no_play_alive) + { + $this->container['keep_no_play_alive'] = $keep_no_play_alive; + + return $this; + } + + /** + * Gets ssaid + * + * @return string + */ + public function getSsaid() + { + return $this->container['ssaid']; + } + + /** + * Sets ssaid + * + * @param string $ssaid 设备号Android + * + * @return $this + */ + public function setSsaid($ssaid) + { + $this->container['ssaid'] = $ssaid; + + return $this; + } + + /** + * Gets archive_md5 + * + * @return string + */ + public function getArchiveMd5() + { + return $this->container['archive_md5']; + } + + /** + * Sets archive_md5 + * + * @param string $archive_md5 archive_md5 + * + * @return $this + */ + public function setArchiveMd5($archive_md5) + { + $this->container['archive_md5'] = $archive_md5; + + return $this; + } + + /** + * Gets sys_device_id + * + * @return string + */ + public function getSysDeviceId() + { + return $this->container['sys_device_id']; + } + + /** + * Sets sys_device_id + * + * @param string $sys_device_id 设备id + * + * @return $this + */ + public function setSysDeviceId($sys_device_id) + { + $this->container['sys_device_id'] = $sys_device_id; + + return $this; + } + + /** + * Gets device_model + * + * @return string + */ + public function getDeviceModel() + { + return $this->container['device_model']; + } + + /** + * Sets device_model + * + * @param string $device_model 设备型号 + * + * @return $this + */ + public function setDeviceModel($device_model) + { + $this->container['device_model'] = $device_model; + + return $this; + } + + /** + * Gets device_brand + * + * @return string + */ + public function getDeviceBrand() + { + return $this->container['device_brand']; + } + + /** + * Sets device_brand + * + * @param string $device_brand 设备品牌 + * + * @return $this + */ + public function setDeviceBrand($device_brand) + { + $this->container['device_brand'] = $device_brand; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From f92dd3416f31eb14fde83428b1a263311d468ab3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:50 +0800 Subject: [PATCH 244/373] feat: update --- lib/Model/TryToGetSlotResult.php | 347 +++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/TryToGetSlotResult.php diff --git a/lib/Model/TryToGetSlotResult.php b/lib/Model/TryToGetSlotResult.php new file mode 100644 index 000000000..f06aeae63 --- /dev/null +++ b/lib/Model/TryToGetSlotResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 2971124af3d29045e8c2d011fb05caa0c9572089 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:52 +0800 Subject: [PATCH 245/373] feat: update --- lib/Model/TryToGetSlotResultModel.php | 587 ++++++++++++++++++++++++++ 1 file changed, 587 insertions(+) create mode 100644 lib/Model/TryToGetSlotResultModel.php diff --git a/lib/Model/TryToGetSlotResultModel.php b/lib/Model/TryToGetSlotResultModel.php new file mode 100644 index 000000000..d304aae2a --- /dev/null +++ b/lib/Model/TryToGetSlotResultModel.php @@ -0,0 +1,587 @@ + 'string', +'account_id' => 'string', +'country' => 'string', +'code' => 'string', +'province' => 'string', +'region_id' => 'string', +'city' => 'string', +'operators' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModelOperators[]', +'success' => 'bool', +'message' => 'string', +'slot_data' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'country' => null, +'code' => null, +'province' => null, +'region_id' => null, +'city' => null, +'operators' => null, +'success' => null, +'message' => null, +'slot_data' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'country' => 'country', +'code' => 'code', +'province' => 'province', +'region_id' => 'regionId', +'city' => 'city', +'operators' => 'operators', +'success' => 'success', +'message' => 'message', +'slot_data' => 'slotData', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'country' => 'setCountry', +'code' => 'setCode', +'province' => 'setProvince', +'region_id' => 'setRegionId', +'city' => 'setCity', +'operators' => 'setOperators', +'success' => 'setSuccess', +'message' => 'setMessage', +'slot_data' => 'setSlotData', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'country' => 'getCountry', +'code' => 'getCode', +'province' => 'getProvince', +'region_id' => 'getRegionId', +'city' => 'getCity', +'operators' => 'getOperators', +'success' => 'getSuccess', +'message' => 'getMessage', +'slot_data' => 'getSlotData', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['province'] = isset($data['province']) ? $data['province'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + $this->container['operators'] = isset($data['operators']) ? $data['operators'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['slot_data'] = isset($data['slot_data']) ? $data['slot_data'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id Paas平台游戏ID + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 用户id,给到Paas平台和SDK,两者保持一致,全局唯一 + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country 调度资源所在国家 + * + * @return $this + */ + public function setCountry($country) + { + $this->container['country'] = $country; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 返回码 + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets province + * + * @return string + */ + public function getProvince() + { + return $this->container['province']; + } + + /** + * Sets province + * + * @param string $province 调度资源所在省份 + * + * @return $this + */ + public function setProvince($province) + { + $this->container['province'] = $province; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id 分配的region + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city 调度资源所在城市 + * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets operators + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModelOperators[] + */ + public function getOperators() + { + return $this->container['operators']; + } + + /** + * Sets operators + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResultModelOperators[] $operators 调度资源运营商信息 + * + * @return $this + */ + public function setOperators($operators) + { + $this->container['operators'] = $operators; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success 调度执行结果 + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message 返回信息 + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets slot_data + * + * @return string + */ + public function getSlotData() + { + return $this->container['slot_data']; + } + + /** + * Sets slot_data + * + * @param string $slot_data 调度结果集 + * + * @return $this + */ + public function setSlotData($slot_data) + { + $this->container['slot_data'] = $slot_data; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session 会话标识 + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3bc8d61dbaa685040a83af570d7c48b76f8ccece Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:53 +0800 Subject: [PATCH 246/373] feat: update --- .../TryToGetSlotResultModelOperators.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/TryToGetSlotResultModelOperators.php diff --git a/lib/Model/TryToGetSlotResultModelOperators.php b/lib/Model/TryToGetSlotResultModelOperators.php new file mode 100644 index 000000000..09f5ed70f --- /dev/null +++ b/lib/Model/TryToGetSlotResultModelOperators.php @@ -0,0 +1,317 @@ + 'string', +'operator_ip' => 'string', +'operator_cn_name' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'operator_en_name' => null, +'operator_ip' => null, +'operator_cn_name' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'operator_en_name' => 'operatorEnName', +'operator_ip' => 'operatorIp', +'operator_cn_name' => 'operatorCnName' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'operator_en_name' => 'setOperatorEnName', +'operator_ip' => 'setOperatorIp', +'operator_cn_name' => 'setOperatorCnName' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'operator_en_name' => 'getOperatorEnName', +'operator_ip' => 'getOperatorIp', +'operator_cn_name' => 'getOperatorCnName' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['operator_en_name'] = isset($data['operator_en_name']) ? $data['operator_en_name'] : null; + $this->container['operator_ip'] = isset($data['operator_ip']) ? $data['operator_ip'] : null; + $this->container['operator_cn_name'] = isset($data['operator_cn_name']) ? $data['operator_cn_name'] : null; + } + + + /** + * Gets operator_en_name + * + * @return string + */ + public function getOperatorEnName() + { + return $this->container['operator_en_name']; + } + + /** + * Sets operator_en_name + * + * @param string $operator_en_name 运营商英文名称 + * + * @return $this + */ + public function setOperatorEnName($operator_en_name) + { + $this->container['operator_en_name'] = $operator_en_name; + + return $this; + } + + /** + * Gets operator_ip + * + * @return string + */ + public function getOperatorIp() + { + return $this->container['operator_ip']; + } + + /** + * Sets operator_ip + * + * @param string $operator_ip 运营商IP + * + * @return $this + */ + public function setOperatorIp($operator_ip) + { + $this->container['operator_ip'] = $operator_ip; + + return $this; + } + + /** + * Gets operator_cn_name + * + * @return string + */ + public function getOperatorCnName() + { + return $this->container['operator_cn_name']; + } + + /** + * Sets operator_cn_name + * + * @param string $operator_cn_name 运营商中文名称 + * + * @return $this + */ + public function setOperatorCnName($operator_cn_name) + { + $this->container['operator_cn_name'] = $operator_cn_name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From de6ccc06e25c224188f4626c6cd6d836ad66a963 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:54 +0800 Subject: [PATCH 247/373] feat: update --- lib/Model/TryToGetSlotsForms.php | 317 +++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/TryToGetSlotsForms.php diff --git a/lib/Model/TryToGetSlotsForms.php b/lib/Model/TryToGetSlotsForms.php new file mode 100644 index 000000000..53f21c6a9 --- /dev/null +++ b/lib/Model/TryToGetSlotsForms.php @@ -0,0 +1,317 @@ + 'string', +'parallel_schedule' => 'bool', +'requests' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequests[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'parallel_schedule' => null, +'requests' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'parallel_schedule' => 'parallelSchedule', +'requests' => 'requests' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'parallel_schedule' => 'setParallelSchedule', +'requests' => 'setRequests' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'parallel_schedule' => 'getParallelSchedule', +'requests' => 'getRequests' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['parallel_schedule'] = isset($data['parallel_schedule']) ? $data['parallel_schedule'] : null; + $this->container['requests'] = isset($data['requests']) ? $data['requests'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets parallel_schedule + * + * @return bool + */ + public function getParallelSchedule() + { + return $this->container['parallel_schedule']; + } + + /** + * Sets parallel_schedule + * + * @param bool $parallel_schedule parallel_schedule + * + * @return $this + */ + public function setParallelSchedule($parallel_schedule) + { + $this->container['parallel_schedule'] = $parallel_schedule; + + return $this; + } + + /** + * Gets requests + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequests[] + */ + public function getRequests() + { + return $this->container['requests']; + } + + /** + * Sets requests + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequests[] $requests requests + * + * @return $this + */ + public function setRequests($requests) + { + $this->container['requests'] = $requests; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bf2fd521e14787d87cabd84afedc23dfa38711ff Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:56 +0800 Subject: [PATCH 248/373] feat: update --- lib/Model/TryToGetSlotsFormsRequests.php | 647 +++++++++++++++++++++++ 1 file changed, 647 insertions(+) create mode 100644 lib/Model/TryToGetSlotsFormsRequests.php diff --git a/lib/Model/TryToGetSlotsFormsRequests.php b/lib/Model/TryToGetSlotsFormsRequests.php new file mode 100644 index 000000000..a0aa2cdb6 --- /dev/null +++ b/lib/Model/TryToGetSlotsFormsRequests.php @@ -0,0 +1,647 @@ + 'string', +'fps' => 'int', +'re_connect' => 'bool', +'resolution' => 'int', +'tags' => 'string', +'game_cmd_param' => 'string', +'account_id' => 'string', +'codec' => 'int', +'user_level' => 'int', +'start_param' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequestsStartParam', +'region_id' => 'string', +'bit_rate' => 'int', +'client_ip' => 'string', +'biz_param' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'fps' => null, +'re_connect' => null, +'resolution' => null, +'tags' => null, +'game_cmd_param' => null, +'account_id' => null, +'codec' => null, +'user_level' => null, +'start_param' => null, +'region_id' => null, +'bit_rate' => null, +'client_ip' => null, +'biz_param' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'fps' => 'fps', +'re_connect' => 'reConnect', +'resolution' => 'resolution', +'tags' => 'tags', +'game_cmd_param' => 'gameCmdParam', +'account_id' => 'accountId', +'codec' => 'codec', +'user_level' => 'userLevel', +'start_param' => 'startParam', +'region_id' => 'regionId', +'bit_rate' => 'bitRate', +'client_ip' => 'clientIp', +'biz_param' => 'bizParam' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'fps' => 'setFps', +'re_connect' => 'setReConnect', +'resolution' => 'setResolution', +'tags' => 'setTags', +'game_cmd_param' => 'setGameCmdParam', +'account_id' => 'setAccountId', +'codec' => 'setCodec', +'user_level' => 'setUserLevel', +'start_param' => 'setStartParam', +'region_id' => 'setRegionId', +'bit_rate' => 'setBitRate', +'client_ip' => 'setClientIp', +'biz_param' => 'setBizParam' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'fps' => 'getFps', +'re_connect' => 'getReConnect', +'resolution' => 'getResolution', +'tags' => 'getTags', +'game_cmd_param' => 'getGameCmdParam', +'account_id' => 'getAccountId', +'codec' => 'getCodec', +'user_level' => 'getUserLevel', +'start_param' => 'getStartParam', +'region_id' => 'getRegionId', +'bit_rate' => 'getBitRate', +'client_ip' => 'getClientIp', +'biz_param' => 'getBizParam' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['fps'] = isset($data['fps']) ? $data['fps'] : null; + $this->container['re_connect'] = isset($data['re_connect']) ? $data['re_connect'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; + $this->container['game_cmd_param'] = isset($data['game_cmd_param']) ? $data['game_cmd_param'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['codec'] = isset($data['codec']) ? $data['codec'] : null; + $this->container['user_level'] = isset($data['user_level']) ? $data['user_level'] : null; + $this->container['start_param'] = isset($data['start_param']) ? $data['start_param'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['bit_rate'] = isset($data['bit_rate']) ? $data['bit_rate'] : null; + $this->container['client_ip'] = isset($data['client_ip']) ? $data['client_ip'] : null; + $this->container['biz_param'] = isset($data['biz_param']) ? $data['biz_param'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets fps + * + * @return int + */ + public function getFps() + { + return $this->container['fps']; + } + + /** + * Sets fps + * + * @param int $fps fps + * + * @return $this + */ + public function setFps($fps) + { + $this->container['fps'] = $fps; + + return $this; + } + + /** + * Gets re_connect + * + * @return bool + */ + public function getReConnect() + { + return $this->container['re_connect']; + } + + /** + * Sets re_connect + * + * @param bool $re_connect re_connect + * + * @return $this + */ + public function setReConnect($re_connect) + { + $this->container['re_connect'] = $re_connect; + + return $this; + } + + /** + * Gets resolution + * + * @return int + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param int $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets tags + * + * @return string + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string $tags tags + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets game_cmd_param + * + * @return string + */ + public function getGameCmdParam() + { + return $this->container['game_cmd_param']; + } + + /** + * Sets game_cmd_param + * + * @param string $game_cmd_param game_cmd_param + * + * @return $this + */ + public function setGameCmdParam($game_cmd_param) + { + $this->container['game_cmd_param'] = $game_cmd_param; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets codec + * + * @return int + */ + public function getCodec() + { + return $this->container['codec']; + } + + /** + * Sets codec + * + * @param int $codec codec + * + * @return $this + */ + public function setCodec($codec) + { + $this->container['codec'] = $codec; + + return $this; + } + + /** + * Gets user_level + * + * @return int + */ + public function getUserLevel() + { + return $this->container['user_level']; + } + + /** + * Sets user_level + * + * @param int $user_level user_level + * + * @return $this + */ + public function setUserLevel($user_level) + { + $this->container['user_level'] = $user_level; + + return $this; + } + + /** + * Gets start_param + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequestsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsFormsRequestsStartParam $start_param start_param + * + * @return $this + */ + public function setStartParam($start_param) + { + $this->container['start_param'] = $start_param; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id region_id + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets bit_rate + * + * @return int + */ + public function getBitRate() + { + return $this->container['bit_rate']; + } + + /** + * Sets bit_rate + * + * @param int $bit_rate bit_rate + * + * @return $this + */ + public function setBitRate($bit_rate) + { + $this->container['bit_rate'] = $bit_rate; + + return $this; + } + + /** + * Gets client_ip + * + * @return string + */ + public function getClientIp() + { + return $this->container['client_ip']; + } + + /** + * Sets client_ip + * + * @param string $client_ip client_ip + * + * @return $this + */ + public function setClientIp($client_ip) + { + $this->container['client_ip'] = $client_ip; + + return $this; + } + + /** + * Gets biz_param + * + * @return string + */ + public function getBizParam() + { + return $this->container['biz_param']; + } + + /** + * Sets biz_param + * + * @param string $biz_param biz_param + * + * @return $this + */ + public function setBizParam($biz_param) + { + $this->container['biz_param'] = $biz_param; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3cf3cf08e6eb931e440b1ee9bf492f113b4d3e85 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:57 +0800 Subject: [PATCH 249/373] feat: update --- .../TryToGetSlotsFormsRequestsStartParam.php | 797 ++++++++++++++++++ 1 file changed, 797 insertions(+) create mode 100644 lib/Model/TryToGetSlotsFormsRequestsStartParam.php diff --git a/lib/Model/TryToGetSlotsFormsRequestsStartParam.php b/lib/Model/TryToGetSlotsFormsRequestsStartParam.php new file mode 100644 index 000000000..4262c65f8 --- /dev/null +++ b/lib/Model/TryToGetSlotsFormsRequestsStartParam.php @@ -0,0 +1,797 @@ + 'string', +'keep_alive' => 'int', +'device_resolution' => 'string', +'device_dpi' => 'int', +'archive_url' => 'string', +'game_input' => 'string', +'resolution' => 'string', +'keep_disconnect_alive' => 'int', +'app_channel' => 'string', +'device_dpr' => 'int', +'cloud_init' => 'string', +'script_id' => 'int', +'bit_rate_self_adaption' => 'int', +'keep_no_play_alive' => 'int', +'ssaid' => 'string', +'archive_md5' => 'string', +'sys_device_id' => 'string', +'device_model' => 'string', +'device_brand' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'schedule_user_levels' => null, +'keep_alive' => 'int64', +'device_resolution' => null, +'device_dpi' => null, +'archive_url' => null, +'game_input' => null, +'resolution' => null, +'keep_disconnect_alive' => 'int64', +'app_channel' => null, +'device_dpr' => null, +'cloud_init' => null, +'script_id' => null, +'bit_rate_self_adaption' => null, +'keep_no_play_alive' => 'int64', +'ssaid' => null, +'archive_md5' => null, +'sys_device_id' => null, +'device_model' => null, +'device_brand' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'schedule_user_levels' => 'scheduleUserLevels', +'keep_alive' => 'keepAlive', +'device_resolution' => 'deviceResolution', +'device_dpi' => 'deviceDpi', +'archive_url' => 'archiveUrl', +'game_input' => 'gameInput', +'resolution' => 'resolution', +'keep_disconnect_alive' => 'keepDisconnectAlive', +'app_channel' => 'appChannel', +'device_dpr' => 'deviceDpr', +'cloud_init' => 'cloudInit', +'script_id' => 'scriptId', +'bit_rate_self_adaption' => 'bitRateSelfAdaption', +'keep_no_play_alive' => 'keepNoPlayAlive', +'ssaid' => 'ssaid', +'archive_md5' => 'archiveMd5', +'sys_device_id' => 'sysDeviceId', +'device_model' => 'deviceModel', +'device_brand' => 'deviceBrand' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'schedule_user_levels' => 'setScheduleUserLevels', +'keep_alive' => 'setKeepAlive', +'device_resolution' => 'setDeviceResolution', +'device_dpi' => 'setDeviceDpi', +'archive_url' => 'setArchiveUrl', +'game_input' => 'setGameInput', +'resolution' => 'setResolution', +'keep_disconnect_alive' => 'setKeepDisconnectAlive', +'app_channel' => 'setAppChannel', +'device_dpr' => 'setDeviceDpr', +'cloud_init' => 'setCloudInit', +'script_id' => 'setScriptId', +'bit_rate_self_adaption' => 'setBitRateSelfAdaption', +'keep_no_play_alive' => 'setKeepNoPlayAlive', +'ssaid' => 'setSsaid', +'archive_md5' => 'setArchiveMd5', +'sys_device_id' => 'setSysDeviceId', +'device_model' => 'setDeviceModel', +'device_brand' => 'setDeviceBrand' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'schedule_user_levels' => 'getScheduleUserLevels', +'keep_alive' => 'getKeepAlive', +'device_resolution' => 'getDeviceResolution', +'device_dpi' => 'getDeviceDpi', +'archive_url' => 'getArchiveUrl', +'game_input' => 'getGameInput', +'resolution' => 'getResolution', +'keep_disconnect_alive' => 'getKeepDisconnectAlive', +'app_channel' => 'getAppChannel', +'device_dpr' => 'getDeviceDpr', +'cloud_init' => 'getCloudInit', +'script_id' => 'getScriptId', +'bit_rate_self_adaption' => 'getBitRateSelfAdaption', +'keep_no_play_alive' => 'getKeepNoPlayAlive', +'ssaid' => 'getSsaid', +'archive_md5' => 'getArchiveMd5', +'sys_device_id' => 'getSysDeviceId', +'device_model' => 'getDeviceModel', +'device_brand' => 'getDeviceBrand' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['schedule_user_levels'] = isset($data['schedule_user_levels']) ? $data['schedule_user_levels'] : null; + $this->container['keep_alive'] = isset($data['keep_alive']) ? $data['keep_alive'] : null; + $this->container['device_resolution'] = isset($data['device_resolution']) ? $data['device_resolution'] : null; + $this->container['device_dpi'] = isset($data['device_dpi']) ? $data['device_dpi'] : null; + $this->container['archive_url'] = isset($data['archive_url']) ? $data['archive_url'] : null; + $this->container['game_input'] = isset($data['game_input']) ? $data['game_input'] : null; + $this->container['resolution'] = isset($data['resolution']) ? $data['resolution'] : null; + $this->container['keep_disconnect_alive'] = isset($data['keep_disconnect_alive']) ? $data['keep_disconnect_alive'] : null; + $this->container['app_channel'] = isset($data['app_channel']) ? $data['app_channel'] : null; + $this->container['device_dpr'] = isset($data['device_dpr']) ? $data['device_dpr'] : null; + $this->container['cloud_init'] = isset($data['cloud_init']) ? $data['cloud_init'] : null; + $this->container['script_id'] = isset($data['script_id']) ? $data['script_id'] : null; + $this->container['bit_rate_self_adaption'] = isset($data['bit_rate_self_adaption']) ? $data['bit_rate_self_adaption'] : null; + $this->container['keep_no_play_alive'] = isset($data['keep_no_play_alive']) ? $data['keep_no_play_alive'] : null; + $this->container['ssaid'] = isset($data['ssaid']) ? $data['ssaid'] : null; + $this->container['archive_md5'] = isset($data['archive_md5']) ? $data['archive_md5'] : null; + $this->container['sys_device_id'] = isset($data['sys_device_id']) ? $data['sys_device_id'] : null; + $this->container['device_model'] = isset($data['device_model']) ? $data['device_model'] : null; + $this->container['device_brand'] = isset($data['device_brand']) ? $data['device_brand'] : null; + } + + + /** + * Gets schedule_user_levels + * + * @return string + */ + public function getScheduleUserLevels() + { + return $this->container['schedule_user_levels']; + } + + /** + * Sets schedule_user_levels + * + * @param string $schedule_user_levels schedule_user_levels + * + * @return $this + */ + public function setScheduleUserLevels($schedule_user_levels) + { + $this->container['schedule_user_levels'] = $schedule_user_levels; + + return $this; + } + + /** + * Gets keep_alive + * + * @return int + */ + public function getKeepAlive() + { + return $this->container['keep_alive']; + } + + /** + * Sets keep_alive + * + * @param int $keep_alive keep_alive + * + * @return $this + */ + public function setKeepAlive($keep_alive) + { + $this->container['keep_alive'] = $keep_alive; + + return $this; + } + + /** + * Gets device_resolution + * + * @return string + */ + public function getDeviceResolution() + { + return $this->container['device_resolution']; + } + + /** + * Sets device_resolution + * + * @param string $device_resolution device_resolution + * + * @return $this + */ + public function setDeviceResolution($device_resolution) + { + $this->container['device_resolution'] = $device_resolution; + + return $this; + } + + /** + * Gets device_dpi + * + * @return int + */ + public function getDeviceDpi() + { + return $this->container['device_dpi']; + } + + /** + * Sets device_dpi + * + * @param int $device_dpi device_dpi + * + * @return $this + */ + public function setDeviceDpi($device_dpi) + { + $this->container['device_dpi'] = $device_dpi; + + return $this; + } + + /** + * Gets archive_url + * + * @return string + */ + public function getArchiveUrl() + { + return $this->container['archive_url']; + } + + /** + * Sets archive_url + * + * @param string $archive_url archive_url + * + * @return $this + */ + public function setArchiveUrl($archive_url) + { + $this->container['archive_url'] = $archive_url; + + return $this; + } + + /** + * Gets game_input + * + * @return string + */ + public function getGameInput() + { + return $this->container['game_input']; + } + + /** + * Sets game_input + * + * @param string $game_input game_input + * + * @return $this + */ + public function setGameInput($game_input) + { + $this->container['game_input'] = $game_input; + + return $this; + } + + /** + * Gets resolution + * + * @return string + */ + public function getResolution() + { + return $this->container['resolution']; + } + + /** + * Sets resolution + * + * @param string $resolution resolution + * + * @return $this + */ + public function setResolution($resolution) + { + $this->container['resolution'] = $resolution; + + return $this; + } + + /** + * Gets keep_disconnect_alive + * + * @return int + */ + public function getKeepDisconnectAlive() + { + return $this->container['keep_disconnect_alive']; + } + + /** + * Sets keep_disconnect_alive + * + * @param int $keep_disconnect_alive keep_disconnect_alive + * + * @return $this + */ + public function setKeepDisconnectAlive($keep_disconnect_alive) + { + $this->container['keep_disconnect_alive'] = $keep_disconnect_alive; + + return $this; + } + + /** + * Gets app_channel + * + * @return string + */ + public function getAppChannel() + { + return $this->container['app_channel']; + } + + /** + * Sets app_channel + * + * @param string $app_channel app_channel + * + * @return $this + */ + public function setAppChannel($app_channel) + { + $this->container['app_channel'] = $app_channel; + + return $this; + } + + /** + * Gets device_dpr + * + * @return int + */ + public function getDeviceDpr() + { + return $this->container['device_dpr']; + } + + /** + * Sets device_dpr + * + * @param int $device_dpr device_dpr + * + * @return $this + */ + public function setDeviceDpr($device_dpr) + { + $this->container['device_dpr'] = $device_dpr; + + return $this; + } + + /** + * Gets cloud_init + * + * @return string + */ + public function getCloudInit() + { + return $this->container['cloud_init']; + } + + /** + * Sets cloud_init + * + * @param string $cloud_init cloud_init + * + * @return $this + */ + public function setCloudInit($cloud_init) + { + $this->container['cloud_init'] = $cloud_init; + + return $this; + } + + /** + * Gets script_id + * + * @return int + */ + public function getScriptId() + { + return $this->container['script_id']; + } + + /** + * Sets script_id + * + * @param int $script_id script_id + * + * @return $this + */ + public function setScriptId($script_id) + { + $this->container['script_id'] = $script_id; + + return $this; + } + + /** + * Gets bit_rate_self_adaption + * + * @return int + */ + public function getBitRateSelfAdaption() + { + return $this->container['bit_rate_self_adaption']; + } + + /** + * Sets bit_rate_self_adaption + * + * @param int $bit_rate_self_adaption bit_rate_self_adaption + * + * @return $this + */ + public function setBitRateSelfAdaption($bit_rate_self_adaption) + { + $this->container['bit_rate_self_adaption'] = $bit_rate_self_adaption; + + return $this; + } + + /** + * Gets keep_no_play_alive + * + * @return int + */ + public function getKeepNoPlayAlive() + { + return $this->container['keep_no_play_alive']; + } + + /** + * Sets keep_no_play_alive + * + * @param int $keep_no_play_alive keep_no_play_alive + * + * @return $this + */ + public function setKeepNoPlayAlive($keep_no_play_alive) + { + $this->container['keep_no_play_alive'] = $keep_no_play_alive; + + return $this; + } + + /** + * Gets ssaid + * + * @return string + */ + public function getSsaid() + { + return $this->container['ssaid']; + } + + /** + * Sets ssaid + * + * @param string $ssaid ssaid + * + * @return $this + */ + public function setSsaid($ssaid) + { + $this->container['ssaid'] = $ssaid; + + return $this; + } + + /** + * Gets archive_md5 + * + * @return string + */ + public function getArchiveMd5() + { + return $this->container['archive_md5']; + } + + /** + * Sets archive_md5 + * + * @param string $archive_md5 archive_md5 + * + * @return $this + */ + public function setArchiveMd5($archive_md5) + { + $this->container['archive_md5'] = $archive_md5; + + return $this; + } + + /** + * Gets sys_device_id + * + * @return string + */ + public function getSysDeviceId() + { + return $this->container['sys_device_id']; + } + + /** + * Sets sys_device_id + * + * @param string $sys_device_id sys_device_id + * + * @return $this + */ + public function setSysDeviceId($sys_device_id) + { + $this->container['sys_device_id'] = $sys_device_id; + + return $this; + } + + /** + * Gets device_model + * + * @return string + */ + public function getDeviceModel() + { + return $this->container['device_model']; + } + + /** + * Sets device_model + * + * @param string $device_model device_model + * + * @return $this + */ + public function setDeviceModel($device_model) + { + $this->container['device_model'] = $device_model; + + return $this; + } + + /** + * Gets device_brand + * + * @return string + */ + public function getDeviceBrand() + { + return $this->container['device_brand']; + } + + /** + * Sets device_brand + * + * @param string $device_brand device_brand + * + * @return $this + */ + public function setDeviceBrand($device_brand) + { + $this->container['device_brand'] = $device_brand; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4e7c7d79e7d31284d5528a7482e23fe8cd5330ca Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:15:59 +0800 Subject: [PATCH 250/373] feat: update --- lib/Model/TryToGetSlotsResult.php | 347 ++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/TryToGetSlotsResult.php diff --git a/lib/Model/TryToGetSlotsResult.php b/lib/Model/TryToGetSlotsResult.php new file mode 100644 index 000000000..6f69aabff --- /dev/null +++ b/lib/Model/TryToGetSlotsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5ceab19404e7c82fc39c385a55c2b5e496eb93a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:00 +0800 Subject: [PATCH 251/373] feat: update --- lib/Model/TryToGetSlotsResultModel.php | 347 +++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/TryToGetSlotsResultModel.php diff --git a/lib/Model/TryToGetSlotsResultModel.php b/lib/Model/TryToGetSlotsResultModel.php new file mode 100644 index 000000000..d36110619 --- /dev/null +++ b/lib/Model/TryToGetSlotsResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'responses' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModelResponses[]', +'message' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'code' => null, +'success' => null, +'responses' => null, +'message' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'code' => 'code', +'success' => 'success', +'responses' => 'responses', +'message' => 'message' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', +'success' => 'setSuccess', +'responses' => 'setResponses', +'message' => 'setMessage' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', +'success' => 'getSuccess', +'responses' => 'getResponses', +'message' => 'getMessage' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['responses'] = isset($data['responses']) ? $data['responses'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + } + + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets responses + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModelResponses[] + */ + public function getResponses() + { + return $this->container['responses']; + } + + /** + * Sets responses + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResultModelResponses[] $responses responses + * + * @return $this + */ + public function setResponses($responses) + { + $this->container['responses'] = $responses; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 25a2035ee3e898e6029d906103cc6a201af49a4b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:02 +0800 Subject: [PATCH 252/373] feat: update --- .../TryToGetSlotsResultModelResponses.php | 467 ++++++++++++++++++ 1 file changed, 467 insertions(+) create mode 100644 lib/Model/TryToGetSlotsResultModelResponses.php diff --git a/lib/Model/TryToGetSlotsResultModelResponses.php b/lib/Model/TryToGetSlotsResultModelResponses.php new file mode 100644 index 000000000..17a097f06 --- /dev/null +++ b/lib/Model/TryToGetSlotsResultModelResponses.php @@ -0,0 +1,467 @@ + 'string', +'account_id' => 'string', +'code' => 'string', +'region_id' => 'string', +'success' => 'bool', +'message' => 'string', +'slot_data' => 'string', +'game_session' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'code' => null, +'region_id' => null, +'success' => null, +'message' => null, +'slot_data' => null, +'game_session' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'code' => 'code', +'region_id' => 'regionId', +'success' => 'success', +'message' => 'message', +'slot_data' => 'slotData', +'game_session' => 'gameSession' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'code' => 'setCode', +'region_id' => 'setRegionId', +'success' => 'setSuccess', +'message' => 'setMessage', +'slot_data' => 'setSlotData', +'game_session' => 'setGameSession' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'code' => 'getCode', +'region_id' => 'getRegionId', +'success' => 'getSuccess', +'message' => 'getMessage', +'slot_data' => 'getSlotData', +'game_session' => 'getGameSession' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['region_id'] = isset($data['region_id']) ? $data['region_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['slot_data'] = isset($data['slot_data']) ? $data['slot_data'] : null; + $this->container['game_session'] = isset($data['game_session']) ? $data['game_session'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets region_id + * + * @return string + */ + public function getRegionId() + { + return $this->container['region_id']; + } + + /** + * Sets region_id + * + * @param string $region_id region_id + * + * @return $this + */ + public function setRegionId($region_id) + { + $this->container['region_id'] = $region_id; + + return $this; + } + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets slot_data + * + * @return string + */ + public function getSlotData() + { + return $this->container['slot_data']; + } + + /** + * Sets slot_data + * + * @param string $slot_data slot_data + * + * @return $this + */ + public function setSlotData($slot_data) + { + $this->container['slot_data'] = $slot_data; + + return $this; + } + + /** + * Gets game_session + * + * @return string + */ + public function getGameSession() + { + return $this->container['game_session']; + } + + /** + * Sets game_session + * + * @param string $game_session game_session + * + * @return $this + */ + public function setGameSession($game_session) + { + $this->container['game_session'] = $game_session; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 828028097fcadc1652be30b31085459a62a6a5e6 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:03 +0800 Subject: [PATCH 253/373] feat: update --- lib/Model/UpdatePreopenStrategyForms.php | 317 +++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UpdatePreopenStrategyForms.php diff --git a/lib/Model/UpdatePreopenStrategyForms.php b/lib/Model/UpdatePreopenStrategyForms.php new file mode 100644 index 000000000..b22264b14 --- /dev/null +++ b/lib/Model/UpdatePreopenStrategyForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'pre_start_cmd' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'app_key' => null, +'game_id' => null, +'pre_start_cmd' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'app_key' => 'appKey', +'game_id' => 'gameId', +'pre_start_cmd' => 'preStartCmd' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'app_key' => 'setAppKey', +'game_id' => 'setGameId', +'pre_start_cmd' => 'setPreStartCmd' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'app_key' => 'getAppKey', +'game_id' => 'getGameId', +'pre_start_cmd' => 'getPreStartCmd' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['app_key'] = isset($data['app_key']) ? $data['app_key'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['pre_start_cmd'] = isset($data['pre_start_cmd']) ? $data['pre_start_cmd'] : null; + } + + + /** + * Gets app_key + * + * @return string + */ + public function getAppKey() + { + return $this->container['app_key']; + } + + /** + * Sets app_key + * + * @param string $app_key app_key + * + * @return $this + */ + public function setAppKey($app_key) + { + $this->container['app_key'] = $app_key; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets pre_start_cmd + * + * @return string + */ + public function getPreStartCmd() + { + return $this->container['pre_start_cmd']; + } + + /** + * Sets pre_start_cmd + * + * @param string $pre_start_cmd pre_start_cmd + * + * @return $this + */ + public function setPreStartCmd($pre_start_cmd) + { + $this->container['pre_start_cmd'] = $pre_start_cmd; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c4104d24303af3fe89e2305d0f5d2816ff9a46b1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:04 +0800 Subject: [PATCH 254/373] feat: update --- lib/Model/UpdatePreopenStrategyResult.php | 347 ++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UpdatePreopenStrategyResult.php diff --git a/lib/Model/UpdatePreopenStrategyResult.php b/lib/Model/UpdatePreopenStrategyResult.php new file mode 100644 index 000000000..bfc59d69c --- /dev/null +++ b/lib/Model/UpdatePreopenStrategyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => 'map[string,string]', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return map[string,string] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param map[string,string] $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c283d38826276df4b8f244c99ff1da166da168fa Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:06 +0800 Subject: [PATCH 255/373] feat: update --- .../UsercontrollerDeleteGameArchiveForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerDeleteGameArchiveForms.php diff --git a/lib/Model/UsercontrollerDeleteGameArchiveForms.php b/lib/Model/UsercontrollerDeleteGameArchiveForms.php new file mode 100644 index 000000000..90e38d55c --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'archive_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'archive_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'archive_id' => 'archiveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'archive_id' => 'setArchiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'archive_id' => 'getArchiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d8dfeb445b25c88ee8fc235e2137317f44d8c054 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:07 +0800 Subject: [PATCH 256/373] feat: update --- .../UsercontrollerDeleteGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerDeleteGameArchiveResult.php diff --git a/lib/Model/UsercontrollerDeleteGameArchiveResult.php b/lib/Model/UsercontrollerDeleteGameArchiveResult.php new file mode 100644 index 000000000..e50d35c01 --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From b227512763c6df2a20ed599a26b55d6e999619d4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:09 +0800 Subject: [PATCH 257/373] feat: update --- ...controllerDeleteGameArchiveResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerDeleteGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerDeleteGameArchiveResultModel.php b/lib/Model/UsercontrollerDeleteGameArchiveResultModel.php new file mode 100644 index 000000000..eba0f0cf6 --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets status + * + * @return int + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param int $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From fe6868f8e06931b89269269bc941a760d00341db Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:10 +0800 Subject: [PATCH 258/373] feat: update --- ...rollerGetGameTrialSurplusDurationForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php new file mode 100644 index 000000000..2d158e958 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id 账号id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From a732791fbfc8a014bcc8eae2771118e37fa09de9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:12 +0800 Subject: [PATCH 259/373] feat: update --- ...ollerGetGameTrialSurplusDurationResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php new file mode 100644 index 000000000..9e48181a9 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c478d73d1d1b449f76b0bb69e012853b9eefaf86 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:14 +0800 Subject: [PATCH 260/373] feat: update --- ...GetGameTrialSurplusDurationResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php new file mode 100644 index 000000000..5fb6b7956 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php @@ -0,0 +1,257 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'trial_policy_responses' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'trial_policy_responses' => 'trialPolicyResponses' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'trial_policy_responses' => 'setTrialPolicyResponses' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'trial_policy_responses' => 'getTrialPolicyResponses' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['trial_policy_responses'] = isset($data['trial_policy_responses']) ? $data['trial_policy_responses'] : null; + } + + + /** + * Gets trial_policy_responses + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[] + */ + public function getTrialPolicyResponses() + { + return $this->container['trial_policy_responses']; + } + + /** + * Sets trial_policy_responses + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[] $trial_policy_responses trial_policy_responses + * + * @return $this + */ + public function setTrialPolicyResponses($trial_policy_responses) + { + $this->container['trial_policy_responses'] = $trial_policy_responses; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5b7c0d51f99d0d38b5145e2f46e54894eb18dc84 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:15 +0800 Subject: [PATCH 261/373] feat: update --- ...urationResultModelTrialPolicyResponses.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php diff --git a/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php new file mode 100644 index 000000000..7896dca7f --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses.php @@ -0,0 +1,287 @@ + 'string', +'surplus_duration_in_second' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'policy_type' => null, +'surplus_duration_in_second' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'policy_type' => 'policyType', +'surplus_duration_in_second' => 'surplusDurationInSecond' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'policy_type' => 'setPolicyType', +'surplus_duration_in_second' => 'setSurplusDurationInSecond' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'policy_type' => 'getPolicyType', +'surplus_duration_in_second' => 'getSurplusDurationInSecond' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['policy_type'] = isset($data['policy_type']) ? $data['policy_type'] : null; + $this->container['surplus_duration_in_second'] = isset($data['surplus_duration_in_second']) ? $data['surplus_duration_in_second'] : null; + } + + + /** + * Gets policy_type + * + * @return string + */ + public function getPolicyType() + { + return $this->container['policy_type']; + } + + /** + * Sets policy_type + * + * @param string $policy_type 策略类型 + * + * @return $this + */ + public function setPolicyType($policy_type) + { + $this->container['policy_type'] = $policy_type; + + return $this; + } + + /** + * Gets surplus_duration_in_second + * + * @return int + */ + public function getSurplusDurationInSecond() + { + return $this->container['surplus_duration_in_second']; + } + + /** + * Sets surplus_duration_in_second + * + * @param int $surplus_duration_in_second 剩余试玩时长 + * + * @return $this + */ + public function setSurplusDurationInSecond($surplus_duration_in_second) + { + $this->container['surplus_duration_in_second'] = $surplus_duration_in_second; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From d9b0d1fa9d3f7b8b9b27d8a83894c0906eb7cd7f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:16 +0800 Subject: [PATCH 262/373] feat: update --- .../UsercontrollerGetUserGameArchiveForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveForms.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveForms.php b/lib/Model/UsercontrollerGetUserGameArchiveForms.php new file mode 100644 index 000000000..cdcbb1f6d --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'project_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'project_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'project_id' => 'projectId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'project_id' => 'setProjectId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'project_id' => 'getProjectId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['project_id'] = isset($data['project_id']) ? $data['project_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets project_id + * + * @return string + */ + public function getProjectId() + { + return $this->container['project_id']; + } + + /** + * Sets project_id + * + * @param string $project_id project_id + * + * @return $this + */ + public function setProjectId($project_id) + { + $this->container['project_id'] = $project_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 422a9d772fcf616e84f6a3bb1b117ad05d77f051 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:18 +0800 Subject: [PATCH 263/373] feat: update --- ...UsercontrollerGetUserGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveResult.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveResult.php b/lib/Model/UsercontrollerGetUserGameArchiveResult.php new file mode 100644 index 000000000..30ebac8cb --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From cc6d139d9937235578ce5f59af8e3f13dc147f10 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:19 +0800 Subject: [PATCH 264/373] feat: update --- ...ontrollerGetUserGameArchiveResultModel.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php b/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php new file mode 100644 index 000000000..18002ae7c --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php @@ -0,0 +1,317 @@ + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO', +'download_url' => 'string', +'object_md5' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'user_game_archive_dto' => null, +'download_url' => null, +'object_md5' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'user_game_archive_dto' => 'userGameArchiveDTO', +'download_url' => 'downloadUrl', +'object_md5' => 'objectMD5' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'user_game_archive_dto' => 'setUserGameArchiveDto', +'download_url' => 'setDownloadUrl', +'object_md5' => 'setObjectMd5' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'user_game_archive_dto' => 'getUserGameArchiveDto', +'download_url' => 'getDownloadUrl', +'object_md5' => 'getObjectMd5' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['user_game_archive_dto'] = isset($data['user_game_archive_dto']) ? $data['user_game_archive_dto'] : null; + $this->container['download_url'] = isset($data['download_url']) ? $data['download_url'] : null; + $this->container['object_md5'] = isset($data['object_md5']) ? $data['object_md5'] : null; + } + + + /** + * Gets user_game_archive_dto + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO + */ + public function getUserGameArchiveDto() + { + return $this->container['user_game_archive_dto']; + } + + /** + * Sets user_game_archive_dto + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO $user_game_archive_dto user_game_archive_dto + * + * @return $this + */ + public function setUserGameArchiveDto($user_game_archive_dto) + { + $this->container['user_game_archive_dto'] = $user_game_archive_dto; + + return $this; + } + + /** + * Gets download_url + * + * @return string + */ + public function getDownloadUrl() + { + return $this->container['download_url']; + } + + /** + * Sets download_url + * + * @param string $download_url download_url + * + * @return $this + */ + public function setDownloadUrl($download_url) + { + $this->container['download_url'] = $download_url; + + return $this; + } + + /** + * Gets object_md5 + * + * @return string + */ + public function getObjectMd5() + { + return $this->container['object_md5']; + } + + /** + * Sets object_md5 + * + * @param string $object_md5 object_md5 + * + * @return $this + */ + public function setObjectMd5($object_md5) + { + $this->container['object_md5'] = $object_md5; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 564cf7812f2e85ed97d951c87e8dc61295893e7b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:20 +0800 Subject: [PATCH 265/373] feat: update --- ...meArchiveResultModelUserGameArchiveDTO.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php diff --git a/lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php b/lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php new file mode 100644 index 000000000..206b07b83 --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO.php @@ -0,0 +1,287 @@ + 'string', +'gmt_create' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_session_id' => null, +'gmt_create' => 'int64' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_session_id' => 'gameSessionId', +'gmt_create' => 'gmtCreate' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_session_id' => 'setGameSessionId', +'gmt_create' => 'setGmtCreate' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_session_id' => 'getGameSessionId', +'gmt_create' => 'getGmtCreate' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_session_id'] = isset($data['game_session_id']) ? $data['game_session_id'] : null; + $this->container['gmt_create'] = isset($data['gmt_create']) ? $data['gmt_create'] : null; + } + + + /** + * Gets game_session_id + * + * @return string + */ + public function getGameSessionId() + { + return $this->container['game_session_id']; + } + + /** + * Sets game_session_id + * + * @param string $game_session_id 游戏会话ID + * + * @return $this + */ + public function setGameSessionId($game_session_id) + { + $this->container['game_session_id'] = $game_session_id; + + return $this; + } + + /** + * Gets gmt_create + * + * @return int + */ + public function getGmtCreate() + { + return $this->container['gmt_create']; + } + + /** + * Sets gmt_create + * + * @param int $gmt_create 存档生成时间 + * + * @return $this + */ + public function setGmtCreate($gmt_create) + { + $this->container['gmt_create'] = $gmt_create; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From bb7e101ef1fbfbe5ef2eb1958a646ab77c6b07d7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:22 +0800 Subject: [PATCH 266/373] feat: update --- ...ercontrollerListLatestGameArchiveForms.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveForms.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveForms.php b/lib/Model/UsercontrollerListLatestGameArchiveForms.php new file mode 100644 index 000000000..383d90fa8 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'page_size' => 'int', +'page_number' => 'int', +'tag_status' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'page_size' => 'int32', +'page_number' => 'int32', +'tag_status' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'page_size' => 'pageSize', +'page_number' => 'pageNumber', +'tag_status' => 'tagStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'page_size' => 'setPageSize', +'page_number' => 'setPageNumber', +'tag_status' => 'setTagStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'page_size' => 'getPageSize', +'page_number' => 'getPageNumber', +'tag_status' => 'getTagStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['tag_status'] = isset($data['tag_status']) ? $data['tag_status'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets tag_status + * + * @return int + */ + public function getTagStatus() + { + return $this->container['tag_status']; + } + + /** + * Sets tag_status + * + * @param int $tag_status tag_status + * + * @return $this + */ + public function setTagStatus($tag_status) + { + $this->container['tag_status'] = $tag_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c366e4df3b9c071da2f16b7c6e4d91dde13590d5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:23 +0800 Subject: [PATCH 267/373] feat: update --- ...rcontrollerListLatestGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveResult.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveResult.php b/lib/Model/UsercontrollerListLatestGameArchiveResult.php new file mode 100644 index 000000000..33cdc8d91 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 358e637b9b07040e9f51e8cba78ea84604bbbc76 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:24 +0800 Subject: [PATCH 268/373] feat: update --- ...rollerListLatestGameArchiveResultModel.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveResultModel.php b/lib/Model/UsercontrollerListLatestGameArchiveResultModel.php new file mode 100644 index 000000000..170f70e6e --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResultModel.php @@ -0,0 +1,377 @@ + 'int', +'request_id' => 'string', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModelItems[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'page_number' => null, +'request_id' => null, +'page_size' => null, +'total_count' => null, +'items' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'page_number' => 'pageNumber', +'request_id' => 'requestId', +'page_size' => 'pageSize', +'total_count' => 'totalCount', +'items' => 'items' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'page_number' => 'setPageNumber', +'request_id' => 'setRequestId', +'page_size' => 'setPageSize', +'total_count' => 'setTotalCount', +'items' => 'setItems' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'page_number' => 'getPageNumber', +'request_id' => 'getRequestId', +'page_size' => 'getPageSize', +'total_count' => 'getTotalCount', +'items' => 'getItems' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['page_number'] = isset($data['page_number']) ? $data['page_number'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['page_size'] = isset($data['page_size']) ? $data['page_size'] : null; + $this->container['total_count'] = isset($data['total_count']) ? $data['total_count'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + + /** + * Gets page_number + * + * @return int + */ + public function getPageNumber() + { + return $this->container['page_number']; + } + + /** + * Sets page_number + * + * @param int $page_number page_number + * + * @return $this + */ + public function setPageNumber($page_number) + { + $this->container['page_number'] = $page_number; + + return $this; + } + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id request_id + * + * @return $this + */ + public function setRequestId($request_id) + { + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets page_size + * + * @return int + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int $page_size page_size + * + * @return $this + */ + public function setPageSize($page_size) + { + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets total_count + * + * @return int + */ + public function getTotalCount() + { + return $this->container['total_count']; + } + + /** + * Sets total_count + * + * @param int $total_count total_count + * + * @return $this + */ + public function setTotalCount($total_count) + { + $this->container['total_count'] = $total_count; + + return $this; + } + + /** + * Gets items + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResultModelItems[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 5a1913f9b092bcebf70e6f56538271ea0ec48606 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:26 +0800 Subject: [PATCH 269/373] feat: update --- ...rListLatestGameArchiveResultModelItems.php | 377 ++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php diff --git a/lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php b/lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php new file mode 100644 index 000000000..0ec2503e1 --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResultModelItems.php @@ -0,0 +1,377 @@ + 'string', +'account_id' => 'string', +'archive_time' => 'int', +'tag_status' => 'int', +'archive_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'game_id' => null, +'account_id' => null, +'archive_time' => 'int64', +'tag_status' => null, +'archive_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'game_id' => 'gameId', +'account_id' => 'accountId', +'archive_time' => 'archiveTime', +'tag_status' => 'tagStatus', +'archive_id' => 'archiveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'game_id' => 'setGameId', +'account_id' => 'setAccountId', +'archive_time' => 'setArchiveTime', +'tag_status' => 'setTagStatus', +'archive_id' => 'setArchiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'game_id' => 'getGameId', +'account_id' => 'getAccountId', +'archive_time' => 'getArchiveTime', +'tag_status' => 'getTagStatus', +'archive_id' => 'getArchiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['archive_time'] = isset($data['archive_time']) ? $data['archive_time'] : null; + $this->container['tag_status'] = isset($data['tag_status']) ? $data['tag_status'] : null; + $this->container['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + } + + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets archive_time + * + * @return int + */ + public function getArchiveTime() + { + return $this->container['archive_time']; + } + + /** + * Sets archive_time + * + * @param int $archive_time archive_time + * + * @return $this + */ + public function setArchiveTime($archive_time) + { + $this->container['archive_time'] = $archive_time; + + return $this; + } + + /** + * Gets tag_status + * + * @return int + */ + public function getTagStatus() + { + return $this->container['tag_status']; + } + + /** + * Sets tag_status + * + * @param int $tag_status tag_status + * + * @return $this + */ + public function setTagStatus($tag_status) + { + $this->container['tag_status'] = $tag_status; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From c2ab77cc1cb9e4d25e10c8292af36a124fe0e3a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:27 +0800 Subject: [PATCH 270/373] feat: update --- .../UsercontrollerRestoreGameArchiveForms.php | 317 ++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/UsercontrollerRestoreGameArchiveForms.php diff --git a/lib/Model/UsercontrollerRestoreGameArchiveForms.php b/lib/Model/UsercontrollerRestoreGameArchiveForms.php new file mode 100644 index 000000000..826ed52c9 --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveForms.php @@ -0,0 +1,317 @@ + 'string', +'game_id' => 'string', +'archive_id' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'archive_id' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'archive_id' => 'archiveId' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'archive_id' => 'setArchiveId' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'archive_id' => 'getArchiveId' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 08a54407aa32f1880d3f2fb4cfd6f03519e52bfc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:28 +0800 Subject: [PATCH 271/373] feat: update --- ...UsercontrollerRestoreGameArchiveResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerRestoreGameArchiveResult.php diff --git a/lib/Model/UsercontrollerRestoreGameArchiveResult.php b/lib/Model/UsercontrollerRestoreGameArchiveResult.php new file mode 100644 index 000000000..32f4833f9 --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 32cf211a92bbc66ffea287aaa9c56908b5781d73 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:29 +0800 Subject: [PATCH 272/373] feat: update --- ...ontrollerRestoreGameArchiveResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerRestoreGameArchiveResultModel.php diff --git a/lib/Model/UsercontrollerRestoreGameArchiveResultModel.php b/lib/Model/UsercontrollerRestoreGameArchiveResultModel.php new file mode 100644 index 000000000..35a30610e --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets status + * + * @return int + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param int $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 3523fbe5e3d1818c7b486d899844ec509b376860 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:31 +0800 Subject: [PATCH 273/373] feat: update --- ...trollerUpdateGameArchiveTagStatusForms.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php diff --git a/lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php new file mode 100644 index 000000000..d5080d008 --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusForms.php @@ -0,0 +1,347 @@ + 'string', +'game_id' => 'string', +'archive_id' => 'string', +'tag_status' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'account_id' => null, +'game_id' => null, +'archive_id' => null, +'tag_status' => 'int32' ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', +'game_id' => 'gameId', +'archive_id' => 'archiveId', +'tag_status' => 'tagStatus' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', +'game_id' => 'setGameId', +'archive_id' => 'setArchiveId', +'tag_status' => 'setTagStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', +'game_id' => 'getGameId', +'archive_id' => 'getArchiveId', +'tag_status' => 'getTagStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; + $this->container['game_id'] = isset($data['game_id']) ? $data['game_id'] : null; + $this->container['archive_id'] = isset($data['archive_id']) ? $data['archive_id'] : null; + $this->container['tag_status'] = isset($data['tag_status']) ? $data['tag_status'] : null; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id account_id + * + * @return $this + */ + public function setAccountId($account_id) + { + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets game_id + * + * @return string + */ + public function getGameId() + { + return $this->container['game_id']; + } + + /** + * Sets game_id + * + * @param string $game_id game_id + * + * @return $this + */ + public function setGameId($game_id) + { + $this->container['game_id'] = $game_id; + + return $this; + } + + /** + * Gets archive_id + * + * @return string + */ + public function getArchiveId() + { + return $this->container['archive_id']; + } + + /** + * Sets archive_id + * + * @param string $archive_id archive_id + * + * @return $this + */ + public function setArchiveId($archive_id) + { + $this->container['archive_id'] = $archive_id; + + return $this; + } + + /** + * Gets tag_status + * + * @return int + */ + public function getTagStatus() + { + return $this->container['tag_status']; + } + + /** + * Sets tag_status + * + * @param int $tag_status tag_status + * + * @return $this + */ + public function setTagStatus($tag_status) + { + $this->container['tag_status'] = $tag_status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 15af1cc13475b7eefa79c4b429cac4ff2ef1db99 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:32 +0800 Subject: [PATCH 274/373] feat: update --- ...rollerUpdateGameArchiveTagStatusResult.php | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php diff --git a/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php new file mode 100644 index 000000000..08fc824bd --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel', +'msg_info' => 'string', +'msg_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'success' => null, +'model' => null, +'msg_info' => null, +'msg_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', +'model' => 'model', +'msg_info' => 'msgInfo', +'msg_code' => 'msgCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', +'model' => 'setModel', +'msg_info' => 'setMsgInfo', +'msg_code' => 'setMsgCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', +'model' => 'getModel', +'msg_info' => 'getMsgInfo', +'msg_code' => 'getMsgCode' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['success'] = isset($data['success']) ? $data['success'] : null; + $this->container['model'] = isset($data['model']) ? $data['model'] : null; + $this->container['msg_info'] = isset($data['msg_info']) ? $data['msg_info'] : null; + $this->container['msg_code'] = isset($data['msg_code']) ? $data['msg_code'] : null; + } + + + /** + * Gets success + * + * @return bool + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool $success success + * + * @return $this + */ + public function setSuccess($success) + { + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets model + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel $model model + * + * @return $this + */ + public function setModel($model) + { + $this->container['model'] = $model; + + return $this; + } + + /** + * Gets msg_info + * + * @return string + */ + public function getMsgInfo() + { + return $this->container['msg_info']; + } + + /** + * Sets msg_info + * + * @param string $msg_info msg_info + * + * @return $this + */ + public function setMsgInfo($msg_info) + { + $this->container['msg_info'] = $msg_info; + + return $this; + } + + /** + * Gets msg_code + * + * @return string + */ + public function getMsgCode() + { + return $this->container['msg_code']; + } + + /** + * Sets msg_code + * + * @param string $msg_code msg_code + * + * @return $this + */ + public function setMsgCode($msg_code) + { + $this->container['msg_code'] = $msg_code; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 0a957799ce52f16f7c353ebe97eefaee0d847607 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:33 +0800 Subject: [PATCH 275/373] feat: update --- ...rUpdateGameArchiveTagStatusResultModel.php | 257 ++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php diff --git a/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php new file mode 100644 index 000000000..d6d680b31 --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResultModel.php @@ -0,0 +1,257 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'status' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function serialTypes() + { + return self::$serialTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function serialFormats() + { + return self::$serialFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets status + * + * @return int + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param int $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 4b79601f8847d44e05f2f0b4c3a7b3170f4a0a8a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:35 +0800 Subject: [PATCH 276/373] feat: update --- lib/Api/AdaptApi.php | 568 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 568 insertions(+) create mode 100644 lib/Api/AdaptApi.php diff --git a/lib/Api/AdaptApi.php b/lib/Api/AdaptApi.php new file mode 100644 index 000000000..78db8ef4c --- /dev/null +++ b/lib/Api/AdaptApi.php @@ -0,0 +1,568 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation createAndSubmitAll + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult + */ + public function createAndSubmitAll($varForms) + { + list($response) = $this->createAndSubmitAllWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createAndSubmitAllWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createAndSubmitAllWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult'; + $request = $this->createAndSubmitAllRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createAndSubmitAllAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAndSubmitAllAsync($varForms) + { + return $this->createAndSubmitAllAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createAndSubmitAllAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAndSubmitAllAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult'; + $request = $this->createAndSubmitAllRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createAndSubmitAll' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createAndSubmitAllRequest($varForms) + { + // verify the required parameter 'platform_type' is set + if ($varForms['platform_type'] === null || (is_array($varForms['platform_type']) && count($varForms['platform_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'platform_type\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'source_platform' is set + if ($varForms['source_platform'] === null || (is_array($varForms['source_platform']) && count($varForms['source_platform']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'source_platform\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'records' is set + if ($varForms['records'] === null || (is_array($varForms['records']) && count($varForms['records']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'records\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'mix_game_version_id' is set + if ($varForms['mix_game_version_id'] === null || (is_array($varForms['mix_game_version_id']) && count($varForms['mix_game_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_game_version_id\'] when calling createAndSubmitAll' + ); + } + // verify the required parameter 'mix_game_id' is set + if ($varForms['mix_game_id'] === null || (is_array($varForms['mix_game_id']) && count($varForms['mix_game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_game_id\'] when calling createAndSubmitAll' + ); + } + + $resourcePath = '/adapt/createAndSubmitAll'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + if ($varForms['game_name'] !== null) { + $formParams['gameName'] = ObjectSerializer::toFormValue($varForms['game_name']); + } + if ($varForms['game_version_id'] !== null) { + $formParams['gameVersionId'] = ObjectSerializer::toFormValue($varForms['game_version_id']); + } + if ($varForms['game_version'] !== null) { + $formParams['gameVersion'] = ObjectSerializer::toFormValue($varForms['game_version']); + } + if ($varForms['resolution_list'] !== null) { + $formParams['resolutionList'] = ObjectSerializer::toFormValue($varForms['resolution_list']); + } + if ($varForms['frame_rate_list'] !== null) { + $formParams['frameRateList'] = ObjectSerializer::toFormValue($varForms['frame_rate_list']); + } + $formParams['platformType'] = ObjectSerializer::toFormValue($varForms['platform_type']); + $formParams['sourcePlatform'] = ObjectSerializer::toFormValue($varForms['source_platform']); + $formParams['records'] = ObjectSerializer::toFormValue($varForms['records']); + $formParams['mixGameVersionId'] = ObjectSerializer::toFormValue($varForms['mix_game_version_id']); + $formParams['mixGameId'] = ObjectSerializer::toFormValue($varForms['mix_game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation queryRequestById + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult + */ + public function queryRequestById($varForms) + { + list($response) = $this->queryRequestByIdWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryRequestByIdWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryRequestByIdWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult'; + $request = $this->queryRequestByIdRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryRequestByIdAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryRequestByIdAsync($varForms) + { + return $this->queryRequestByIdAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryRequestByIdAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryRequestByIdAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult'; + $request = $this->queryRequestByIdRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryRequestById' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryRequestByIdRequest($varForms) + { + // verify the required parameter 'id' is set + if ($varForms['id'] === null || (is_array($varForms['id']) && count($varForms['id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'id\'] when calling queryRequestById' + ); + } + + $resourcePath = '/adapt/queryRequestById'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['id'] = ObjectSerializer::toFormValue($varForms['id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From aacc4fa8ca4aca9f13a223c22e3b151cc34152c5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:37 +0800 Subject: [PATCH 277/373] feat: update --- lib/Api/AiApi.php | 2250 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2250 insertions(+) create mode 100644 lib/Api/AiApi.php diff --git a/lib/Api/AiApi.php b/lib/Api/AiApi.php new file mode 100644 index 000000000..b133d83c1 --- /dev/null +++ b/lib/Api/AiApi.php @@ -0,0 +1,2250 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation batchUpdateKbVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult + */ + public function batchUpdateKbVersion($varForms) + { + list($response) = $this->batchUpdateKbVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchUpdateKbVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchUpdateKbVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult'; + $request = $this->batchUpdateKbVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchUpdateKbVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateKbVersionAsync($varForms) + { + return $this->batchUpdateKbVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation batchUpdateKbVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateKbVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult'; + $request = $this->batchUpdateKbVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'batchUpdateKbVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function batchUpdateKbVersionRequest($varForms) + { + // verify the required parameter 'role_ids' is set + if ($varForms['role_ids'] === null || (is_array($varForms['role_ids']) && count($varForms['role_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'role_ids\'] when calling batchUpdateKbVersion' + ); + } + // verify the required parameter 'kb_id' is set + if ($varForms['kb_id'] === null || (is_array($varForms['kb_id']) && count($varForms['kb_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'kb_id\'] when calling batchUpdateKbVersion' + ); + } + // verify the required parameter 'kb_version_id' is set + if ($varForms['kb_version_id'] === null || (is_array($varForms['kb_version_id']) && count($varForms['kb_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'kb_version_id\'] when calling batchUpdateKbVersion' + ); + } + // verify the required parameter 'operator' is set + if ($varForms['operator'] === null || (is_array($varForms['operator']) && count($varForms['operator']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operator\'] when calling batchUpdateKbVersion' + ); + } + + $resourcePath = '/ai/batchUpdateKbVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['roleIds'] = ObjectSerializer::toFormValue($varForms['role_ids']); + $formParams['kbId'] = ObjectSerializer::toFormValue($varForms['kb_id']); + $formParams['kbVersionId'] = ObjectSerializer::toFormValue($varForms['kb_version_id']); + $formParams['operator'] = ObjectSerializer::toFormValue($varForms['operator']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation cancelQueue + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult + */ + public function cancelQueue($varForms) + { + list($response) = $this->cancelQueueWithHttpInfo($varForms); + return $response; + } + + /** + * Operation cancelQueueWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelQueueWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult'; + $request = $this->cancelQueueRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelQueueAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelQueueAsync($varForms) + { + return $this->cancelQueueAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cancelQueueAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelQueueAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult'; + $request = $this->cancelQueueRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'cancelQueue' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function cancelQueueRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling cancelQueue' + ); + } + + $resourcePath = '/ai/cancelQueue'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createNpcRole + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult + */ + public function createNpcRole($varForms) + { + list($response) = $this->createNpcRoleWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createNpcRoleWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createNpcRoleWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult'; + $request = $this->createNpcRoleRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createNpcRoleAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createNpcRoleAsync($varForms) + { + return $this->createNpcRoleAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createNpcRoleAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createNpcRoleAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult'; + $request = $this->createNpcRoleRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createNpcRole' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createNpcRoleRequest($varForms) + { + // verify the required parameter 'name' is set + if ($varForms['name'] === null || (is_array($varForms['name']) && count($varForms['name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'name\'] when calling createNpcRole' + ); + } + // verify the required parameter 'description' is set + if ($varForms['description'] === null || (is_array($varForms['description']) && count($varForms['description']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'description\'] when calling createNpcRole' + ); + } + // verify the required parameter 'figure_id' is set + if ($varForms['figure_id'] === null || (is_array($varForms['figure_id']) && count($varForms['figure_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'figure_id\'] when calling createNpcRole' + ); + } + // verify the required parameter 'voice_id' is set + if ($varForms['voice_id'] === null || (is_array($varForms['voice_id']) && count($varForms['voice_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'voice_id\'] when calling createNpcRole' + ); + } + // verify the required parameter 'characters' is set + if ($varForms['characters'] === null || (is_array($varForms['characters']) && count($varForms['characters']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'characters\'] when calling createNpcRole' + ); + } + // verify the required parameter 'greetings' is set + if ($varForms['greetings'] === null || (is_array($varForms['greetings']) && count($varForms['greetings']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'greetings\'] when calling createNpcRole' + ); + } + // verify the required parameter 'guidance' is set + if ($varForms['guidance'] === null || (is_array($varForms['guidance']) && count($varForms['guidance']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'guidance\'] when calling createNpcRole' + ); + } + // verify the required parameter 'short_memory_round' is set + if ($varForms['short_memory_round'] === null || (is_array($varForms['short_memory_round']) && count($varForms['short_memory_round']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'short_memory_round\'] when calling createNpcRole' + ); + } + // verify the required parameter 'tenant_id' is set + if ($varForms['tenant_id'] === null || (is_array($varForms['tenant_id']) && count($varForms['tenant_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'tenant_id\'] when calling createNpcRole' + ); + } + // verify the required parameter 'operator' is set + if ($varForms['operator'] === null || (is_array($varForms['operator']) && count($varForms['operator']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operator\'] when calling createNpcRole' + ); + } + // verify the required parameter 'llm_model_id' is set + if ($varForms['llm_model_id'] === null || (is_array($varForms['llm_model_id']) && count($varForms['llm_model_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'llm_model_id\'] when calling createNpcRole' + ); + } + + $resourcePath = '/ai/createNpcRole'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['name'] = ObjectSerializer::toFormValue($varForms['name']); + $formParams['description'] = ObjectSerializer::toFormValue($varForms['description']); + $formParams['figureId'] = ObjectSerializer::toFormValue($varForms['figure_id']); + $formParams['voiceId'] = ObjectSerializer::toFormValue($varForms['voice_id']); + $formParams['characters'] = ObjectSerializer::toFormValue($varForms['characters']); + $formParams['greetings'] = ObjectSerializer::toFormValue($varForms['greetings']); + $formParams['guidance'] = ObjectSerializer::toFormValue($varForms['guidance']); + if ($varForms['knowledge_bases'] !== null) { + $formParams['knowledgeBases'] = ObjectSerializer::toFormValue($varForms['knowledge_bases']); + } + if ($varForms['plugin_ids'] !== null) { + $formParams['pluginIds'] = ObjectSerializer::toFormValue($varForms['plugin_ids']); + } + $formParams['shortMemoryRound'] = ObjectSerializer::toFormValue($varForms['short_memory_round']); + $formParams['tenantId'] = ObjectSerializer::toFormValue($varForms['tenant_id']); + $formParams['operator'] = ObjectSerializer::toFormValue($varForms['operator']); + $formParams['llmModelId'] = ObjectSerializer::toFormValue($varForms['llm_model_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult + */ + public function deleteModels($varForms) + { + list($response) = $this->deleteModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult'; + $request = $this->deleteModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteModelsAsync($varForms) + { + return $this->deleteModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult'; + $request = $this->deleteModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteModelsRequest($varForms) + { + // verify the required parameter 'resource_id' is set + if ($varForms['resource_id'] === null || (is_array($varForms['resource_id']) && count($varForms['resource_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'resource_id\'] when calling deleteModels' + ); + } + + $resourcePath = '/ai/deleteModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['resourceId'] = ObjectSerializer::toFormValue($varForms['resource_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getQueue + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult + */ + public function getQueue($varForms) + { + list($response) = $this->getQueueWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getQueueWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getQueueWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult'; + $request = $this->getQueueRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getQueueAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getQueueAsync($varForms) + { + return $this->getQueueAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getQueueAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getQueueAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult'; + $request = $this->getQueueRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getQueue' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getQueueRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling getQueue' + ); + } + + $resourcePath = '/ai/getQueue'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult + */ + public function listModels($varForms) + { + list($response) = $this->listModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult'; + $request = $this->listModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listModelsAsync($varForms) + { + return $this->listModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult'; + $request = $this->listModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listModelsRequest($varForms) + { + // verify the required parameter 'page_number' is set + if ($varForms['page_number'] === null || (is_array($varForms['page_number']) && count($varForms['page_number']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'page_number\'] when calling listModels' + ); + } + // verify the required parameter 'page_size' is set + if ($varForms['page_size'] === null || (is_array($varForms['page_size']) && count($varForms['page_size']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'page_size\'] when calling listModels' + ); + } + + $resourcePath = '/ai/listModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['model_type'] !== null) { + $formParams['modelType'] = ObjectSerializer::toFormValue($varForms['model_type']); + } + if ($varForms['model_file_type'] !== null) { + $formParams['modelFileType'] = ObjectSerializer::toFormValue($varForms['model_file_type']); + } + if ($varForms['model_series'] !== null) { + $formParams['modelSeries'] = ObjectSerializer::toFormValue($varForms['model_series']); + } + if ($varForms['model_file_name'] !== null) { + $formParams['modelFileName'] = ObjectSerializer::toFormValue($varForms['model_file_name']); + } + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult + */ + public function updateModels($varForms) + { + list($response) = $this->updateModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult'; + $request = $this->updateModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateModelsAsync($varForms) + { + return $this->updateModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult'; + $request = $this->updateModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateModelsRequest($varForms) + { + // verify the required parameter 'resource_id' is set + if ($varForms['resource_id'] === null || (is_array($varForms['resource_id']) && count($varForms['resource_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'resource_id\'] when calling updateModels' + ); + } + // verify the required parameter 'desc' is set + if ($varForms['desc'] === null || (is_array($varForms['desc']) && count($varForms['desc']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'desc\'] when calling updateModels' + ); + } + + $resourcePath = '/ai/updateModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['resourceId'] = ObjectSerializer::toFormValue($varForms['resource_id']); + $formParams['desc'] = ObjectSerializer::toFormValue($varForms['desc']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateNpcRole + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult + */ + public function updateNpcRole($varForms) + { + list($response) = $this->updateNpcRoleWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateNpcRoleWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateNpcRoleWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult'; + $request = $this->updateNpcRoleRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateNpcRoleAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateNpcRoleAsync($varForms) + { + return $this->updateNpcRoleAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateNpcRoleAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateNpcRoleAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult'; + $request = $this->updateNpcRoleRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateNpcRole' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateNpcRoleRequest($varForms) + { + // verify the required parameter 'id' is set + if ($varForms['id'] === null || (is_array($varForms['id']) && count($varForms['id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'id\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'name' is set + if ($varForms['name'] === null || (is_array($varForms['name']) && count($varForms['name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'name\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'description' is set + if ($varForms['description'] === null || (is_array($varForms['description']) && count($varForms['description']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'description\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'figure_id' is set + if ($varForms['figure_id'] === null || (is_array($varForms['figure_id']) && count($varForms['figure_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'figure_id\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'voice_id' is set + if ($varForms['voice_id'] === null || (is_array($varForms['voice_id']) && count($varForms['voice_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'voice_id\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'characters' is set + if ($varForms['characters'] === null || (is_array($varForms['characters']) && count($varForms['characters']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'characters\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'greetings' is set + if ($varForms['greetings'] === null || (is_array($varForms['greetings']) && count($varForms['greetings']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'greetings\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'guidance' is set + if ($varForms['guidance'] === null || (is_array($varForms['guidance']) && count($varForms['guidance']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'guidance\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'short_memory_round' is set + if ($varForms['short_memory_round'] === null || (is_array($varForms['short_memory_round']) && count($varForms['short_memory_round']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'short_memory_round\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'operator' is set + if ($varForms['operator'] === null || (is_array($varForms['operator']) && count($varForms['operator']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operator\'] when calling updateNpcRole' + ); + } + // verify the required parameter 'llm_model_id' is set + if ($varForms['llm_model_id'] === null || (is_array($varForms['llm_model_id']) && count($varForms['llm_model_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'llm_model_id\'] when calling updateNpcRole' + ); + } + + $resourcePath = '/ai/updateNpcRole'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['id'] = ObjectSerializer::toFormValue($varForms['id']); + $formParams['name'] = ObjectSerializer::toFormValue($varForms['name']); + $formParams['description'] = ObjectSerializer::toFormValue($varForms['description']); + $formParams['figureId'] = ObjectSerializer::toFormValue($varForms['figure_id']); + $formParams['voiceId'] = ObjectSerializer::toFormValue($varForms['voice_id']); + $formParams['characters'] = ObjectSerializer::toFormValue($varForms['characters']); + $formParams['greetings'] = ObjectSerializer::toFormValue($varForms['greetings']); + $formParams['guidance'] = ObjectSerializer::toFormValue($varForms['guidance']); + if ($varForms['knowledge_bases'] !== null) { + $formParams['knowledgeBases'] = ObjectSerializer::toFormValue($varForms['knowledge_bases']); + } + if ($varForms['plugin_ids'] !== null) { + $formParams['pluginIds'] = ObjectSerializer::toFormValue($varForms['plugin_ids']); + } + $formParams['shortMemoryRound'] = ObjectSerializer::toFormValue($varForms['short_memory_round']); + $formParams['operator'] = ObjectSerializer::toFormValue($varForms['operator']); + $formParams['llmModelId'] = ObjectSerializer::toFormValue($varForms['llm_model_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation uploadModels + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult + */ + public function uploadModels($varForms) + { + list($response) = $this->uploadModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation uploadModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadModelsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult'; + $request = $this->uploadModelsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation uploadModelsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadModelsAsync($varForms) + { + return $this->uploadModelsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation uploadModelsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult'; + $request = $this->uploadModelsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'uploadModels' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function uploadModelsRequest($varForms) + { + // verify the required parameter 'model_type' is set + if ($varForms['model_type'] === null || (is_array($varForms['model_type']) && count($varForms['model_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_type\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_name' is set + if ($varForms['model_name'] === null || (is_array($varForms['model_name']) && count($varForms['model_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_name\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_file_path' is set + if ($varForms['model_file_path'] === null || (is_array($varForms['model_file_path']) && count($varForms['model_file_path']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_file_path\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_files' is set + if ($varForms['model_files'] === null || (is_array($varForms['model_files']) && count($varForms['model_files']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_files\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_file_type' is set + if ($varForms['model_file_type'] === null || (is_array($varForms['model_file_type']) && count($varForms['model_file_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_file_type\'] when calling uploadModels' + ); + } + + $resourcePath = '/ai/uploadModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['modelType'] = ObjectSerializer::toFormValue($varForms['model_type']); + $formParams['modelName'] = ObjectSerializer::toFormValue($varForms['model_name']); + $formParams['modelFilePath'] = ObjectSerializer::toFormValue($varForms['model_file_path']); + $formParams['modelFiles'] = ObjectSerializer::toFormValue($varForms['model_files']); + if ($varForms['desc'] !== null) { + $formParams['desc'] = ObjectSerializer::toFormValue($varForms['desc']); + } + $formParams['modelFileType'] = ObjectSerializer::toFormValue($varForms['model_file_type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From b69e9dba81a0548cf62a4234bafb8f141efb82f7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:39 +0800 Subject: [PATCH 278/373] feat: update --- lib/Api/ConsoleAdminApi.php | 8121 +++++++++++++++++++++++++++++++++++ 1 file changed, 8121 insertions(+) create mode 100644 lib/Api/ConsoleAdminApi.php diff --git a/lib/Api/ConsoleAdminApi.php b/lib/Api/ConsoleAdminApi.php new file mode 100644 index 000000000..8d25afa52 --- /dev/null +++ b/lib/Api/ConsoleAdminApi.php @@ -0,0 +1,8121 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation activateDeployment + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult + */ + public function activateDeployment($varForms) + { + list($response) = $this->activateDeploymentWithHttpInfo($varForms); + return $response; + } + + /** + * Operation activateDeploymentWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult, HTTP status code, HTTP response headers (array of strings) + */ + public function activateDeploymentWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult'; + $request = $this->activateDeploymentRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation activateDeploymentAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function activateDeploymentAsync($varForms) + { + return $this->activateDeploymentAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation activateDeploymentAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function activateDeploymentAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult'; + $request = $this->activateDeploymentRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'activateDeployment' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function activateDeploymentRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling activateDeployment' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling activateDeployment' + ); + } + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling activateDeployment' + ); + } + + $resourcePath = '/consoleAdmin/activateDeployment'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + if ($varForms['max_concurrency'] !== null) { + $formParams['maxConcurrency'] = ObjectSerializer::toFormValue($varForms['max_concurrency']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation adaptGameVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult + */ + public function adaptGameVersion($varForms) + { + list($response) = $this->adaptGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation adaptGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function adaptGameVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult'; + $request = $this->adaptGameVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation adaptGameVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function adaptGameVersionAsync($varForms) + { + return $this->adaptGameVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation adaptGameVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function adaptGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult'; + $request = $this->adaptGameVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'adaptGameVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function adaptGameVersionRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling adaptGameVersion' + ); + } + + $resourcePath = '/consoleAdmin/adaptGameVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation addGameToProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult + */ + public function addGameToProject($varForms) + { + list($response) = $this->addGameToProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation addGameToProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function addGameToProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult'; + $request = $this->addGameToProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation addGameToProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addGameToProjectAsync($varForms) + { + return $this->addGameToProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation addGameToProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addGameToProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult'; + $request = $this->addGameToProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'addGameToProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function addGameToProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling addGameToProject' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling addGameToProject' + ); + } + + $resourcePath = '/consoleAdmin/addGameToProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation batchUpdateDispatchConfig + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult + */ + public function batchUpdateDispatchConfig($varForms) + { + list($response) = $this->batchUpdateDispatchConfigWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchUpdateDispatchConfigWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchUpdateDispatchConfigWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult'; + $request = $this->batchUpdateDispatchConfigRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchUpdateDispatchConfigAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateDispatchConfigAsync($varForms) + { + return $this->batchUpdateDispatchConfigAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation batchUpdateDispatchConfigAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateDispatchConfigAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult'; + $request = $this->batchUpdateDispatchConfigRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'batchUpdateDispatchConfig' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function batchUpdateDispatchConfigRequest($varForms) + { + // verify the required parameter 'mix_project_id' is set + if ($varForms['mix_project_id'] === null || (is_array($varForms['mix_project_id']) && count($varForms['mix_project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_project_id\'] when calling batchUpdateDispatchConfig' + ); + } + // verify the required parameter 'instance_id' is set + if ($varForms['instance_id'] === null || (is_array($varForms['instance_id']) && count($varForms['instance_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'instance_id\'] when calling batchUpdateDispatchConfig' + ); + } + // verify the required parameter 'app_name' is set + if ($varForms['app_name'] === null || (is_array($varForms['app_name']) && count($varForms['app_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_name\'] when calling batchUpdateDispatchConfig' + ); + } + // verify the required parameter 'config_list' is set + if ($varForms['config_list'] === null || (is_array($varForms['config_list']) && count($varForms['config_list']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'config_list\'] when calling batchUpdateDispatchConfig' + ); + } + + $resourcePath = '/consoleAdmin/batchUpdateDispatchConfig'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mixProjectId'] = ObjectSerializer::toFormValue($varForms['mix_project_id']); + $formParams['instanceId'] = ObjectSerializer::toFormValue($varForms['instance_id']); + $formParams['appName'] = ObjectSerializer::toFormValue($varForms['app_name']); + $formParams['configList'] = ObjectSerializer::toFormValue($varForms['config_list']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult + */ + public function createGame($varForms) + { + list($response) = $this->createGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult'; + $request = $this->createGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createGameAsync($varForms) + { + return $this->createGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult'; + $request = $this->createGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createGameRequest($varForms) + { + // verify the required parameter 'game_name' is set + if ($varForms['game_name'] === null || (is_array($varForms['game_name']) && count($varForms['game_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_name\'] when calling createGame' + ); + } + // verify the required parameter 'platform_type' is set + if ($varForms['platform_type'] === null || (is_array($varForms['platform_type']) && count($varForms['platform_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'platform_type\'] when calling createGame' + ); + } + + $resourcePath = '/consoleAdmin/createGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameName'] = ObjectSerializer::toFormValue($varForms['game_name']); + $formParams['platformType'] = ObjectSerializer::toFormValue($varForms['platform_type']); + if ($varForms['os_type'] !== null) { + $formParams['osType'] = ObjectSerializer::toFormValue($varForms['os_type']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createOrder + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult + */ + public function createOrder($varForms) + { + list($response) = $this->createOrderWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createOrderWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createOrderWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult'; + $request = $this->createOrderRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createOrderAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrderAsync($varForms) + { + return $this->createOrderAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createOrderAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrderAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult'; + $request = $this->createOrderRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createOrder' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createOrderRequest($varForms) + { + // verify the required parameter 'category_code' is set + if ($varForms['category_code'] === null || (is_array($varForms['category_code']) && count($varForms['category_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'category_code\'] when calling createOrder' + ); + } + // verify the required parameter 'commodity_code' is set + if ($varForms['commodity_code'] === null || (is_array($varForms['commodity_code']) && count($varForms['commodity_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_code\'] when calling createOrder' + ); + } + // verify the required parameter 'primary_charge_item_code' is set + if ($varForms['primary_charge_item_code'] === null || (is_array($varForms['primary_charge_item_code']) && count($varForms['primary_charge_item_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'primary_charge_item_code\'] when calling createOrder' + ); + } + // verify the required parameter 'attribute_request_list' is set + if ($varForms['attribute_request_list'] === null || (is_array($varForms['attribute_request_list']) && count($varForms['attribute_request_list']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'attribute_request_list\'] when calling createOrder' + ); + } + // verify the required parameter 'order_type' is set + if ($varForms['order_type'] === null || (is_array($varForms['order_type']) && count($varForms['order_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'order_type\'] when calling createOrder' + ); + } + + $resourcePath = '/consoleAdmin/createOrder'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['categoryCode'] = ObjectSerializer::toFormValue($varForms['category_code']); + $formParams['commodityCode'] = ObjectSerializer::toFormValue($varForms['commodity_code']); + if ($varForms['instance_id'] !== null) { + $formParams['instanceId'] = ObjectSerializer::toFormValue($varForms['instance_id']); + } + $formParams['primaryChargeItemCode'] = ObjectSerializer::toFormValue($varForms['primary_charge_item_code']); + $formParams['attributeRequestList'] = ObjectSerializer::toFormValue($varForms['attribute_request_list']); + $formParams['orderType'] = ObjectSerializer::toFormValue($varForms['order_type']); + if ($varForms['auto_renew'] !== null) { + $formParams['autoRenew'] = ObjectSerializer::toFormValue($varForms['auto_renew']); + } + if ($varForms['create_order_ext_params'] !== null) { + $formParams['createOrderExtParams'] = ObjectSerializer::toFormValue($varForms['create_order_ext_params']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation createProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult + */ + public function createProject($varForms) + { + list($response) = $this->createProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult'; + $request = $this->createProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createProjectAsync($varForms) + { + return $this->createProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult'; + $request = $this->createProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createProjectRequest($varForms) + { + // verify the required parameter 'project_name' is set + if ($varForms['project_name'] === null || (is_array($varForms['project_name']) && count($varForms['project_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_name\'] when calling createProject' + ); + } + + $resourcePath = '/consoleAdmin/createProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectName'] = ObjectSerializer::toFormValue($varForms['project_name']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult + */ + public function deleteGame($varForms) + { + list($response) = $this->deleteGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult'; + $request = $this->deleteGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameAsync($varForms) + { + return $this->deleteGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult'; + $request = $this->deleteGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteGameRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling deleteGame' + ); + } + + $resourcePath = '/consoleAdmin/deleteGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteGameVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult + */ + public function deleteGameVersion($varForms) + { + list($response) = $this->deleteGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult'; + $request = $this->deleteGameVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameVersionAsync($varForms) + { + return $this->deleteGameVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteGameVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult'; + $request = $this->deleteGameVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteGameVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteGameVersionRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling deleteGameVersion' + ); + } + + $resourcePath = '/consoleAdmin/deleteGameVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult + */ + public function deleteProject($varForms) + { + list($response) = $this->deleteProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult'; + $request = $this->deleteProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProjectAsync($varForms) + { + return $this->deleteProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult'; + $request = $this->deleteProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling deleteProject' + ); + } + + $resourcePath = '/consoleAdmin/deleteProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getBillFlowInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult + */ + public function getBillFlowInfo($varForms) + { + list($response) = $this->getBillFlowInfoWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getBillFlowInfoWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getBillFlowInfoWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult'; + $request = $this->getBillFlowInfoRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getBillFlowInfoAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBillFlowInfoAsync($varForms) + { + return $this->getBillFlowInfoAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getBillFlowInfoAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBillFlowInfoAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult'; + $request = $this->getBillFlowInfoRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getBillFlowInfo' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getBillFlowInfoRequest($varForms) + { + // verify the required parameter 'accounting_period_from' is set + if ($varForms['accounting_period_from'] === null || (is_array($varForms['accounting_period_from']) && count($varForms['accounting_period_from']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_from\'] when calling getBillFlowInfo' + ); + } + // verify the required parameter 'accounting_period_to' is set + if ($varForms['accounting_period_to'] === null || (is_array($varForms['accounting_period_to']) && count($varForms['accounting_period_to']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_to\'] when calling getBillFlowInfo' + ); + } + + $resourcePath = '/consoleAdmin/getBillFlowInfo'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountingPeriodFrom'] = ObjectSerializer::toFormValue($varForms['accounting_period_from']); + $formParams['accountingPeriodTo'] = ObjectSerializer::toFormValue($varForms['accounting_period_to']); + if ($varForms['commodity_code'] !== null) { + $formParams['commodityCode'] = ObjectSerializer::toFormValue($varForms['commodity_code']); + } + if ($varForms['tenant_id'] !== null) { + $formParams['tenantId'] = ObjectSerializer::toFormValue($varForms['tenant_id']); + } + if ($varForms['order_id'] !== null) { + $formParams['orderId'] = ObjectSerializer::toFormValue($varForms['order_id']); + } + if ($varForms['status'] !== null) { + $formParams['status'] = ObjectSerializer::toFormValue($varForms['status']); + } + if ($varForms['consume_type'] !== null) { + $formParams['consumeType'] = ObjectSerializer::toFormValue($varForms['consume_type']); + } + if ($varForms['bill_type'] !== null) { + $formParams['billType'] = ObjectSerializer::toFormValue($varForms['bill_type']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameInstanceContainerRatio + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult + */ + public function getGameInstanceContainerRatio($varForms) + { + list($response) = $this->getGameInstanceContainerRatioWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameInstanceContainerRatioWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameInstanceContainerRatioWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult'; + $request = $this->getGameInstanceContainerRatioRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameInstanceContainerRatioAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameInstanceContainerRatioAsync($varForms) + { + return $this->getGameInstanceContainerRatioAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameInstanceContainerRatioAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameInstanceContainerRatioAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult'; + $request = $this->getGameInstanceContainerRatioRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameInstanceContainerRatio' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameInstanceContainerRatioRequest($varForms) + { + // verify the required parameter 'commodity_instance_id' is set + if ($varForms['commodity_instance_id'] === null || (is_array($varForms['commodity_instance_id']) && count($varForms['commodity_instance_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_instance_id\'] when calling getGameInstanceContainerRatio' + ); + } + // verify the required parameter 'games' is set + if ($varForms['games'] === null || (is_array($varForms['games']) && count($varForms['games']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'games\'] when calling getGameInstanceContainerRatio' + ); + } + + $resourcePath = '/consoleAdmin/getGameInstanceContainerRatio'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['commodityInstanceId'] = ObjectSerializer::toFormValue($varForms['commodity_instance_id']); + $formParams['games'] = ObjectSerializer::toFormValue($varForms['games']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameRecommendedInstance + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult + */ + public function getGameRecommendedInstance($varForms) + { + list($response) = $this->getGameRecommendedInstanceWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameRecommendedInstanceWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameRecommendedInstanceWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult'; + $request = $this->getGameRecommendedInstanceRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameRecommendedInstanceAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameRecommendedInstanceAsync($varForms) + { + return $this->getGameRecommendedInstanceAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameRecommendedInstanceAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameRecommendedInstanceAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult'; + $request = $this->getGameRecommendedInstanceRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameRecommendedInstance' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameRecommendedInstanceRequest($varForms) + { + // verify the required parameter 'game' is set + if ($varForms['game'] === null || (is_array($varForms['game']) && count($varForms['game']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game\'] when calling getGameRecommendedInstance' + ); + } + // verify the required parameter 'commodity_instance_ids' is set + if ($varForms['commodity_instance_ids'] === null || (is_array($varForms['commodity_instance_ids']) && count($varForms['commodity_instance_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_instance_ids\'] when calling getGameRecommendedInstance' + ); + } + + $resourcePath = '/consoleAdmin/getGameRecommendedInstance'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['game'] = ObjectSerializer::toFormValue($varForms['game']); + $formParams['commodityInstanceIds'] = ObjectSerializer::toFormValue($varForms['commodity_instance_ids']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameVersion + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult + */ + public function getGameVersion($varForms) + { + list($response) = $this->getGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameVersionWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult'; + $request = $this->getGameVersionRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameVersionAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionAsync($varForms) + { + return $this->getGameVersionAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameVersionAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult'; + $request = $this->getGameVersionRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameVersion' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameVersionRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling getGameVersion' + ); + } + + $resourcePath = '/consoleAdmin/getGameVersion'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameVersionProgress + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult + */ + public function getGameVersionProgress($varForms) + { + list($response) = $this->getGameVersionProgressWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameVersionProgressWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameVersionProgressWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult'; + $request = $this->getGameVersionProgressRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameVersionProgressAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionProgressAsync($varForms) + { + return $this->getGameVersionProgressAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameVersionProgressAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionProgressAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult'; + $request = $this->getGameVersionProgressRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameVersionProgress' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameVersionProgressRequest($varForms) + { + // verify the required parameter 'task_id' is set + if ($varForms['task_id'] === null || (is_array($varForms['task_id']) && count($varForms['task_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'task_id\'] when calling getGameVersionProgress' + ); + } + + $resourcePath = '/consoleAdmin/getGameVersionProgress'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['taskId'] = ObjectSerializer::toFormValue($varForms['task_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOrder + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult + */ + public function getOrder($varForms) + { + list($response) = $this->getOrderWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getOrderWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrderWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult'; + $request = $this->getOrderRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOrderAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrderAsync($varForms) + { + return $this->getOrderAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getOrderAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrderAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult'; + $request = $this->getOrderRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getOrder' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getOrderRequest($varForms) + { + // verify the required parameter 'order_id' is set + if ($varForms['order_id'] === null || (is_array($varForms['order_id']) && count($varForms['order_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'order_id\'] when calling getOrder' + ); + } + + $resourcePath = '/consoleAdmin/getOrder'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['orderId'] = ObjectSerializer::toFormValue($varForms['order_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listActivateableInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult + */ + public function listActivateableInstances($varForms) + { + list($response) = $this->listActivateableInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listActivateableInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listActivateableInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult'; + $request = $this->listActivateableInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listActivateableInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivateableInstancesAsync($varForms) + { + return $this->listActivateableInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listActivateableInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivateableInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult'; + $request = $this->listActivateableInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listActivateableInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listActivateableInstancesRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listActivateableInstances' + ); + } + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling listActivateableInstances' + ); + } + + $resourcePath = '/consoleAdmin/listActivateableInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listActivatedInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult + */ + public function listActivatedInstances($varForms) + { + list($response) = $this->listActivatedInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listActivatedInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listActivatedInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult'; + $request = $this->listActivatedInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listActivatedInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivatedInstancesAsync($varForms) + { + return $this->listActivatedInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listActivatedInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivatedInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult'; + $request = $this->listActivatedInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listActivatedInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listActivatedInstancesRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listActivatedInstances' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listActivatedInstances' + ); + } + + $resourcePath = '/consoleAdmin/listActivatedInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listControllersOfGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult + */ + public function listControllersOfGame($varForms) + { + list($response) = $this->listControllersOfGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listControllersOfGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listControllersOfGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult'; + $request = $this->listControllersOfGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listControllersOfGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listControllersOfGameAsync($varForms) + { + return $this->listControllersOfGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listControllersOfGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listControllersOfGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult'; + $request = $this->listControllersOfGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listControllersOfGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listControllersOfGameRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listControllersOfGame' + ); + } + + $resourcePath = '/consoleAdmin/listControllersOfGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listDeployableInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult + */ + public function listDeployableInstances($varForms) + { + list($response) = $this->listDeployableInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listDeployableInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listDeployableInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult'; + $request = $this->listDeployableInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listDeployableInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listDeployableInstancesAsync($varForms) + { + return $this->listDeployableInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listDeployableInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listDeployableInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult'; + $request = $this->listDeployableInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listDeployableInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listDeployableInstancesRequest($varForms) + { + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling listDeployableInstances' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listDeployableInstances' + ); + } + + $resourcePath = '/consoleAdmin/listDeployableInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameCcu + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult + */ + public function listGameCcu($varForms) + { + list($response) = $this->listGameCcuWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameCcuWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameCcuWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult'; + $request = $this->listGameCcuRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameCcuAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameCcuAsync($varForms) + { + return $this->listGameCcuAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameCcuAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameCcuAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult'; + $request = $this->listGameCcuRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameCcu' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameCcuRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listGameCcu'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['mix_game_ids'] !== null) { + $formParams['mixGameIds'] = ObjectSerializer::toFormValue($varForms['mix_game_ids']); + } + if ($varForms['project_ids'] !== null) { + $formParams['projectIds'] = ObjectSerializer::toFormValue($varForms['project_ids']); + } + if ($varForms['query_time_start'] !== null) { + $formParams['queryTimeStart'] = ObjectSerializer::toFormValue($varForms['query_time_start']); + } + if ($varForms['query_time_end'] !== null) { + $formParams['queryTimeEnd'] = ObjectSerializer::toFormValue($varForms['query_time_end']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameDeployDetailsOfProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult + */ + public function listGameDeployDetailsOfProject($varForms) + { + list($response) = $this->listGameDeployDetailsOfProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameDeployDetailsOfProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameDeployDetailsOfProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult'; + $request = $this->listGameDeployDetailsOfProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameDeployDetailsOfProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameDeployDetailsOfProjectAsync($varForms) + { + return $this->listGameDeployDetailsOfProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameDeployDetailsOfProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameDeployDetailsOfProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult'; + $request = $this->listGameDeployDetailsOfProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameDeployDetailsOfProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameDeployDetailsOfProjectRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listGameDeployDetailsOfProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['project_id'] !== null) { + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + } + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameVersions + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult + */ + public function listGameVersions($varForms) + { + list($response) = $this->listGameVersionsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameVersionsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameVersionsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult'; + $request = $this->listGameVersionsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameVersionsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameVersionsAsync($varForms) + { + return $this->listGameVersionsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameVersionsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameVersionsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult'; + $request = $this->listGameVersionsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameVersions' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameVersionsRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listGameVersions' + ); + } + + $resourcePath = '/consoleAdmin/listGameVersions'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGames + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult + */ + public function listGames($varForms) + { + list($response) = $this->listGamesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGamesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGamesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult'; + $request = $this->listGamesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGamesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGamesAsync($varForms) + { + return $this->listGamesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGamesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGamesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult'; + $request = $this->listGamesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGames' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGamesRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listGames'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listInstancesOfProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult + */ + public function listInstancesOfProject($varForms) + { + list($response) = $this->listInstancesOfProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listInstancesOfProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listInstancesOfProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult'; + $request = $this->listInstancesOfProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listInstancesOfProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listInstancesOfProjectAsync($varForms) + { + return $this->listInstancesOfProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listInstancesOfProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listInstancesOfProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult'; + $request = $this->listInstancesOfProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listInstancesOfProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listInstancesOfProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling listInstancesOfProject' + ); + } + + $resourcePath = '/consoleAdmin/listInstancesOfProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_result'] !== null) { + $formParams['maxResult'] = ObjectSerializer::toFormValue($varForms['max_result']); + } + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listMonthBill + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult + */ + public function listMonthBill($varForms) + { + list($response) = $this->listMonthBillWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listMonthBillWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listMonthBillWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult'; + $request = $this->listMonthBillRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listMonthBillAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMonthBillAsync($varForms) + { + return $this->listMonthBillAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listMonthBillAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMonthBillAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult'; + $request = $this->listMonthBillRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listMonthBill' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listMonthBillRequest($varForms) + { + // verify the required parameter 'accounting_period_from' is set + if ($varForms['accounting_period_from'] === null || (is_array($varForms['accounting_period_from']) && count($varForms['accounting_period_from']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_from\'] when calling listMonthBill' + ); + } + // verify the required parameter 'accounting_period_to' is set + if ($varForms['accounting_period_to'] === null || (is_array($varForms['accounting_period_to']) && count($varForms['accounting_period_to']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'accounting_period_to\'] when calling listMonthBill' + ); + } + + $resourcePath = '/consoleAdmin/listMonthBill'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountingPeriodFrom'] = ObjectSerializer::toFormValue($varForms['accounting_period_from']); + $formParams['accountingPeriodTo'] = ObjectSerializer::toFormValue($varForms['accounting_period_to']); + if ($varForms['status'] !== null) { + $formParams['status'] = ObjectSerializer::toFormValue($varForms['status']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listProjects + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult + */ + public function listProjects($varForms) + { + list($response) = $this->listProjectsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listProjectsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listProjectsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult'; + $request = $this->listProjectsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listProjectsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listProjectsAsync($varForms) + { + return $this->listProjectsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listProjectsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listProjectsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult'; + $request = $this->listProjectsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listProjects' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listProjectsRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listProjects'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + if ($varForms['max_results'] !== null) { + $formParams['maxResults'] = ObjectSerializer::toFormValue($varForms['max_results']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listVersionDeployInstances + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult + */ + public function listVersionDeployInstances($varForms) + { + list($response) = $this->listVersionDeployInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listVersionDeployInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listVersionDeployInstancesWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult'; + $request = $this->listVersionDeployInstancesRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listVersionDeployInstancesAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listVersionDeployInstancesAsync($varForms) + { + return $this->listVersionDeployInstancesAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listVersionDeployInstancesAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listVersionDeployInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult'; + $request = $this->listVersionDeployInstancesRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listVersionDeployInstances' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listVersionDeployInstancesRequest($varForms) + { + + $resourcePath = '/consoleAdmin/listVersionDeployInstances'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['project_id'] !== null) { + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + } + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + if ($varForms['version_id'] !== null) { + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + } + if ($varForms['deploy_status'] !== null) { + $formParams['deployStatus'] = ObjectSerializer::toFormValue($varForms['deploy_status']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation queryAdaptResultByVersionId + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult + */ + public function queryAdaptResultByVersionId($varForms) + { + list($response) = $this->queryAdaptResultByVersionIdWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryAdaptResultByVersionIdWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryAdaptResultByVersionIdWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult'; + $request = $this->queryAdaptResultByVersionIdRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryAdaptResultByVersionIdAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAdaptResultByVersionIdAsync($varForms) + { + return $this->queryAdaptResultByVersionIdAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryAdaptResultByVersionIdAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAdaptResultByVersionIdAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult'; + $request = $this->queryAdaptResultByVersionIdRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryAdaptResultByVersionId' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryAdaptResultByVersionIdRequest($varForms) + { + // verify the required parameter 'mix_version_id' is set + if ($varForms['mix_version_id'] === null || (is_array($varForms['mix_version_id']) && count($varForms['mix_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mix_version_id\'] when calling queryAdaptResultByVersionId' + ); + } + + $resourcePath = '/consoleAdmin/queryAdaptResultByVersionId'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mixVersionId'] = ObjectSerializer::toFormValue($varForms['mix_version_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation recommendSpecification + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult + */ + public function recommendSpecification($varForms) + { + list($response) = $this->recommendSpecificationWithHttpInfo($varForms); + return $response; + } + + /** + * Operation recommendSpecificationWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function recommendSpecificationWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult'; + $request = $this->recommendSpecificationRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation recommendSpecificationAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function recommendSpecificationAsync($varForms) + { + return $this->recommendSpecificationAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation recommendSpecificationAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function recommendSpecificationAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult'; + $request = $this->recommendSpecificationRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'recommendSpecification' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function recommendSpecificationRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling recommendSpecification' + ); + } + // verify the required parameter 'game_version_id' is set + if ($varForms['game_version_id'] === null || (is_array($varForms['game_version_id']) && count($varForms['game_version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_version_id\'] when calling recommendSpecification' + ); + } + // verify the required parameter 'platform_type' is set + if ($varForms['platform_type'] === null || (is_array($varForms['platform_type']) && count($varForms['platform_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'platform_type\'] when calling recommendSpecification' + ); + } + + $resourcePath = '/consoleAdmin/recommendSpecification'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['gameVersionId'] = ObjectSerializer::toFormValue($varForms['game_version_id']); + $formParams['platformType'] = ObjectSerializer::toFormValue($varForms['platform_type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation removeGameFromProject + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult + */ + public function removeGameFromProject($varForms) + { + list($response) = $this->removeGameFromProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation removeGameFromProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function removeGameFromProjectWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult'; + $request = $this->removeGameFromProjectRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation removeGameFromProjectAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeGameFromProjectAsync($varForms) + { + return $this->removeGameFromProjectAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation removeGameFromProjectAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeGameFromProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult'; + $request = $this->removeGameFromProjectRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'removeGameFromProject' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function removeGameFromProjectRequest($varForms) + { + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling removeGameFromProject' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling removeGameFromProject' + ); + } + + $resourcePath = '/consoleAdmin/removeGameFromProject'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation rtOverView + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult + */ + public function rtOverView($varForms) + { + list($response) = $this->rtOverViewWithHttpInfo($varForms); + return $response; + } + + /** + * Operation rtOverViewWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult, HTTP status code, HTTP response headers (array of strings) + */ + public function rtOverViewWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult'; + $request = $this->rtOverViewRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation rtOverViewAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtOverViewAsync($varForms) + { + return $this->rtOverViewAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation rtOverViewAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtOverViewAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult'; + $request = $this->rtOverViewRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'rtOverView' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function rtOverViewRequest($varForms) + { + + $resourcePath = '/consoleAdmin/rtOverView'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['mix_game_ids'] !== null) { + $formParams['mixGameIds'] = ObjectSerializer::toFormValue($varForms['mix_game_ids']); + } + if ($varForms['project_ids'] !== null) { + $formParams['projectIds'] = ObjectSerializer::toFormValue($varForms['project_ids']); + } + if ($varForms['query_time_start'] !== null) { + $formParams['queryTimeStart'] = ObjectSerializer::toFormValue($varForms['query_time_start']); + } + if ($varForms['query_time_end'] !== null) { + $formParams['queryTimeEnd'] = ObjectSerializer::toFormValue($varForms['query_time_end']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation rtTrend + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult + */ + public function rtTrend($varForms) + { + list($response) = $this->rtTrendWithHttpInfo($varForms); + return $response; + } + + /** + * Operation rtTrendWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult, HTTP status code, HTTP response headers (array of strings) + */ + public function rtTrendWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult'; + $request = $this->rtTrendRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation rtTrendAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtTrendAsync($varForms) + { + return $this->rtTrendAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation rtTrendAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtTrendAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult'; + $request = $this->rtTrendRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'rtTrend' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function rtTrendRequest($varForms) + { + + $resourcePath = '/consoleAdmin/rtTrend'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['group_type'] !== null) { + $formParams['groupType'] = ObjectSerializer::toFormValue($varForms['group_type']); + } + if ($varForms['indicator_types'] !== null) { + $formParams['indicatorTypes'] = ObjectSerializer::toFormValue($varForms['indicator_types']); + } + if ($varForms['mix_game_ids'] !== null) { + $formParams['mixGameIds'] = ObjectSerializer::toFormValue($varForms['mix_game_ids']); + } + if ($varForms['project_ids'] !== null) { + $formParams['projectIds'] = ObjectSerializer::toFormValue($varForms['project_ids']); + } + if ($varForms['query_time_start'] !== null) { + $formParams['queryTimeStart'] = ObjectSerializer::toFormValue($varForms['query_time_start']); + } + if ($varForms['query_time_end'] !== null) { + $formParams['queryTimeEnd'] = ObjectSerializer::toFormValue($varForms['query_time_end']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation submitDeployment + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult + */ + public function submitDeployment($varForms) + { + list($response) = $this->submitDeploymentWithHttpInfo($varForms); + return $response; + } + + /** + * Operation submitDeploymentWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult, HTTP status code, HTTP response headers (array of strings) + */ + public function submitDeploymentWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult'; + $request = $this->submitDeploymentRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitDeploymentAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitDeploymentAsync($varForms) + { + return $this->submitDeploymentAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation submitDeploymentAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitDeploymentAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult'; + $request = $this->submitDeploymentRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'submitDeployment' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function submitDeploymentRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling submitDeployment' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling submitDeployment' + ); + } + // verify the required parameter 'version_id' is set + if ($varForms['version_id'] === null || (is_array($varForms['version_id']) && count($varForms['version_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_id\'] when calling submitDeployment' + ); + } + // verify the required parameter 'cloud_game_instance_ids' is set + if ($varForms['cloud_game_instance_ids'] === null || (is_array($varForms['cloud_game_instance_ids']) && count($varForms['cloud_game_instance_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'cloud_game_instance_ids\'] when calling submitDeployment' + ); + } + // verify the required parameter 'operation_type' is set + if ($varForms['operation_type'] === null || (is_array($varForms['operation_type']) && count($varForms['operation_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'operation_type\'] when calling submitDeployment' + ); + } + + $resourcePath = '/consoleAdmin/submitDeployment'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + $formParams['versionId'] = ObjectSerializer::toFormValue($varForms['version_id']); + $formParams['cloudGameInstanceIds'] = ObjectSerializer::toFormValue($varForms['cloud_game_instance_ids']); + $formParams['operationType'] = ObjectSerializer::toFormValue($varForms['operation_type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation submitRefund + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult + */ + public function submitRefund($varForms) + { + list($response) = $this->submitRefundWithHttpInfo($varForms); + return $response; + } + + /** + * Operation submitRefundWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult, HTTP status code, HTTP response headers (array of strings) + */ + public function submitRefundWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult'; + $request = $this->submitRefundRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitRefundAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitRefundAsync($varForms) + { + return $this->submitRefundAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation submitRefundAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitRefundAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult'; + $request = $this->submitRefundRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'submitRefund' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function submitRefundRequest($varForms) + { + // verify the required parameter 'commodity_code' is set + if ($varForms['commodity_code'] === null || (is_array($varForms['commodity_code']) && count($varForms['commodity_code']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'commodity_code\'] when calling submitRefund' + ); + } + // verify the required parameter 'instance_id' is set + if ($varForms['instance_id'] === null || (is_array($varForms['instance_id']) && count($varForms['instance_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'instance_id\'] when calling submitRefund' + ); + } + // verify the required parameter 'refund_type' is set + if ($varForms['refund_type'] === null || (is_array($varForms['refund_type']) && count($varForms['refund_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'refund_type\'] when calling submitRefund' + ); + } + + $resourcePath = '/consoleAdmin/submitRefund'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['commodityCode'] = ObjectSerializer::toFormValue($varForms['commodity_code']); + $formParams['instanceId'] = ObjectSerializer::toFormValue($varForms['instance_id']); + $formParams['refundType'] = ObjectSerializer::toFormValue($varForms['refund_type']); + if ($varForms['refund_reason'] !== null) { + $formParams['refundReason'] = ObjectSerializer::toFormValue($varForms['refund_reason']); + } + if ($varForms['refund_reason_type'] !== null) { + $formParams['refundReasonType'] = ObjectSerializer::toFormValue($varForms['refund_reason_type']); + } + if ($varForms['target_expire_time'] !== null) { + $formParams['targetExpireTime'] = ObjectSerializer::toFormValue($varForms['target_expire_time']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation uploadGameVersionByDownload + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult + */ + public function uploadGameVersionByDownload($varForms) + { + list($response) = $this->uploadGameVersionByDownloadWithHttpInfo($varForms); + return $response; + } + + /** + * Operation uploadGameVersionByDownloadWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadGameVersionByDownloadWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult'; + $request = $this->uploadGameVersionByDownloadRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation uploadGameVersionByDownloadAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadGameVersionByDownloadAsync($varForms) + { + return $this->uploadGameVersionByDownloadAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation uploadGameVersionByDownloadAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadGameVersionByDownloadAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult'; + $request = $this->uploadGameVersionByDownloadRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'uploadGameVersionByDownload' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function uploadGameVersionByDownloadRequest($varForms) + { + // verify the required parameter 'hash' is set + if ($varForms['hash'] === null || (is_array($varForms['hash']) && count($varForms['hash']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'hash\'] when calling uploadGameVersionByDownload' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling uploadGameVersionByDownload' + ); + } + // verify the required parameter 'download_type' is set + if ($varForms['download_type'] === null || (is_array($varForms['download_type']) && count($varForms['download_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'download_type\'] when calling uploadGameVersionByDownload' + ); + } + // verify the required parameter 'version_name' is set + if ($varForms['version_name'] === null || (is_array($varForms['version_name']) && count($varForms['version_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'version_name\'] when calling uploadGameVersionByDownload' + ); + } + + $resourcePath = '/consoleAdmin/uploadGameVersionByDownload'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['hash'] = ObjectSerializer::toFormValue($varForms['hash']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['downloadType'] = ObjectSerializer::toFormValue($varForms['download_type']); + $formParams['versionName'] = ObjectSerializer::toFormValue($varForms['version_name']); + if ($varForms['os_manifest'] !== null) { + $formParams['osManifest'] = ObjectSerializer::toFormValue($varForms['os_manifest']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From d9395dd8e7e1e1b29f66a810498963aa239e5380 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:41 +0800 Subject: [PATCH 279/373] feat: update --- lib/Api/DispatchApi.php | 4240 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 4240 insertions(+) create mode 100644 lib/Api/DispatchApi.php diff --git a/lib/Api/DispatchApi.php b/lib/Api/DispatchApi.php new file mode 100644 index 000000000..5b1ec6859 --- /dev/null +++ b/lib/Api/DispatchApi.php @@ -0,0 +1,4240 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation batchStopGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult + */ + public function batchStopGame($varForms) + { + list($response) = $this->batchStopGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchStopGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchStopGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult'; + $request = $this->batchStopGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchStopGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchStopGameAsync($varForms) + { + return $this->batchStopGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation batchStopGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchStopGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult'; + $request = $this->batchStopGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'batchStopGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function batchStopGameRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling batchStopGame' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling batchStopGame' + ); + } + // verify the required parameter 'token' is set + if ($varForms['token'] === null || (is_array($varForms['token']) && count($varForms['token']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'token\'] when calling batchStopGame' + ); + } + + $resourcePath = '/batchStopGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['token'] = ObjectSerializer::toFormValue($varForms['token']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + if ($varForms['track_info'] !== null) { + $formParams['trackInfo'] = ObjectSerializer::toFormValue($varForms['track_info']); + } + if ($varForms['tags'] !== null) { + $formParams['tags'] = ObjectSerializer::toFormValue($varForms['tags']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation cancelGameHang + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult + */ + public function cancelGameHang($varForms) + { + list($response) = $this->cancelGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation cancelGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelGameHangWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult'; + $request = $this->cancelGameHangRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelGameHangAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelGameHangAsync($varForms) + { + return $this->cancelGameHangAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cancelGameHangAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult'; + $request = $this->cancelGameHangRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'cancelGameHang' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function cancelGameHangRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling cancelGameHang' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling cancelGameHang' + ); + } + + $resourcePath = '/cancelGameHang'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation clientNotify + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult + */ + public function clientNotify($varForms) + { + list($response) = $this->clientNotifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation clientNotifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function clientNotifyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult'; + $request = $this->clientNotifyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation clientNotifyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function clientNotifyAsync($varForms) + { + return $this->clientNotifyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation clientNotifyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function clientNotifyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult'; + $request = $this->clientNotifyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'clientNotify' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function clientNotifyRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling clientNotify' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling clientNotify' + ); + } + // verify the required parameter 'value' is set + if ($varForms['value'] === null || (is_array($varForms['value']) && count($varForms['value']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'value\'] when calling clientNotify' + ); + } + + $resourcePath = '/clientNotify'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['value'] = ObjectSerializer::toFormValue($varForms['value']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation gameNotify + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult + */ + public function gameNotify($varForms) + { + list($response) = $this->gameNotifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation gameNotifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function gameNotifyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult'; + $request = $this->gameNotifyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation gameNotifyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function gameNotifyAsync($varForms) + { + return $this->gameNotifyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation gameNotifyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function gameNotifyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult'; + $request = $this->gameNotifyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'gameNotify' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function gameNotifyRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling gameNotify' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling gameNotify' + ); + } + // verify the required parameter 'type' is set + if ($varForms['type'] === null || (is_array($varForms['type']) && count($varForms['type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'type\'] when calling gameNotify' + ); + } + + $resourcePath = '/gameNotify'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['type'] = ObjectSerializer::toFormValue($varForms['type']); + if ($varForms['value'] !== null) { + $formParams['value'] = ObjectSerializer::toFormValue($varForms['value']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameConcurrency + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult + */ + public function getGameConcurrency($varForms) + { + list($response) = $this->getGameConcurrencyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameConcurrencyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameConcurrencyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult'; + $request = $this->getGameConcurrencyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameConcurrencyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameConcurrencyAsync($varForms) + { + return $this->getGameConcurrencyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameConcurrencyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameConcurrencyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult'; + $request = $this->getGameConcurrencyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameConcurrency' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameConcurrencyRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getGameConcurrency' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling getGameConcurrency' + ); + } + + $resourcePath = '/getGameConcurrency'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['query_queue_concurrency'] !== null) { + $formParams['queryQueueConcurrency'] = ObjectSerializer::toFormValue($varForms['query_queue_concurrency']); + } + if ($varForms['queue_user_level'] !== null) { + $formParams['queueUserLevel'] = ObjectSerializer::toFormValue($varForms['queue_user_level']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getStock + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult + */ + public function getStock($varForms) + { + list($response) = $this->getStockWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getStockWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getStockWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult'; + $request = $this->getStockRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStockAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStockAsync($varForms) + { + return $this->getStockAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getStockAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStockAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult'; + $request = $this->getStockRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getStock' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getStockRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling getStock' + ); + } + // verify the required parameter 'type' is set + if ($varForms['type'] === null || (is_array($varForms['type']) && count($varForms['type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'type\'] when calling getStock' + ); + } + + $resourcePath = '/getStock'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['game_id'] !== null) { + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + } + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['type'] = ObjectSerializer::toFormValue($varForms['type']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getStopGameToken + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult + */ + public function getStopGameToken($varForms) + { + list($response) = $this->getStopGameTokenWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getStopGameTokenWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getStopGameTokenWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult'; + $request = $this->getStopGameTokenRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStopGameTokenAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStopGameTokenAsync($varForms) + { + return $this->getStopGameTokenAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getStopGameTokenAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStopGameTokenAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult'; + $request = $this->getStopGameTokenRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getStopGameToken' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getStopGameTokenRequest($varForms) + { + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getStopGameToken' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling getStopGameToken' + ); + } + + $resourcePath = '/getStopGameToken'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listGameServerIp + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult + */ + public function listGameServerIp($varForms) + { + list($response) = $this->listGameServerIpWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameServerIpWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameServerIpWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult'; + $request = $this->listGameServerIpRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameServerIpAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameServerIpAsync($varForms) + { + return $this->listGameServerIpAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listGameServerIpAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameServerIpAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult'; + $request = $this->listGameServerIpRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listGameServerIp' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listGameServerIpRequest($varForms) + { + + $resourcePath = '/listGameServerIp'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + if ($varForms['next_token'] !== null) { + $formParams['nextToken'] = ObjectSerializer::toFormValue($varForms['next_token']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation queryGameHang + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult + */ + public function queryGameHang($varForms) + { + list($response) = $this->queryGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryGameHangWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult'; + $request = $this->queryGameHangRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryGameHangAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryGameHangAsync($varForms) + { + return $this->queryGameHangAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryGameHangAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult'; + $request = $this->queryGameHangRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryGameHang' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryGameHangRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling queryGameHang' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling queryGameHang' + ); + } + + $resourcePath = '/queryGameHang'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation querySessionStatus + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult + */ + public function querySessionStatus($varForms) + { + list($response) = $this->querySessionStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation querySessionStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function querySessionStatusWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult'; + $request = $this->querySessionStatusRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation querySessionStatusAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function querySessionStatusAsync($varForms) + { + return $this->querySessionStatusAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation querySessionStatusAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function querySessionStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult'; + $request = $this->querySessionStatusRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'querySessionStatus' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function querySessionStatusRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling querySessionStatus' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling querySessionStatus' + ); + } + + $resourcePath = '/querySessionStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation replaceSlot + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult + */ + public function replaceSlot($varForms) + { + list($response) = $this->replaceSlotWithHttpInfo($varForms); + return $response; + } + + /** + * Operation replaceSlotWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult, HTTP status code, HTTP response headers (array of strings) + */ + public function replaceSlotWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult'; + $request = $this->replaceSlotRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation replaceSlotAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function replaceSlotAsync($varForms) + { + return $this->replaceSlotAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation replaceSlotAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function replaceSlotAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult'; + $request = $this->replaceSlotRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'replaceSlot' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function replaceSlotRequest($varForms) + { + // verify the required parameter 'replace_session' is set + if ($varForms['replace_session'] === null || (is_array($varForms['replace_session']) && count($varForms['replace_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'replace_session\'] when calling replaceSlot' + ); + } + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling replaceSlot' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling replaceSlot' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling replaceSlot' + ); + } + + $resourcePath = '/replaceSlot'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['replaceSession'] = ObjectSerializer::toFormValue($varForms['replace_session']); + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['biz_param'] !== null) { + $formParams['bizParam'] = ObjectSerializer::toFormValue($varForms['biz_param']); + } + if ($varForms['client_ip'] !== null) { + $formParams['clientIp'] = ObjectSerializer::toFormValue($varForms['client_ip']); + } + if ($varForms['tags'] !== null) { + $formParams['tags'] = ObjectSerializer::toFormValue($varForms['tags']); + } + if ($varForms['codec'] !== null) { + $formParams['codec'] = ObjectSerializer::toFormValue($varForms['codec']); + } + if ($varForms['resolution'] !== null) { + $formParams['resolution'] = ObjectSerializer::toFormValue($varForms['resolution']); + } + if ($varForms['bit_rate'] !== null) { + $formParams['bitRate'] = ObjectSerializer::toFormValue($varForms['bit_rate']); + } + if ($varForms['fps'] !== null) { + $formParams['fps'] = ObjectSerializer::toFormValue($varForms['fps']); + } + if ($varForms['game_cmd_param'] !== null) { + $formParams['gameCmdParam'] = ObjectSerializer::toFormValue($varForms['game_cmd_param']); + } + if ($varForms['user_level'] !== null) { + $formParams['userLevel'] = ObjectSerializer::toFormValue($varForms['user_level']); + } + if ($varForms['start_param'] !== null) { + $formParams['startParam'] = ObjectSerializer::toFormValue($varForms['start_param']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation setGameAlive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult + */ + public function setGameAlive($varForms) + { + list($response) = $this->setGameAliveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation setGameAliveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function setGameAliveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult'; + $request = $this->setGameAliveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation setGameAliveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameAliveAsync($varForms) + { + return $this->setGameAliveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation setGameAliveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameAliveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult'; + $request = $this->setGameAliveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'setGameAlive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function setGameAliveRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling setGameAlive' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling setGameAlive' + ); + } + // verify the required parameter 'keep_alive' is set + if ($varForms['keep_alive'] === null || (is_array($varForms['keep_alive']) && count($varForms['keep_alive']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'keep_alive\'] when calling setGameAlive' + ); + } + + $resourcePath = '/setGameAlive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['keepAlive'] = ObjectSerializer::toFormValue($varForms['keep_alive']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation setGameHang + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult + */ + public function setGameHang($varForms) + { + list($response) = $this->setGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation setGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function setGameHangWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult'; + $request = $this->setGameHangRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation setGameHangAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameHangAsync($varForms) + { + return $this->setGameHangAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation setGameHangAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult'; + $request = $this->setGameHangRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'setGameHang' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function setGameHangRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling setGameHang' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling setGameHang' + ); + } + // verify the required parameter 'duration' is set + if ($varForms['duration'] === null || (is_array($varForms['duration']) && count($varForms['duration']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'duration\'] when calling setGameHang' + ); + } + + $resourcePath = '/setGameHang'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['duration'] = ObjectSerializer::toFormValue($varForms['duration']); + if ($varForms['kick_in_the_game'] !== null) { + $formParams['kickInTheGame'] = ObjectSerializer::toFormValue($varForms['kick_in_the_game']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation stopGame + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult + */ + public function stopGame($varForms) + { + list($response) = $this->stopGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopGameWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult'; + $request = $this->stopGameRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopGameAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameAsync($varForms) + { + return $this->stopGameAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation stopGameAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult'; + $request = $this->stopGameRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'stopGame' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function stopGameRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling stopGame' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling stopGame' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling stopGame' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling stopGame' + ); + } + + $resourcePath = '/stopGame'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation stopPreopenContainer + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult + */ + public function stopPreopenContainer($varForms) + { + list($response) = $this->stopPreopenContainerWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopPreopenContainerWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopPreopenContainerWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult'; + $request = $this->stopPreopenContainerRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopPreopenContainerAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopPreopenContainerAsync($varForms) + { + return $this->stopPreopenContainerAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation stopPreopenContainerAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopPreopenContainerAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult'; + $request = $this->stopPreopenContainerRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'stopPreopenContainer' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function stopPreopenContainerRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling stopPreopenContainer' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling stopPreopenContainer' + ); + } + + $resourcePath = '/stopPreopenContainer'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['number_of_batches'] !== null) { + $formParams['numberOfBatches'] = ObjectSerializer::toFormValue($varForms['number_of_batches']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation tryToGetSlot + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult + */ + public function tryToGetSlot($varForms) + { + list($response) = $this->tryToGetSlotWithHttpInfo($varForms); + return $response; + } + + /** + * Operation tryToGetSlotWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult, HTTP status code, HTTP response headers (array of strings) + */ + public function tryToGetSlotWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult'; + $request = $this->tryToGetSlotRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation tryToGetSlotAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotAsync($varForms) + { + return $this->tryToGetSlotAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation tryToGetSlotAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult'; + $request = $this->tryToGetSlotRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'tryToGetSlot' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function tryToGetSlotRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling tryToGetSlot' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling tryToGetSlot' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling tryToGetSlot' + ); + } + + $resourcePath = '/tryToGetSlot'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['region_id'] !== null) { + $formParams['regionId'] = ObjectSerializer::toFormValue($varForms['region_id']); + } + if ($varForms['re_connect'] !== null) { + $formParams['reConnect'] = ObjectSerializer::toFormValue($varForms['re_connect']); + } + if ($varForms['biz_param'] !== null) { + $formParams['bizParam'] = ObjectSerializer::toFormValue($varForms['biz_param']); + } + if ($varForms['client_ip'] !== null) { + $formParams['clientIp'] = ObjectSerializer::toFormValue($varForms['client_ip']); + } + if ($varForms['tags'] !== null) { + $formParams['tags'] = ObjectSerializer::toFormValue($varForms['tags']); + } + if ($varForms['user_level'] !== null) { + $formParams['userLevel'] = ObjectSerializer::toFormValue($varForms['user_level']); + } + if ($varForms['codec'] !== null) { + $formParams['codec'] = ObjectSerializer::toFormValue($varForms['codec']); + } + if ($varForms['resolution'] !== null) { + $formParams['resolution'] = ObjectSerializer::toFormValue($varForms['resolution']); + } + if ($varForms['bit_rate'] !== null) { + $formParams['bitRate'] = ObjectSerializer::toFormValue($varForms['bit_rate']); + } + if ($varForms['fps'] !== null) { + $formParams['fps'] = ObjectSerializer::toFormValue($varForms['fps']); + } + if ($varForms['game_cmd_param'] !== null) { + $formParams['gameCmdParam'] = ObjectSerializer::toFormValue($varForms['game_cmd_param']); + } + if ($varForms['start_param'] !== null) { + $formParams['startParam'] = ObjectSerializer::toFormValue($varForms['start_param']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation tryToGetSlots + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult + */ + public function tryToGetSlots($varForms) + { + list($response) = $this->tryToGetSlotsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation tryToGetSlotsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function tryToGetSlotsWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult'; + $request = $this->tryToGetSlotsRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation tryToGetSlotsAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotsAsync($varForms) + { + return $this->tryToGetSlotsAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation tryToGetSlotsAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotsAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult'; + $request = $this->tryToGetSlotsRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'tryToGetSlots' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function tryToGetSlotsRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling tryToGetSlots' + ); + } + // verify the required parameter 'parallel_schedule' is set + if ($varForms['parallel_schedule'] === null || (is_array($varForms['parallel_schedule']) && count($varForms['parallel_schedule']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'parallel_schedule\'] when calling tryToGetSlots' + ); + } + // verify the required parameter 'requests' is set + if ($varForms['requests'] === null || (is_array($varForms['requests']) && count($varForms['requests']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'requests\'] when calling tryToGetSlots' + ); + } + + $resourcePath = '/tryToGetSlots'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['parallelSchedule'] = ObjectSerializer::toFormValue($varForms['parallel_schedule']); + $formParams['requests'] = ObjectSerializer::toFormValue($varForms['requests']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updatePreopenStrategy + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult + */ + public function updatePreopenStrategy($varForms) + { + list($response) = $this->updatePreopenStrategyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updatePreopenStrategyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updatePreopenStrategyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult'; + $request = $this->updatePreopenStrategyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updatePreopenStrategyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePreopenStrategyAsync($varForms) + { + return $this->updatePreopenStrategyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updatePreopenStrategyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePreopenStrategyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult'; + $request = $this->updatePreopenStrategyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updatePreopenStrategy' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updatePreopenStrategyRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling updatePreopenStrategy' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling updatePreopenStrategy' + ); + } + + $resourcePath = '/updatePreopenStrategy'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['pre_start_cmd'] !== null) { + $formParams['preStartCmd'] = ObjectSerializer::toFormValue($varForms['pre_start_cmd']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From ff175de3396b3a80a69b76caa140466909d723d0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:42 +0800 Subject: [PATCH 280/373] feat: update --- lib/Api/LiveApi.php | 780 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 780 insertions(+) create mode 100644 lib/Api/LiveApi.php diff --git a/lib/Api/LiveApi.php b/lib/Api/LiveApi.php new file mode 100644 index 000000000..5f105560a --- /dev/null +++ b/lib/Api/LiveApi.php @@ -0,0 +1,780 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation queryStatus + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult + */ + public function queryStatus($varForms) + { + list($response) = $this->queryStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryStatusWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult'; + $request = $this->queryStatusRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryStatusAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryStatusAsync($varForms) + { + return $this->queryStatusAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryStatusAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult'; + $request = $this->queryStatusRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'queryStatus' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryStatusRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling queryStatus' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling queryStatus' + ); + } + + $resourcePath = '/live/queryStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + if ($varForms['live_id'] !== null) { + $formParams['liveId'] = ObjectSerializer::toFormValue($varForms['live_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation startGameLive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult + */ + public function startGameLive($varForms) + { + list($response) = $this->startGameLiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation startGameLiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function startGameLiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult'; + $request = $this->startGameLiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation startGameLiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startGameLiveAsync($varForms) + { + return $this->startGameLiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation startGameLiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startGameLiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult'; + $request = $this->startGameLiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'startGameLive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function startGameLiveRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling startGameLive' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling startGameLive' + ); + } + // verify the required parameter 'server_url' is set + if ($varForms['server_url'] === null || (is_array($varForms['server_url']) && count($varForms['server_url']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'server_url\'] when calling startGameLive' + ); + } + // verify the required parameter 'stream_key' is set + if ($varForms['stream_key'] === null || (is_array($varForms['stream_key']) && count($varForms['stream_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'stream_key\'] when calling startGameLive' + ); + } + + $resourcePath = '/live/startGameLive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['serverUrl'] = ObjectSerializer::toFormValue($varForms['server_url']); + $formParams['streamKey'] = ObjectSerializer::toFormValue($varForms['stream_key']); + if ($varForms['config'] !== null) { + $formParams['config'] = ObjectSerializer::toFormValue($varForms['config']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation stopGameLive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult + */ + public function stopGameLive($varForms) + { + list($response) = $this->stopGameLiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopGameLiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopGameLiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult'; + $request = $this->stopGameLiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopGameLiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameLiveAsync($varForms) + { + return $this->stopGameLiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation stopGameLiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameLiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult'; + $request = $this->stopGameLiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'stopGameLive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function stopGameLiveRequest($varForms) + { + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling stopGameLive' + ); + } + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling stopGameLive' + ); + } + + $resourcePath = '/live/stopGameLive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + if ($varForms['live_id'] !== null) { + $formParams['liveId'] = ObjectSerializer::toFormValue($varForms['live_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 59bd9d51a664814e70919c337842d9bf6a17c465 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:44 +0800 Subject: [PATCH 281/373] feat: update --- lib/Api/MultiplayApi.php | 1424 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 1424 insertions(+) create mode 100644 lib/Api/MultiplayApi.php diff --git a/lib/Api/MultiplayApi.php b/lib/Api/MultiplayApi.php new file mode 100644 index 000000000..52b61fab5 --- /dev/null +++ b/lib/Api/MultiplayApi.php @@ -0,0 +1,1424 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation close + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult + */ + public function close($varForms) + { + list($response) = $this->closeWithHttpInfo($varForms); + return $response; + } + + /** + * Operation closeWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult, HTTP status code, HTTP response headers (array of strings) + */ + public function closeWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult'; + $request = $this->closeRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation closeAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeAsync($varForms) + { + return $this->closeAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation closeAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult'; + $request = $this->closeRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'close' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function closeRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling close' + ); + } + + $resourcePath = '/multiplay/close'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation init + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult + */ + public function init($varForms) + { + list($response) = $this->initWithHttpInfo($varForms); + return $response; + } + + /** + * Operation initWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult, HTTP status code, HTTP response headers (array of strings) + */ + public function initWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult'; + $request = $this->initRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation initAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initAsync($varForms) + { + return $this->initAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation initAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult'; + $request = $this->initRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'init' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function initRequest($varForms) + { + // verify the required parameter 'game_session' is set + if ($varForms['game_session'] === null || (is_array($varForms['game_session']) && count($varForms['game_session']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_session\'] when calling init' + ); + } + // verify the required parameter 'app_key' is set + if ($varForms['app_key'] === null || (is_array($varForms['app_key']) && count($varForms['app_key']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'app_key\'] when calling init' + ); + } + + $resourcePath = '/multiplay/init'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['gameSession'] = ObjectSerializer::toFormValue($varForms['game_session']); + $formParams['appKey'] = ObjectSerializer::toFormValue($varForms['app_key']); + if ($varForms['config'] !== null) { + $formParams['config'] = ObjectSerializer::toFormValue($varForms['config']); + } + if ($varForms['tokens'] !== null) { + $formParams['tokens'] = ObjectSerializer::toFormValue($varForms['tokens']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation join + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult + */ + public function join($varForms) + { + list($response) = $this->joinWithHttpInfo($varForms); + return $response; + } + + /** + * Operation joinWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult, HTTP status code, HTTP response headers (array of strings) + */ + public function joinWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult'; + $request = $this->joinRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation joinAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function joinAsync($varForms) + { + return $this->joinAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation joinAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function joinAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult'; + $request = $this->joinRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'join' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function joinRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling join' + ); + } + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling join' + ); + } + + $resourcePath = '/multiplay/join'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + if ($varForms['control_id'] !== null) { + $formParams['controlId'] = ObjectSerializer::toFormValue($varForms['control_id']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation leave + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult + */ + public function leave($varForms) + { + list($response) = $this->leaveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation leaveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function leaveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult'; + $request = $this->leaveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation leaveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function leaveAsync($varForms) + { + return $this->leaveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation leaveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function leaveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult'; + $request = $this->leaveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'leave' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function leaveRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling leave' + ); + } + // verify the required parameter 'kick_out' is set + if ($varForms['kick_out'] === null || (is_array($varForms['kick_out']) && count($varForms['kick_out']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'kick_out\'] when calling leave' + ); + } + // verify the required parameter 'token_ids' is set + if ($varForms['token_ids'] === null || (is_array($varForms['token_ids']) && count($varForms['token_ids']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'token_ids\'] when calling leave' + ); + } + + $resourcePath = '/multiplay/leave'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + $formParams['kickOut'] = ObjectSerializer::toFormValue($varForms['kick_out']); + if ($varForms['reason'] !== null) { + $formParams['reason'] = ObjectSerializer::toFormValue($varForms['reason']); + } + $formParams['tokenIds'] = ObjectSerializer::toFormValue($varForms['token_ids']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation modify + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult + */ + public function modify($varForms) + { + list($response) = $this->modifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation modifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function modifyWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult'; + $request = $this->modifyRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation modifyAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function modifyAsync($varForms) + { + return $this->modifyAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation modifyAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function modifyAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult'; + $request = $this->modifyRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'modify' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function modifyRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling modify' + ); + } + + $resourcePath = '/multiplay/modify'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + if ($varForms['tokens'] !== null) { + $formParams['tokens'] = ObjectSerializer::toFormValue($varForms['tokens']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation query + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult + */ + public function query($varForms) + { + list($response) = $this->queryWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult'; + $request = $this->queryRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAsync($varForms) + { + return $this->queryAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation queryAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult'; + $request = $this->queryRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'query' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function queryRequest($varForms) + { + // verify the required parameter 'mp_id' is set + if ($varForms['mp_id'] === null || (is_array($varForms['mp_id']) && count($varForms['mp_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'mp_id\'] when calling query' + ); + } + + $resourcePath = '/multiplay/query'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['mpId'] = ObjectSerializer::toFormValue($varForms['mp_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 0cfa7a6031dc8f055a00e7d8980adeae003ead27 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:45 +0800 Subject: [PATCH 282/373] feat: update --- lib/Api/TokenApi.php | 498 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 498 insertions(+) create mode 100644 lib/Api/TokenApi.php diff --git a/lib/Api/TokenApi.php b/lib/Api/TokenApi.php new file mode 100644 index 000000000..61543b82b --- /dev/null +++ b/lib/Api/TokenApi.php @@ -0,0 +1,498 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getPair + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult + */ + public function getPair() + { + list($response) = $this->getPairWithHttpInfo(); + return $response; + } + + /** + * Operation getPairWithHttpInfo + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getPairWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult'; + $request = $this->getPairRequest(); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getPairAsync + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPairAsync() + { + return $this->getPairAsyncWithHttpInfo() + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPairAsyncWithHttpInfo + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPairAsyncWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult'; + $request = $this->getPairRequest(); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getPair' + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getPairRequest() + { + + $resourcePath = '/sts?type=pair'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getTriple + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult + */ + public function getTriple() + { + list($response) = $this->getTripleWithHttpInfo(); + return $response; + } + + /** + * Operation getTripleWithHttpInfo + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getTripleWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult'; + $request = $this->getTripleRequest(); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getTripleAsync + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTripleAsync() + { + return $this->getTripleAsyncWithHttpInfo() + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getTripleAsyncWithHttpInfo + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTripleAsyncWithHttpInfo() + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult'; + $request = $this->getTripleRequest(); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getTriple' + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getTripleRequest() + { + + $resourcePath = '/sts'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 1e633580cc7e8fbb86720f0ec48eb11025e54f87 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:47 +0800 Subject: [PATCH 283/373] feat: update --- lib/Api/UsercontrollerApi.php | 1471 +++++++++++++++++++++++++++++++++ 1 file changed, 1471 insertions(+) create mode 100644 lib/Api/UsercontrollerApi.php diff --git a/lib/Api/UsercontrollerApi.php b/lib/Api/UsercontrollerApi.php new file mode 100644 index 000000000..24ca98cd3 --- /dev/null +++ b/lib/Api/UsercontrollerApi.php @@ -0,0 +1,1471 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult + */ + public function deleteGameArchive($varForms) + { + list($response) = $this->deleteGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult'; + $request = $this->deleteGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameArchiveAsync($varForms) + { + return $this->deleteGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult'; + $request = $this->deleteGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteGameArchiveRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling deleteGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling deleteGameArchive' + ); + } + // verify the required parameter 'archive_id' is set + if ($varForms['archive_id'] === null || (is_array($varForms['archive_id']) && count($varForms['archive_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'archive_id\'] when calling deleteGameArchive' + ); + } + + $resourcePath = '/usercontroller/deleteGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['archiveId'] = ObjectSerializer::toFormValue($varForms['archive_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGameTrialSurplusDuration + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult + */ + public function getGameTrialSurplusDuration($varForms) + { + list($response) = $this->getGameTrialSurplusDurationWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameTrialSurplusDurationWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameTrialSurplusDurationWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult'; + $request = $this->getGameTrialSurplusDurationRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameTrialSurplusDurationAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameTrialSurplusDurationAsync($varForms) + { + return $this->getGameTrialSurplusDurationAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGameTrialSurplusDurationAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameTrialSurplusDurationAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult'; + $request = $this->getGameTrialSurplusDurationRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGameTrialSurplusDuration' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getGameTrialSurplusDurationRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling getGameTrialSurplusDuration' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getGameTrialSurplusDuration' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling getGameTrialSurplusDuration' + ); + } + + $resourcePath = '/usercontroller/getGameTrialSurplusDuration'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getUserGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult + */ + public function getUserGameArchive($varForms) + { + list($response) = $this->getUserGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getUserGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getUserGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult'; + $request = $this->getUserGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUserGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUserGameArchiveAsync($varForms) + { + return $this->getUserGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getUserGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUserGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult'; + $request = $this->getUserGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getUserGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getUserGameArchiveRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling getUserGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling getUserGameArchive' + ); + } + // verify the required parameter 'project_id' is set + if ($varForms['project_id'] === null || (is_array($varForms['project_id']) && count($varForms['project_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'project_id\'] when calling getUserGameArchive' + ); + } + + $resourcePath = '/usercontroller/getUserGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['projectId'] = ObjectSerializer::toFormValue($varForms['project_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listLatestGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult + */ + public function listLatestGameArchive($varForms) + { + list($response) = $this->listLatestGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listLatestGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listLatestGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult'; + $request = $this->listLatestGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listLatestGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listLatestGameArchiveAsync($varForms) + { + return $this->listLatestGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listLatestGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listLatestGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult'; + $request = $this->listLatestGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listLatestGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listLatestGameArchiveRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling listLatestGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling listLatestGameArchive' + ); + } + + $resourcePath = '/usercontroller/listLatestGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + if ($varForms['page_size'] !== null) { + $formParams['pageSize'] = ObjectSerializer::toFormValue($varForms['page_size']); + } + if ($varForms['page_number'] !== null) { + $formParams['pageNumber'] = ObjectSerializer::toFormValue($varForms['page_number']); + } + if ($varForms['tag_status'] !== null) { + $formParams['tagStatus'] = ObjectSerializer::toFormValue($varForms['tag_status']); + } + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation restoreGameArchive + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult + */ + public function restoreGameArchive($varForms) + { + list($response) = $this->restoreGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation restoreGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function restoreGameArchiveWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult'; + $request = $this->restoreGameArchiveRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation restoreGameArchiveAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function restoreGameArchiveAsync($varForms) + { + return $this->restoreGameArchiveAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation restoreGameArchiveAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function restoreGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult'; + $request = $this->restoreGameArchiveRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'restoreGameArchive' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function restoreGameArchiveRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling restoreGameArchive' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling restoreGameArchive' + ); + } + // verify the required parameter 'archive_id' is set + if ($varForms['archive_id'] === null || (is_array($varForms['archive_id']) && count($varForms['archive_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'archive_id\'] when calling restoreGameArchive' + ); + } + + $resourcePath = '/usercontroller/restoreGameArchive'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['archiveId'] = ObjectSerializer::toFormValue($varForms['archive_id']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateGameArchiveTagStatus + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult + */ + public function updateGameArchiveTagStatus($varForms) + { + list($response) = $this->updateGameArchiveTagStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateGameArchiveTagStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateGameArchiveTagStatusWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult'; + $request = $this->updateGameArchiveTagStatusRequest($varForms); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateGameArchiveTagStatusAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGameArchiveTagStatusAsync($varForms) + { + return $this->updateGameArchiveTagStatusAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateGameArchiveTagStatusAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGameArchiveTagStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult'; + $request = $this->updateGameArchiveTagStatusRequest($varForms); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateGameArchiveTagStatus' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateGameArchiveTagStatusRequest($varForms) + { + // verify the required parameter 'account_id' is set + if ($varForms['account_id'] === null || (is_array($varForms['account_id']) && count($varForms['account_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'account_id\'] when calling updateGameArchiveTagStatus' + ); + } + // verify the required parameter 'game_id' is set + if ($varForms['game_id'] === null || (is_array($varForms['game_id']) && count($varForms['game_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'game_id\'] when calling updateGameArchiveTagStatus' + ); + } + // verify the required parameter 'archive_id' is set + if ($varForms['archive_id'] === null || (is_array($varForms['archive_id']) && count($varForms['archive_id']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'archive_id\'] when calling updateGameArchiveTagStatus' + ); + } + // verify the required parameter 'tag_status' is set + if ($varForms['tag_status'] === null || (is_array($varForms['tag_status']) && count($varForms['tag_status']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'tag_status\'] when calling updateGameArchiveTagStatus' + ); + } + + $resourcePath = '/usercontroller/updateGameArchiveTagStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['accountId'] = ObjectSerializer::toFormValue($varForms['account_id']); + $formParams['gameId'] = ObjectSerializer::toFormValue($varForms['game_id']); + $formParams['archiveId'] = ObjectSerializer::toFormValue($varForms['archive_id']); + $formParams['tagStatus'] = ObjectSerializer::toFormValue($varForms['tag_status']); + + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/x-www-form-urlencoded'] + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $signHeaders = $this->headerSelector->prepareSignHeader($formParams, $queryParams, 'POST', $this->config); + + $headers = array_merge( + ['User-Agent' => 'cgw-client/1.0.0/php'], + $signHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getScheme() . '://' . $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + //if ($this->config->getDebug()) { + // $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + // if (!$options[RequestOptions::DEBUG]) { + // throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + // } + //} + return $options; + } +} From 533188b63b8a83b766ebe33531b62952d5e46202 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:48 +0800 Subject: [PATCH 284/373] feat: update --- lib/Api/ApiException.php | 109 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 lib/Api/ApiException.php diff --git a/lib/Api/ApiException.php b/lib/Api/ApiException.php new file mode 100644 index 000000000..ad53ddfe2 --- /dev/null +++ b/lib/Api/ApiException.php @@ -0,0 +1,109 @@ +responseHeaders = $responseHeaders; + $this->responseBody = $responseBody; + } + + /** + * Gets the HTTP response header + * + * @return string[]|null HTTP response header + */ + public function getResponseHeaders() + { + return $this->responseHeaders; + } + + /** + * Gets the HTTP body of the server response either as Json or string + * + * @return mixed HTTP body of the server response either as \stdClass or string + */ + public function getResponseBody() + { + return $this->responseBody; + } + + /** + * Sets the deseralized response object (during deserialization) + * + * @param mixed $obj Deserialized response object + * + * @return void + */ + public function setResponseObject($obj) + { + $this->responseObject = $obj; + } + + /** + * Gets the deseralized response object (during deserialization) + * + * @return mixed the deserialized response object + */ + public function getResponseObject() + { + return $this->responseObject; + } +} From dea95c448ceb83af512e4fb2346d09d6abf1af30 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:49 +0800 Subject: [PATCH 285/373] feat: update --- lib/Api/Configuration.php | 256 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100644 lib/Api/Configuration.php diff --git a/lib/Api/Configuration.php b/lib/Api/Configuration.php new file mode 100644 index 000000000..9e5873ae7 --- /dev/null +++ b/lib/Api/Configuration.php @@ -0,0 +1,256 @@ +defaultHeaders[$key] = $value; + return $this; + } + + /** + * + * @param string $key + * + * @return string + */ + public function getHeader($key) + { + return isset($this->defaultHeaders[$key]) ? $this->defaultHeaders[$key] : null; + } + + public function getHeaders() { + return $this->defaultHeaders; + } + + /** + * + * @param string $accessKey + * + * @return $this + */ + public function setAccessKey($accessKey) + { + $this->accessKey = $accessKey; + return $this; + } + + /** + * + * @return string + */ + public function getAccessKey() + { + return $this->accessKey; + } + + /** + * + * @param string $secretKey + * + * @return $this + */ + public function setSecretKey($secretKey) + { + $this->secretKey = $secretKey; + return $this; + } + + /** + * + * @return string + */ + public function getSecretKey() + { + return $this->secretKey; + } + + /** + * + * @param string $scheme + * + * @return $this + */ + public function setScheme($scheme) + { + $this->scheme = $scheme; + return $this; + } + + /** + * + * @return string + */ + public function getScheme() + { + return $this->scheme; + } + + /** + * + * @param string $host + * + * @return $this + */ + public function setHost($host) + { + $this->host = $host; + return $this; + } + + /** + * + * @return string + */ + public function getHost() + { + return $this->host; + } + + /** + * @return string + */ + public function getSignatureVersion() { + return $this->signatureVersion; + } + + /** + * @param string $signatureVersion + * @return $this + */ + public function setSignatureVersion($signatureVersion) { + $this->signatureVersion = $signatureVersion; + return $this; + } + + /** + * @return string + */ + public function getSignatureMethod() { + return $this->signatureMethod; + } + + /** + * @param string $signatureMethod + * @return $this + */ + public function setSignatureMethod($signatureMethod) { + $this->signatureMethod = $signatureMethod; + return $this; + } + + /** + * + * @return Configuration + */ + public static function getDefaultConfiguration() + { + if (self::$defaultConfiguration === null) { + self::$defaultConfiguration = new Configuration(); + } + + return self::$defaultConfiguration; + } + + /** + * + * @param Configuration $config + * + * @return void + */ + public static function setDefaultConfiguration(Configuration $config) + { + self::$defaultConfiguration = $config; + } + +} From 646ce56e6582ffba2c98f4f4d77d5e8dd23fb245 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:51 +0800 Subject: [PATCH 286/373] feat: update --- lib/Api/ObjectSerializer.php | 286 +++++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 lib/Api/ObjectSerializer.php diff --git a/lib/Api/ObjectSerializer.php b/lib/Api/ObjectSerializer.php new file mode 100644 index 000000000..7a683cc9a --- /dev/null +++ b/lib/Api/ObjectSerializer.php @@ -0,0 +1,286 @@ +format('Y-m-d') : $data->format('Y-m-dTH:i:sZ'); + } elseif (is_array($data)) { + foreach ($data as $property => $value) { + $data[$property] = self::sanitizeForSerialization($value); + } + return $data; + } elseif (is_object($data)) { + $values = []; + $formats = $data::serialFormats(); + foreach ($data::serialTypes() as $property => $serialType) { + $getter = $data::getters()[$property]; + $value = $data->$getter(); + if ($value !== null + && !in_array($serialType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) + && method_exists($serialType, 'getAllowableEnumValues') + && !in_array($value, $serialType::getAllowableEnumValues())) { + $imploded = implode("', '", $serialType::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '$serialType', must be one of: '$imploded'"); + } + if ($value !== null) { + $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $serialType, $formats[$property]); + } + } + return (object)$values; + } else { + return (string)$data; + } + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the path, by url-encoding. + * + * @param string $value a string which will be part of the path + * + * @return string the serialized object + */ + public static function toPathValue($value) + { + return rawurlencode(self::toString($value)); + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the query, by imploding comma-separated if it's an object. + * If it's a string, pass through unchanged. It will be url-encoded + * later. + * + * @param string[]|string|\DateTime $object an object to be serialized to a string + * @param string|null $format the format of the parameter + * + * @return string the serialized object + */ + public static function toQueryValue($object, $format = null) + { + if (is_array($object)) { + return implode(',', $object); + } else { + return self::toString($object, $format); + } + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the header. If it's a string, pass through unchanged + * If it's a datetime object, format it in RFC3339 + * + * @param string $value a string which will be part of the header + * + * @return string the header string + */ + public static function toHeaderValue($value) + { + return self::toString($value); + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the http body (form parameter). If it's a string, pass through unchanged + * If it's a datetime object, format it in RFC3339 + * + * @param string $value the value of the form parameter + * + * @return string the form string + */ + public static function toFormValue($value) + { + return self::toString($value); + } + + /** + * Take value and turn it into a string suitable for inclusion in + * the parameter. If it's a string, pass through unchanged + * If it's a datetime object, format it in RFC3339 + * If it's a date, format it in Y-m-d + * + * @param string|\DateTime $value the value of the parameter + * @param string|null $format the format of the parameter + * + * @return string the header string + */ + public static function toString($value, $format = null) + { + if (is_bool($value)) { + return self::serializeBool((bool)$value); + } elseif (is_array($value)) { + foreach ($value as $p => $v) { + $value[$p] = self::sanitizeForSerialization($v); + } + return json_encode($value); + } elseif ($value instanceof \DateTime) { + return ($format === 'date') ? $value->format('Y-m-d') : $value->format('Y-m-dTH:i:sZ'); + } else { + return $value; + } + } + + /** + * Serialize an bool to a string. + * + * @param bool $bool bool to serialize to a string + * + * @return string + */ + public static function serializeBool($bool) { + return $bool ? 'true' : 'false'; + } + + /** + * Serialize an array to a string. + * + * @param array $collection collection to serialize to a string + * @param string $collectionFormat the format use for serialization (csv, + * ssv, tsv, pipes, multi) + * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array + * + * @return string + */ + //public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false) + //{ + // if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) { + // // http_build_query() almost does the job for us. We just + // // need to fix the result of multidimensional arrays. + // return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); + // } + // switch ($collectionFormat) { + // case 'pipes': + // return implode('|', $collection); + // + // case 'tsv': + // return implode("\t", $collection); + // + // case 'ssv': + // return implode(' ', $collection); + // + // case 'csv': + // // Deliberate fall through. CSV is default format. + // default: + // return implode(',', $collection); + // } + //} + + /** + * Deserialize a JSON string into an object + * + * @param mixed $data object or primitive to be deserialized + * @param string $class class name is passed as a string + * @param string[] $httpHeaders HTTP headers + * @param string $discriminator discriminator if polymorphism is used + * + * @return object|array|null an single or an array of $class instances + */ + public static function deserialize($data, $class, $httpHeaders = null) + { + if (null === $data) { + return null; + } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] + $inner = substr($class, 4, -1); + $deserialized = []; + if (strrpos($inner, ",") !== false) { + $subClass_array = explode(',', $inner, 2); + $subClass = $subClass_array[1]; + foreach ($data as $key => $value) { + $deserialized[$key] = self::deserialize($value, $subClass, null); + } + } + return $deserialized; + } elseif (strcasecmp(substr($class, -2), '[]') === 0) { + $subClass = substr($class, 0, -2); + $values = []; + foreach ($data as $key => $value) { + $values[] = self::deserialize($value, $subClass, null); + } + return $values; + } elseif ($class === 'object') { + settype($data, 'array'); + return $data; + } elseif ($class === '\DateTime') { + // Some API's return an invalid, empty string as a + // date-time property. DateTime::__construct() will return + // the current time for empty input which is probably not + // what is meant. The invalid empty string is probably to + // be interpreted as a missing field/value. Let's handle + // this graceful. + if (!empty($data)) { + return new \DateTime($data); + } else { + return null; + } + } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { + settype($data, $class); + return $data; + } elseif (method_exists($class, 'getAllowableEnumValues')) { + if (!in_array($data, $class::getAllowableEnumValues())) { + $imploded = implode("', '", $class::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); + } + return $data; + } else { + // If a discriminator is defined and points to a valid subclass, use it. + $discriminator = $class::DISCRIMINATOR; + if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { + $subclass = '\Yjopenapi\Client\Model\\' . $data->{$discriminator}; + if (is_subclass_of($subclass, $class)) { + $class = $subclass; + } + } + $instance = new $class(); + foreach ($instance::serialTypes() as $property => $type) { + $propertySetter = $instance::setters()[$property]; + + if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) { + continue; + } + + $propertyValue = $data->{$instance::attributeMap()[$property]}; + if (isset($propertyValue)) { + $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); + } + } + return $instance; + } + } +} From dd7864cea957cb1728914004fefdab7a0470919e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:52 +0800 Subject: [PATCH 287/373] feat: update --- lib/Model/ModelInterface.php | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 lib/Model/ModelInterface.php diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php new file mode 100644 index 000000000..f27ed42d8 --- /dev/null +++ b/lib/Model/ModelInterface.php @@ -0,0 +1,74 @@ + Date: Thu, 24 Oct 2024 00:16:53 +0800 Subject: [PATCH 288/373] feat: update --- lib/Api/HeaderSelector.php | 159 +++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 lib/Api/HeaderSelector.php diff --git a/lib/Api/HeaderSelector.php b/lib/Api/HeaderSelector.php new file mode 100644 index 000000000..d1fb442d4 --- /dev/null +++ b/lib/Api/HeaderSelector.php @@ -0,0 +1,159 @@ +selectAcceptHeader($accept); + if ($accept !== null) { + $headers['Accept'] = $accept; + } + + $headers['Content-Type'] = $this->selectContentTypeHeader($contentTypes); + return $headers; + } + + /** + * Return the header 'Accept' based on an array of Accept provided + * + * @param string[] $accept Array of header + * + * @return string Accept (e.g. application/json) + */ + private function selectAcceptHeader($accept) + { + if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { + return null; + } elseif (preg_grep("/application\/json/i", $accept)) { + return 'application/json'; + } else { + return implode(',', $accept); + } + } + + /** + * Return the content type based on an array of content-type provided + * + * @param string[] $contentType Array fo content-type + * + * @return string Content-Type (e.g. application/json) + */ + private function selectContentTypeHeader($contentType) + { + if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { + return 'application/json'; + } elseif (preg_grep("/application\/json/i", $contentType)) { + return 'application/json'; + } else { + return implode(',', $contentType); + } + } + + /** + * Return the sign headers + * + * @param string[] $formParams + * @param \Yjopenapi\Client\Configuration $config + * @return string[] + */ + public function prepareSignHeader($formParams, $queryParams, $httpMethod, $config) { + $accessKey = $config->getAccessKey(); + $nonce = str_replace("-", "", Uuid::uuid4()); + $version = $config->getSignatureVersion(); + $method = $config->getSignatureMethod(); + $now = new \DateTime(); + $timestamp = $now->setTimezone(new \DateTimeZone('UTC'))->format('Y-m-d\TH:i:s\Z'); + + $values = []; + $values['AccessKey'] = $accessKey; + $values['SignatureNonce'] = $nonce; + $values['SignatureVersion'] = $version; + $values['SignatureMethod'] = $method; + $values['Timestamp'] = $timestamp; + + if (count($queryParams) > 0) { + foreach ($queryParams as $queryParamName => $queryParamValue) { + $values[$queryParamName] = $queryParamValue; + } + } + + if (count($formParams) > 0) { + foreach ($formParams as $formParamName => $formParamValue) { + $values[$formParamName] = $formParamValue; + } + } + + $headers = []; + $headers['Signature'] = self::md5Hex(self::getSignRaw($values, $httpMethod, $config->getSecretKey())); + $headers['Accesskey'] = $accessKey; + $headers['Signaturenonce'] = $nonce; + $headers['Signatureversion'] = $version; + $headers['Timestamp'] = $timestamp; + $headers['Signaturemethod'] = $method; + return $headers; + } + + private function getSignRaw($values, $httpMethod, $secretKey) { + return $secretKey . '&' . self::keySignInput($values, $httpMethod); + } + + private function keySignInput($values, $httpMethod) { + ksort($values); + + $strToSign = $httpMethod . '&' . self::encodeURLComponent("/"); + + $arr = []; + foreach ($values as $k => $v) { + array_push($arr, $k . '=' . self::encodeURLComponent($v)); + } + return $strToSign . '&' . self::encodeURLComponent(implode('&', $arr)); + } + + private function encodeURLComponent($str) { + $escape = rawurlencode($str); + $escape = str_replace( "+", "%20", $escape); + $escape = str_replace( "*", "%2A", $escape); + $escape = str_replace( "%7E", "~", $escape); + return $escape; + } + + private function md5Hex($str) { + return md5($str); + } +} + From a33b32bae55e3648f6c1c905a8bfe02139969721 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:54 +0800 Subject: [PATCH 289/373] feat: update --- composer.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 000000000..7abc3fb29 --- /dev/null +++ b/composer.json @@ -0,0 +1,30 @@ +{ + "name": "alibabacloud/alibabacloud-yjopenapi-php-client", + "description": "YuanJing OpenAPI SDK for PHP", + "keywords": [ + "yuanjing", + "openapi", + "php", + "sdk", + "api" + ], + "homepage": "https://www.yuanjingio.com", + "license": "Apache-2.0", + "authors": [ + { + "name": "yuanjing-sdk-team", + "homepage": "https://github.com/aliyun/alibabacloud-yjopenapi-php-client" + } + ], + "require": { + "php": ">=5.5", + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "guzzlehttp/guzzle": "^6.2", + "ramsey/uuid": "^2.9" + }, + "autoload": { + "psr-4": { "Yjopenapi\\Client\\" : "lib/" } + } +} From 6bf0c3f68d99517fc4521146663471758651d222 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:56 +0800 Subject: [PATCH 290/373] feat: update --- README.md | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..f1317a758 --- /dev/null +++ b/README.md @@ -0,0 +1,153 @@ +![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) + +# YuanJing OpenAPI SDK for PHP + +## Requirements + +PHP 5.5 and later + +## Installation + +### Composer + +To install the bindings via Composer: +``` +composer require alibabacloud/alibabacloud-yjopenapi-php-client 1.1.20241024 +``` + +Then run `composer install` + +### Manual Installation + +Download the files and include `autoload.php`: + +```php + require_once('/path/to/vendor/autoload.php'); +``` + +## Usage + +``` +setHost(host) + ->setAccessKey(Your Access Key) + ->setSecretKey(Your Secret Key); + + +// {{Api}},{{Method}},{{Param}} is placeholder, take a look at Explain Of Usage Placeholder +$api = new \Yjopenapi\Client\Api\{{Api}}(new \GuzzleHttp\Client(), $configuration); +try { + // OpenAPI result + $result = $api->{{Method}}(${{Param}}) + + // OpenAPI result with header + $resultWithHeader = $api->{{Method}}WithHttpInfo(${{Param}}) + $result = $resultWithHeader[0] + + // OpenAPI TraceId + $traceId = $resultWithHeader[2][\Yjopenapi\Client\Model\ModelInterface::Trace_Id][0] + // OpenAPI Status Code + statusCode := $resultWithHeader[2][\Yjopenapi\Client\Model\ModelInterface::Result_Status][0] + +} catch (\Yjopenapi\Client\Api\ApiException $e) { + // handle exception +} + +``` + +## Explain Of Usage Placeholder + +| Api | Method | Params | Result | Description | +| ------------ | ------------- | ------------- | ------------- | ------------- | + | *AdaptApi* | **createAndSubmitAll** | *createAndSubmitAllForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult* | createAndSubmitAll | + | *AdaptApi* | **queryRequestById** | *queryRequestByIdForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult* | queryRequestById | + | *AiApi* | **batchUpdateKbVersion** | *batchUpdateKbVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult* | | + | *AiApi* | **cancelQueue** | *cancelQueueForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult* | 取消排队 | + | *AiApi* | **createNpcRole** | *createNpcRoleForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult* | | + | *AiApi* | **deleteModels** | *deleteModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult* | 删除私有模型 | + | *AiApi* | **getQueue** | *getQueueForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult* | 查询排队 | + | *AiApi* | **listModels** | *listModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult* | 查看私有模型列表 | + | *AiApi* | **updateModels** | *updateModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult* | 修改私有模型信息 | + | *AiApi* | **updateNpcRole** | *updateNpcRoleForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult* | | + | *AiApi* | **uploadModels** | *uploadModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult* | 上传私有模型 | + | *ConsoleAdminApi* | **activateDeployment** | *activateDeploymentForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult* | | + | *ConsoleAdminApi* | **adaptGameVersion** | *adaptGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult* | | + | *ConsoleAdminApi* | **addGameToProject** | *addGameToProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult* | | + | *ConsoleAdminApi* | **batchUpdateDispatchConfig** | *batchUpdateDispatchConfigForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult* | 批量更新游戏各自调度配置 | + | *ConsoleAdminApi* | **createGame** | *createGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult* | | + | *ConsoleAdminApi* | **createOrder** | *createOrderForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult* | 订单下单 | + | *ConsoleAdminApi* | **createProject** | *createProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult* | | + | *ConsoleAdminApi* | **deleteGame** | *deleteGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult* | | + | *ConsoleAdminApi* | **deleteGameVersion** | *deleteGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult* | | + | *ConsoleAdminApi* | **deleteProject** | *deleteProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult* | | + | *ConsoleAdminApi* | **getBillFlowInfo** | *getBillFlowInfoForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult* | | + | *ConsoleAdminApi* | **getGameInstanceContainerRatio** | *getGameInstanceContainerRatioForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult* | | + | *ConsoleAdminApi* | **getGameRecommendedInstance** | *getGameRecommendedInstanceForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult* | | + | *ConsoleAdminApi* | **getGameVersion** | *getGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult* | | + | *ConsoleAdminApi* | **getGameVersionProgress** | *getGameVersionProgressForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult* | | + | *ConsoleAdminApi* | **getOrder** | *getOrderForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult* | 查询订单 | + | *ConsoleAdminApi* | **listActivateableInstances** | *listActivateableInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult* | | + | *ConsoleAdminApi* | **listActivatedInstances** | *listActivatedInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult* | | + | *ConsoleAdminApi* | **listControllersOfGame** | *listControllersOfGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult* | | + | *ConsoleAdminApi* | **listDeployableInstances** | *listDeployableInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult* | | + | *ConsoleAdminApi* | **listGameCcu** | *listGameCcuForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult* | 分游戏实时并发 | + | *ConsoleAdminApi* | **listGameDeployDetailsOfProject** | *listGameDeployDetailsOfProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult* | 获取项目下游戏部署版本信息。 | + | *ConsoleAdminApi* | **listGameVersions** | *listGameVersionsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult* | | + | *ConsoleAdminApi* | **listGames** | *listGamesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult* | | + | *ConsoleAdminApi* | **listInstancesOfProject** | *listInstancesOfProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult* | 分页获取项目中的实例 | + | *ConsoleAdminApi* | **listMonthBill** | *listMonthBillForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult* | 月度账单列表 | + | *ConsoleAdminApi* | **listProjects** | *listProjectsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult* | | + | *ConsoleAdminApi* | **listVersionDeployInstances** | *listVersionDeployInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult* | 获取项目下游戏版本的部署实例信息。 | + | *ConsoleAdminApi* | **queryAdaptResultByVersionId** | *queryAdaptResultByVersionIdForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult* | 查询适配结果 | + | *ConsoleAdminApi* | **recommendSpecification** | *recommendSpecificationForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult* | | + | *ConsoleAdminApi* | **removeGameFromProject** | *removeGameFromProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult* | | + | *ConsoleAdminApi* | **rtOverView** | *rtOverViewForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult* | 实时并发数 | + | *ConsoleAdminApi* | **rtTrend** | *rtTrendForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult* | 实时并发趋势图 | + | *ConsoleAdminApi* | **submitDeployment** | *submitDeploymentForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult* | | + | *ConsoleAdminApi* | **submitRefund** | *submitRefundForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult* | 订单退订 | + | *ConsoleAdminApi* | **uploadGameVersionByDownload** | *uploadGameVersionByDownloadForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult* | | + | *DispatchApi* | **batchStopGame** | *batchStopGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult* | | + | *DispatchApi* | **cancelGameHang** | *cancelGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult* | 取消游戏挂机 | + | *DispatchApi* | **clientNotify** | *clientNotifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult* | clientNotify | + | *DispatchApi* | **gameNotify** | *gameNotifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult* | 游戏通知接口 | + | *DispatchApi* | **getGameConcurrency** | *getGameConcurrencyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult* | 调用GetGameConcurrency获取游戏当前并发数 | + | *DispatchApi* | **getStock** | *getStockForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult* | 调用GetStock获取游戏当前库存 | + | *DispatchApi* | **getStopGameToken** | *getStopGameTokenForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult* | 全量踢下线获取token | + | *DispatchApi* | **listGameServerIp** | *listGameServerIpForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult* | | + | *DispatchApi* | **queryGameHang** | *queryGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult* | 查询游戏挂机状态 | + | *DispatchApi* | **querySessionStatus** | *querySessionStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult* | 查询会话当前状态 | + | *DispatchApi* | **replaceSlot** | *replaceSlotForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult* | replaceSlot | + | *DispatchApi* | **setGameAlive** | *setGameAliveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult* | 设置游戏可运行时长 | + | *DispatchApi* | **setGameHang** | *setGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult* | 设置游戏挂机 | + | *DispatchApi* | **stopGame** | *stopGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult* | 服务端发起,停止某个用户的某个游戏的某个会话 | + | *DispatchApi* | **stopPreopenContainer** | *stopPreopenContainerForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult* | 停止预开容器 | + | *DispatchApi* | **tryToGetSlot** | *tryToGetSlotForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult* | 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 | + | *DispatchApi* | **tryToGetSlots** | *tryToGetSlotsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult* | tryToGetSlots | + | *DispatchApi* | **updatePreopenStrategy** | *updatePreopenStrategyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult* | 更新预开预起策略 | + | *LiveApi* | **queryStatus** | *queryStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult* | | + | *LiveApi* | **startGameLive** | *startGameLiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult* | | + | *LiveApi* | **stopGameLive** | *stopGameLiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult* | | + | *MultiplayApi* | **close** | *closeForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult* | | + | *MultiplayApi* | **init** | *initForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult* | | + | *MultiplayApi* | **join** | *joinForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult* | | + | *MultiplayApi* | **leave** | *leaveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult* | | + | *MultiplayApi* | **modify** | *modifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult* | | + | *MultiplayApi* | **query** | *queryForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult* | | + | *TokenApi* | **getPair** | | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult* | 获取临时安全令牌(二元组) | + | *TokenApi* | **getTriple** | | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult* | 获取临时安全令牌 | + | *UsercontrollerApi* | **deleteGameArchive** | *deleteGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult* | | + | *UsercontrollerApi* | **getGameTrialSurplusDuration** | *getGameTrialSurplusDurationForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult* | | + | *UsercontrollerApi* | **getUserGameArchive** | *getUserGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult* | | + | *UsercontrollerApi* | **listLatestGameArchive** | *listLatestGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult* | | + | *UsercontrollerApi* | **restoreGameArchive** | *restoreGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult* | | + | *UsercontrollerApi* | **updateGameArchiveTagStatus** | *updateGameArchiveTagStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult* | | + +## License +[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0) + +Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + From c6ed9bda3a8c1a4127d1db599319cd48cb075291 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:57 +0800 Subject: [PATCH 291/373] feat: update From 6a0ada0d244bd640e20587a6ecf72c2ccb02826b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:58 +0800 Subject: [PATCH 292/373] feat: update --- .gitignore | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..190e83fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +workspace.xml +.DS_Store +.tmp +.settings +*~ +.pyc +*.py[co] +# IDEA IDE +.idea* +build/ +dist/ +out/ +.gitignore +coverage.* +.history/ +vendor/ +composer.lock \ No newline at end of file From 386c9444d9ddbfb87944d7805e1d65a076fde3eb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:16:59 +0800 Subject: [PATCH 293/373] feat: update From 985fd386242cd7b6212dd88178b4a2cda15852a0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:00 +0800 Subject: [PATCH 294/373] feat: update From 8ba56618424bdd07f5f59a8b2134a4b8bf4dedea Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:02 +0800 Subject: [PATCH 295/373] feat: update From 20d946d407d88e74eea4dc6aa9da18e4f0a27c8e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:03 +0800 Subject: [PATCH 296/373] feat: update From a8275a156702cc97a9ce983cf80b8987135a8ea4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:05 +0800 Subject: [PATCH 297/373] feat: update From f90c0a81d62c82db1cea56e1eb4d47f42d36555e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:06 +0800 Subject: [PATCH 298/373] feat: update From af08870c4719a2a77d2a6ae0d8fa261ab21926ee Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:07 +0800 Subject: [PATCH 299/373] feat: update From 9e5a2367f7abc390b8214c955f9e9009a39f8fee Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:08 +0800 Subject: [PATCH 300/373] feat: update From ef00ac3813344f54828d03c943ee35afe1b3bd09 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:10 +0800 Subject: [PATCH 301/373] feat: update From 67bcb708615fe01f681fcefb1cd7e0591a026b5e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:11 +0800 Subject: [PATCH 302/373] feat: update From 83ea294d5d1ad68f7b5784018c57de3628300295 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:12 +0800 Subject: [PATCH 303/373] feat: update From 0fdb36d62382d48e02e84f2fa25ce2525bedc4df Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:14 +0800 Subject: [PATCH 304/373] feat: update From 81513265eb56e39078bc207f2a43e568f96840f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:15 +0800 Subject: [PATCH 305/373] feat: update From 68d3e5017d71666107162c8f486b80128cf967da Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:16 +0800 Subject: [PATCH 306/373] feat: update From a03d6fbe3b084b83df5c18cb45f709d114a8c7a0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:17 +0800 Subject: [PATCH 307/373] feat: update From 2ef00d5aefa607bc294ba9a3f8dc9d01dc48cf49 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:19 +0800 Subject: [PATCH 308/373] feat: update From a26faca4d1f9fd29ad05f70e3ace37ff3cc883cc Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:20 +0800 Subject: [PATCH 309/373] feat: update From 731c8bbc59691c24fc65751a26d131765dbd0d88 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:21 +0800 Subject: [PATCH 310/373] feat: update From 49bbe3a33ae16c9eb642a8a0d468d8caccce601b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:24 +0800 Subject: [PATCH 311/373] feat: update From 5c745c23c472ca814a2073204b31e211f6d0d36f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:25 +0800 Subject: [PATCH 312/373] feat: update From ef02ec7575ac85396cb1710a7d23f4201de7e1af Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:27 +0800 Subject: [PATCH 313/373] feat: update From 3c016a8fd71b810c8a1daae847c604491425926d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:28 +0800 Subject: [PATCH 314/373] feat: update From 72766a1ac7b38e0972d74a35b40c0a29e2de3dc5 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:29 +0800 Subject: [PATCH 315/373] feat: update From 9133546746b15887047b393232a6af78f20d0154 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:30 +0800 Subject: [PATCH 316/373] feat: update From 61dcfeb3ee91ad16de838b55549e87f154966765 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:32 +0800 Subject: [PATCH 317/373] feat: update From 6664c3bbe8da5a97ad88d35bddbaf4496013b5ec Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:33 +0800 Subject: [PATCH 318/373] feat: update From 772b7ad9ba4f9c398d795ab3a3197e436f9d6a38 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:35 +0800 Subject: [PATCH 319/373] feat: update From e0f05fb086ea0b6eea7b62bd093eb441c3a8a601 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:36 +0800 Subject: [PATCH 320/373] feat: update From 61387dc11d487dd910eaef5fbc9dae949d3b0896 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:37 +0800 Subject: [PATCH 321/373] feat: update From f04c571e9163309e11e8f0d823c956a9a68ada2e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:38 +0800 Subject: [PATCH 322/373] feat: update From 2241aedd6360a6406c6a8a86eb7b758451f416d7 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:39 +0800 Subject: [PATCH 323/373] feat: update From b097316c938910f6d928cb5bb2399ff199a0491c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:41 +0800 Subject: [PATCH 324/373] feat: update From ea2e9eeb14c0d1c1b586e63ef382b5887737d83d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:42 +0800 Subject: [PATCH 325/373] feat: update From 25dbc6f0a33ca7508485056bf217138ba890ef2c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:43 +0800 Subject: [PATCH 326/373] feat: update From f297b4ba66f44df6c1e3ac6d5abbf5796a4b07aa Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:44 +0800 Subject: [PATCH 327/373] feat: update From af1a87ea8ac006618da5945b9a36e43165f28ca3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:46 +0800 Subject: [PATCH 328/373] feat: update From ecd1fc97dd7ea91716738efcb9c103df27b6ce30 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:47 +0800 Subject: [PATCH 329/373] feat: update From 7a6fbcb890667b6ccf5bfdd997750ed8bfc6ad43 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:48 +0800 Subject: [PATCH 330/373] feat: update From eca1678d9716009f202c1e529e452ebd66288ace Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:49 +0800 Subject: [PATCH 331/373] feat: update From 4e5f95aec5b247d0e02d30694836a5d108a1ccd0 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:50 +0800 Subject: [PATCH 332/373] feat: update From 8ddbe2eeb2f78cc9655100687dad057c6e8cc9f2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:52 +0800 Subject: [PATCH 333/373] feat: update From d54e81c647b08ef14c336532dfaff170eb1868ac Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:53 +0800 Subject: [PATCH 334/373] feat: update From 7d5d916c3f7919bd7405aa37029e7510aa8f8ac9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:54 +0800 Subject: [PATCH 335/373] feat: update From aaa088754e61c6ad62be7c104fe7871d291d73a4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:55 +0800 Subject: [PATCH 336/373] feat: update From 42dab77c691d961f24d07881a54a05aea0afb608 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:57 +0800 Subject: [PATCH 337/373] feat: update From d28752c15fe60399ed7963be9e7c5c3c7df43243 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:58 +0800 Subject: [PATCH 338/373] feat: update From 85b866672b204c29139bdf6e9d0c36795111e4ef Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:17:59 +0800 Subject: [PATCH 339/373] feat: update From 3c215e3ca2a6effc692f2feb628b5768d5eb2146 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:00 +0800 Subject: [PATCH 340/373] feat: update From e27da24305c49ae1c29a8150583b49a730bb5708 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:01 +0800 Subject: [PATCH 341/373] feat: update From 50a8e555a8158dc34e43e12a43f02da780b1087c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:03 +0800 Subject: [PATCH 342/373] feat: update From 7a1581b4fed94cad1d3deff98dda08dc83f75b8f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:04 +0800 Subject: [PATCH 343/373] feat: update From 1b95f9428bf3387bf180e0f94eaf1c2567654d8e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:05 +0800 Subject: [PATCH 344/373] feat: update From a984bdc362b862e45191e73c08c2ac1da0810672 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:06 +0800 Subject: [PATCH 345/373] feat: update From c270fba54b20f60bcb7e7487839197a785aa742c Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:07 +0800 Subject: [PATCH 346/373] feat: update From 8dc70e84974dbc4870394eb6816dcf34a838d55b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:09 +0800 Subject: [PATCH 347/373] feat: update From bf26d22623c25873c5b72a6f33c652fe9bc746eb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:10 +0800 Subject: [PATCH 348/373] feat: update From 8fef9f8804551a5c723c702994bb3c9eee8073ba Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:11 +0800 Subject: [PATCH 349/373] feat: update From eceea1877cac1f765f812d5073aec011a4eebcf2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:13 +0800 Subject: [PATCH 350/373] feat: update From de2c38d1c0448e4665d4b298615aa962746393eb Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:14 +0800 Subject: [PATCH 351/373] feat: update From 38defd9d33509758e1c84019993d2e4b431979db Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:15 +0800 Subject: [PATCH 352/373] feat: update From 3b9bce119c0d5000d73f64b895a535b659b9e616 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:17 +0800 Subject: [PATCH 353/373] feat: update From dbaf0f7c858cca564e6118422a25b6168fd7ec62 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:18 +0800 Subject: [PATCH 354/373] feat: update From 336e26f1bdc5014512d8bcb08bd1990e7c5e2110 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:19 +0800 Subject: [PATCH 355/373] feat: update From d6bcbc2a38cb7da4860202aaf7725b176ed72da8 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:20 +0800 Subject: [PATCH 356/373] feat: update From b77456b96cbb4419e349ea06b73082fe6303ddc2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:22 +0800 Subject: [PATCH 357/373] feat: update From 7ce96f94f817d91bb6e0d821408700267dd4fae2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:23 +0800 Subject: [PATCH 358/373] feat: update From 664fe265b41ccd603be35664a3ae8002404218d4 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:25 +0800 Subject: [PATCH 359/373] feat: update From 7cfe44b138d9f71f63126711f29131af2827f9bd Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:26 +0800 Subject: [PATCH 360/373] feat: update From 6081a1689d7d90ff576f772d3f557e53938c8a9f Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:27 +0800 Subject: [PATCH 361/373] feat: update From f60518e7ec3b68446e382575b4449be7ab47f635 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:29 +0800 Subject: [PATCH 362/373] feat: update From e0d177f3cbdeb12949cb0244d186273e4f800063 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:30 +0800 Subject: [PATCH 363/373] feat: update From 01abc3d3176cf98536454b39eb20033aeb0518d9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:32 +0800 Subject: [PATCH 364/373] feat: update From a8be70e3108160a6026a07fe7dfd26b7196c317b Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:33 +0800 Subject: [PATCH 365/373] feat: update From 4d1429f9f2d3240c317b5d979272f1e5d3fc3b12 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:34 +0800 Subject: [PATCH 366/373] feat: update From 0126de62982227e873c60e736b335ddbb888da0d Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:36 +0800 Subject: [PATCH 367/373] feat: update From 2f35b33036eccc72b38fcbf61d8b52fa7c8732d3 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:37 +0800 Subject: [PATCH 368/373] feat: update From 40869f70915a86393e6a313a44f1765bfecade0e Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:38 +0800 Subject: [PATCH 369/373] feat: update From 56c86fa0eab38ae794f9609fc82a01f0be0be650 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:40 +0800 Subject: [PATCH 370/373] feat: update From 9402a16f0098fff94ffc03b334e7d6aba68ff7d2 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:41 +0800 Subject: [PATCH 371/373] feat: update From 9eb701c365cfb2c990ad9248ca7c1f09908c8db9 Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:43 +0800 Subject: [PATCH 372/373] feat: update From 531262195dd6a7cf1a8771c58e170c9f20961f8a Mon Sep 17 00:00:00 2001 From: Iven Date: Thu, 24 Oct 2024 00:18:44 +0800 Subject: [PATCH 373/373] feat: update