From 93ced73e16d467a38be8159256d4aaf3d346dd98 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:06 +0800 Subject: [PATCH 001/309] 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..0ae94ec1e --- /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 80e195b9522548e15c9cfc081f06b3e4514c8786 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:08 +0800 Subject: [PATCH 002/309] 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..c2da82b4f --- /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 0344e8e3639eecb00091d4affcae7002230f7996 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:09 +0800 Subject: [PATCH 003/309] 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..6ea03ac06 --- /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 7a582afab292a09bcaa4fbc5ac5cc698d1d70d8d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:10 +0800 Subject: [PATCH 004/309] 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..c8b234a3a --- /dev/null +++ b/lib/Model/AdaptQueryRequestByIdResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\AdaptQueryRequestByIdResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 24ae314a5f5559b6f836e1ef17706ff34905b444 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:12 +0800 Subject: [PATCH 005/309] 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..87b16c37e --- /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 bd138aa43a5a7a21a71f39e72a166cf568c99932 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:13 +0800 Subject: [PATCH 006/309] 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..93f95db8a --- /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 fc2fa1de006bc971d13495a0abac47820d176689 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:15 +0800 Subject: [PATCH 007/309] 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..d558e8450 --- /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 f6ef8337901e09d44cb0b265610cb0bb997c54a2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:16 +0800 Subject: [PATCH 008/309] 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..934f52087 --- /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 68d1ac35427c5f6c3e764ea66f3c7634784c9828 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:17 +0800 Subject: [PATCH 009/309] 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..7e76a6130 --- /dev/null +++ b/lib/Model/AiCancelQueueResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\AiCancelQueueResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 db50d7a84c84cb7ee7fc15e51e402cff7c2b863a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:19 +0800 Subject: [PATCH 010/309] 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..4d3ce1684 --- /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 2d16a4a606b8e1221f31c21458ff778df031c352 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:20 +0800 Subject: [PATCH 011/309] 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..86b3ec0bf --- /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\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\Model\AiCreateNpcRoleFormsKnowledgeBases[] + */ + public function getKnowledgeBases() + { + return $this->container['knowledge_bases']; + } + + /** + * Sets knowledge_bases + * + * @param \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 5aba3f3d43b7bc330516f2294867a0f7cbae7254 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:22 +0800 Subject: [PATCH 012/309] 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..183e14fed --- /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 ad2ad6e1eaccba6fd5efd1f856bbb46afa9fcae1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:23 +0800 Subject: [PATCH 013/309] 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..65df3c051 --- /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 e767c8f6fdb8282e463d402268e7b484007a9d57 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:25 +0800 Subject: [PATCH 014/309] 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..5e352c607 --- /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 d8351313119c4625d6b271b712dcd9c7fbd1f6f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:26 +0800 Subject: [PATCH 015/309] 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..145c0d702 --- /dev/null +++ b/lib/Model/AiDeleteModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\AiDeleteModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 26d6fe886fb9b044a8bab7a86a1dac7a3e32452f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:27 +0800 Subject: [PATCH 016/309] 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..4a51e1e82 --- /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 4890d3d4ae1dc199236a0f1524cf9b7f62c3b6a1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:29 +0800 Subject: [PATCH 017/309] feat: update --- lib/Model/AiGetPromptForms.php | 257 +++++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 lib/Model/AiGetPromptForms.php diff --git a/lib/Model/AiGetPromptForms.php b/lib/Model/AiGetPromptForms.php new file mode 100644 index 000000000..a0aed60f5 --- /dev/null +++ b/lib/Model/AiGetPromptForms.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 f0e8036c78d31c65a9ed63bae8d1549c52eda27f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:30 +0800 Subject: [PATCH 018/309] feat: update --- lib/Model/AiGetPromptResult.php | 347 ++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiGetPromptResult.php diff --git a/lib/Model/AiGetPromptResult.php b/lib/Model/AiGetPromptResult.php new file mode 100644 index 000000000..029970e0f --- /dev/null +++ b/lib/Model/AiGetPromptResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModel', +'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\Model\AiGetPromptResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModel $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 8c5d9d527fa8ae625fbec32a721b42a2f3f6c456 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:31 +0800 Subject: [PATCH 019/309] feat: update --- lib/Model/AiGetPromptResultModel.php | 437 +++++++++++++++++++++++++++ 1 file changed, 437 insertions(+) create mode 100644 lib/Model/AiGetPromptResultModel.php diff --git a/lib/Model/AiGetPromptResultModel.php b/lib/Model/AiGetPromptResultModel.php new file mode 100644 index 000000000..eaf0c7e51 --- /dev/null +++ b/lib/Model/AiGetPromptResultModel.php @@ -0,0 +1,437 @@ + 'int', +'response' => 'string', +'request_id' => 'string', +'executed_list' => 'string', +'execution_result' => 'string', +'resources' => '\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModelResources[]', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'queue_num' => 'int64', +'response' => null, +'request_id' => null, +'executed_list' => null, +'execution_result' => null, +'resources' => 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', +'response' => 'response', +'request_id' => 'requestId', +'executed_list' => 'executedList', +'execution_result' => 'executionResult', +'resources' => 'resources', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'queue_num' => 'setQueueNum', +'response' => 'setResponse', +'request_id' => 'setRequestId', +'executed_list' => 'setExecutedList', +'execution_result' => 'setExecutionResult', +'resources' => 'setResources', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'queue_num' => 'getQueueNum', +'response' => 'getResponse', +'request_id' => 'getRequestId', +'executed_list' => 'getExecutedList', +'execution_result' => 'getExecutionResult', +'resources' => 'getResources', +'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['response'] = isset($data['response']) ? $data['response'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['executed_list'] = isset($data['executed_list']) ? $data['executed_list'] : null; + $this->container['execution_result'] = isset($data['execution_result']) ? $data['execution_result'] : null; + $this->container['resources'] = isset($data['resources']) ? $data['resources'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + + /** + * Gets queue_num + * + * @return int + */ + public function getQueueNum() + { + return $this->container['queue_num']; + } + + /** + * Sets queue_num + * + * @param int $queue_num queue_num + * + * @return $this + */ + public function setQueueNum($queue_num) + { + $this->container['queue_num'] = $queue_num; + + return $this; + } + + /** + * Gets response + * + * @return string + */ + public function getResponse() + { + return $this->container['response']; + } + + /** + * Sets response + * + * @param string $response response + * + * @return $this + */ + public function setResponse($response) + { + $this->container['response'] = $response; + + 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 executed_list + * + * @return string + */ + public function getExecutedList() + { + return $this->container['executed_list']; + } + + /** + * Sets executed_list + * + * @param string $executed_list executed_list + * + * @return $this + */ + public function setExecutedList($executed_list) + { + $this->container['executed_list'] = $executed_list; + + return $this; + } + + /** + * Gets execution_result + * + * @return string + */ + public function getExecutionResult() + { + return $this->container['execution_result']; + } + + /** + * Sets execution_result + * + * @param string $execution_result execution_result + * + * @return $this + */ + public function setExecutionResult($execution_result) + { + $this->container['execution_result'] = $execution_result; + + return $this; + } + + /** + * Gets resources + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModelResources[] + */ + public function getResources() + { + return $this->container['resources']; + } + + /** + * Sets resources + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResultModelResources[] $resources resources + * + * @return $this + */ + public function setResources($resources) + { + $this->container['resources'] = $resources; + + 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 83f64ab30e3269ca605b3e1772a88aa934a20b90 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:33 +0800 Subject: [PATCH 020/309] feat: update --- lib/Model/AiGetPromptResultModelResources.php | 287 ++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiGetPromptResultModelResources.php diff --git a/lib/Model/AiGetPromptResultModelResources.php b/lib/Model/AiGetPromptResultModelResources.php new file mode 100644 index 000000000..575793e8e --- /dev/null +++ b/lib/Model/AiGetPromptResultModelResources.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 6c9160c2cc9539c42454eba4bb2f65fabba48ade Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:34 +0800 Subject: [PATCH 021/309] 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..3d5a541fa --- /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 fdd3d6b51448bc0e0964f6ae2e0c17a56b87f43d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:35 +0800 Subject: [PATCH 022/309] 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..98c23b809 --- /dev/null +++ b/lib/Model/AiGetQueueResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\AiGetQueueResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 cdf933d6cbf83ebc35881c7f2d80daecaf90a662 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:36 +0800 Subject: [PATCH 023/309] 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..469d8d279 --- /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 a700268d30aca491cf83c3c88bdc2de5d0908cbd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:38 +0800 Subject: [PATCH 024/309] 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..1f520de3a --- /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 ff17c926a0205b7b4d4ecf566b1f82d4c95629f4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:39 +0800 Subject: [PATCH 025/309] 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..64b6ff825 --- /dev/null +++ b/lib/Model/AiListModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\AiListModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 eb337290739c6a7bb0e3ac78bf1ba31cdd06684e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:40 +0800 Subject: [PATCH 026/309] 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..67ad5c029 --- /dev/null +++ b/lib/Model/AiListModelsResultModel.php @@ -0,0 +1,287 @@ + '\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\Model\AiListModelsResultModelModelList + */ + public function getModelList() + { + return $this->container['model_list']; + } + + /** + * Sets model_list + * + * @param \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 f8e78e44b1c08c613c7e753d8f5bc51834591120 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:42 +0800 Subject: [PATCH 027/309] 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..33e053f26 --- /dev/null +++ b/lib/Model/AiListModelsResultModelModelList.php @@ -0,0 +1,347 @@ + 'string', +'page_size' => 'string', +'total_count' => 'int', +'items' => '\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\Model\AiListModelsResultModelModelListItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \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 803120e6d470c2b96db9a903977f0da2c1e06388 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:43 +0800 Subject: [PATCH 028/309] 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..c8eb013f8 --- /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 6991d07286ec9baede8f9d4159a46dc3adf8cefd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:45 +0800 Subject: [PATCH 029/309] feat: update --- lib/Model/AiPromptForms.php | 317 ++++++++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiPromptForms.php diff --git a/lib/Model/AiPromptForms.php b/lib/Model/AiPromptForms.php new file mode 100644 index 000000000..4778dc4fe --- /dev/null +++ b/lib/Model/AiPromptForms.php @@ -0,0 +1,317 @@ + 'string', +'prompt_param' => 'string', +'resources' => '\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptFormsResources[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'scene_type' => null, +'prompt_param' => null, +'resources' => 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 = [ + 'scene_type' => 'sceneType', +'prompt_param' => 'promptParam', +'resources' => 'resources' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'scene_type' => 'setSceneType', +'prompt_param' => 'setPromptParam', +'resources' => 'setResources' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'scene_type' => 'getSceneType', +'prompt_param' => 'getPromptParam', +'resources' => 'getResources' ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$serialModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['scene_type'] = isset($data['scene_type']) ? $data['scene_type'] : null; + $this->container['prompt_param'] = isset($data['prompt_param']) ? $data['prompt_param'] : null; + $this->container['resources'] = isset($data['resources']) ? $data['resources'] : null; + } + + + /** + * Gets scene_type + * + * @return string + */ + public function getSceneType() + { + return $this->container['scene_type']; + } + + /** + * Sets scene_type + * + * @param string $scene_type scene_type + * + * @return $this + */ + public function setSceneType($scene_type) + { + $this->container['scene_type'] = $scene_type; + + return $this; + } + + /** + * Gets prompt_param + * + * @return string + */ + public function getPromptParam() + { + return $this->container['prompt_param']; + } + + /** + * Sets prompt_param + * + * @param string $prompt_param prompt_param + * + * @return $this + */ + public function setPromptParam($prompt_param) + { + $this->container['prompt_param'] = $prompt_param; + + return $this; + } + + /** + * Gets resources + * + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptFormsResources[] + */ + public function getResources() + { + return $this->container['resources']; + } + + /** + * Sets resources + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptFormsResources[] $resources resources + * + * @return $this + */ + public function setResources($resources) + { + $this->container['resources'] = $resources; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + //if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + // return json_encode( + // ObjectSerializer::sanitizeForSerialization($this), + // JSON_PRETTY_PRINT + // ); + //} + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} From 20b169a86ee3af8fcebdefc4e3427c1c8bffe56e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:46 +0800 Subject: [PATCH 030/309] feat: update --- lib/Model/AiPromptFormsResources.php | 287 +++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) create mode 100644 lib/Model/AiPromptFormsResources.php diff --git a/lib/Model/AiPromptFormsResources.php b/lib/Model/AiPromptFormsResources.php new file mode 100644 index 000000000..f013befe9 --- /dev/null +++ b/lib/Model/AiPromptFormsResources.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 424752aee281c0327ae6cb3fc547e24f2a1a3dd3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:47 +0800 Subject: [PATCH 031/309] feat: update --- lib/Model/AiPromptResult.php | 347 +++++++++++++++++++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 lib/Model/AiPromptResult.php diff --git a/lib/Model/AiPromptResult.php b/lib/Model/AiPromptResult.php new file mode 100644 index 000000000..e8855b949 --- /dev/null +++ b/lib/Model/AiPromptResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResultModel', +'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\Model\AiPromptResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResultModel $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 adfd25a4fca3f8dc82df00d7b77a4977892aa8a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:49 +0800 Subject: [PATCH 032/309] feat: update --- lib/Model/AiPromptResultModel.php | 317 ++++++++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiPromptResultModel.php diff --git a/lib/Model/AiPromptResultModel.php b/lib/Model/AiPromptResultModel.php new file mode 100644 index 000000000..be37d97b2 --- /dev/null +++ b/lib/Model/AiPromptResultModel.php @@ -0,0 +1,317 @@ + 'string', +'task_id' => 'string', +'status' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $serialFormats = [ + 'request_id' => null, +'task_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 = [ + 'request_id' => 'requestId', +'task_id' => 'taskId', +'status' => 'status' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', +'task_id' => 'setTaskId', +'status' => 'setStatus' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', +'task_id' => 'getTaskId', +'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['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['task_id'] = isset($data['task_id']) ? $data['task_id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : 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 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; + } + + /** + * 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 0202a61542ca1261efe8e1669590ebb905889303 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:50 +0800 Subject: [PATCH 033/309] 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..a01808943 --- /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 2a0e067610db69f992bdf2647bb8fe1906fa1c64 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:51 +0800 Subject: [PATCH 034/309] 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..55ff39409 --- /dev/null +++ b/lib/Model/AiUpdateModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\AiUpdateModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 5ee738744efcf2a0abdf5d8b580b3dd9b677b406 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:53 +0800 Subject: [PATCH 035/309] 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..5ebece09b --- /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 9298b67c46e6f9d1584c53fde513c0c4c766c403 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:54 +0800 Subject: [PATCH 036/309] 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..c4888d05e --- /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\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\Model\AiUpdateNpcRoleFormsKnowledgeBases[] + */ + public function getKnowledgeBases() + { + return $this->container['knowledge_bases']; + } + + /** + * Sets knowledge_bases + * + * @param \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 ddc35716ece662b7d1c99cc7cde189b20946e6b5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:55 +0800 Subject: [PATCH 037/309] 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..cbb7b083c --- /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 5030ce4e680db89cf69f9ca0458b1c647609e51c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:57 +0800 Subject: [PATCH 038/309] 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..4006a3333 --- /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 68aa3c41a51b92dd8a1dea7c7870c67b9e4e3b3c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:10:58 +0800 Subject: [PATCH 039/309] 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..c5a9997d8 --- /dev/null +++ b/lib/Model/AiUploadModelsForms.php @@ -0,0 +1,407 @@ + 'string', +'model_file_type' => 'string', +'model_series' => 'string', +'model_file_name' => 'string', +'desc' => 'string', +'url' => 'string' ]; + + /** + * 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, +'desc' => 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 = [ + 'model_type' => 'modelType', +'model_file_type' => 'modelFileType', +'model_series' => 'modelSeries', +'model_file_name' => 'modelFileName', +'desc' => 'desc', +'url' => 'url' ]; + + /** + * 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', +'desc' => 'setDesc', +'url' => 'setUrl' ]; + + /** + * 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', +'desc' => 'getDesc', +'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['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['desc'] = isset($data['desc']) ? $data['desc'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : 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 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 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 4dcfc3793e37d1dbad76b4a55ae3a573de5413a0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:00 +0800 Subject: [PATCH 040/309] 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..9ddfb27da --- /dev/null +++ b/lib/Model/AiUploadModelsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResultModel', +'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\Model\AiUploadModelsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResultModel $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 f2543a7fe9e7b0f47c7de61276724158f36ff309 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:01 +0800 Subject: [PATCH 041/309] feat: update --- lib/Model/AiUploadModelsResultModel.php | 317 ++++++++++++++++++++++++ 1 file changed, 317 insertions(+) create mode 100644 lib/Model/AiUploadModelsResultModel.php diff --git a/lib/Model/AiUploadModelsResultModel.php b/lib/Model/AiUploadModelsResultModel.php new file mode 100644 index 000000000..42f364de8 --- /dev/null +++ b/lib/Model/AiUploadModelsResultModel.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 = [ + 'resource_id' => 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 = [ + 'resource_id' => 'resourceId', +'request_id' => 'requestId', +'success' => 'success' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'resource_id' => 'setResourceId', +'request_id' => 'setRequestId', +'success' => 'setSuccess' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'resource_id' => 'getResourceId', +'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['resource_id'] = isset($data['resource_id']) ? $data['resource_id'] : null; + $this->container['request_id'] = isset($data['request_id']) ? $data['request_id'] : null; + $this->container['success'] = isset($data['success']) ? $data['success'] : 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 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 cf58307e1a5099cd7a0f1c0e41df18d01c3b6f4c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:02 +0800 Subject: [PATCH 042/309] 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..58d0c8614 --- /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 9c849e5753e4b09475968ffb59db147a0a7d3adb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:04 +0800 Subject: [PATCH 043/309] 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..9706fc0a8 --- /dev/null +++ b/lib/Model/BatchStopGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\BatchStopGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 fee85d3b5bbc3458b4c9a4686e3747e57d498ced Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:05 +0800 Subject: [PATCH 044/309] 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..c4560660b --- /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 dd14318762fb115a3620fe4a17a554feec9d8149 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:06 +0800 Subject: [PATCH 045/309] 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..de505bc93 --- /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 5a901d95fe93bfadd38de08688e095bb04cef985 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:08 +0800 Subject: [PATCH 046/309] 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..550e275eb --- /dev/null +++ b/lib/Model/CancelGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\CancelGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 97bc0027854dc3541eaddc89114e5edc43f34883 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:09 +0800 Subject: [PATCH 047/309] 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..8f610d320 --- /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 aec5d54a5e0445abc69cf88e1462010de3083032 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:11 +0800 Subject: [PATCH 048/309] 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..2e4c8d5ca --- /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 52ca97dba2be1986fbbe6d3add3f5d008db64c64 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:12 +0800 Subject: [PATCH 049/309] 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..ef42f9d30 --- /dev/null +++ b/lib/Model/ClientNotifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ClientNotifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 6b593de77c18167c80594894ceac518acb338687 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:13 +0800 Subject: [PATCH 050/309] 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..65038b29b --- /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 0e9f23089e069e7b3645c8e739ce7f5c67e4e1ae Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:15 +0800 Subject: [PATCH 051/309] 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..35ba5532e --- /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 dcd5167a87957355e248b4b7e391c163fc688022 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:16 +0800 Subject: [PATCH 052/309] 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..e2d104bcc --- /dev/null +++ b/lib/Model/ConsoleAdminActivateDeploymentResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminActivateDeploymentResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 aaa55fd323a7b5afe45bf43ab127772ffbfab1e0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:18 +0800 Subject: [PATCH 053/309] 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..4e5f76f1f --- /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 5f6a6335178a5137db544baaa7cabc663e5cfe48 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:19 +0800 Subject: [PATCH 054/309] 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..eaebbe2e0 --- /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 ed71d5d49370618bb718ffb0f285853cb296f23d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:20 +0800 Subject: [PATCH 055/309] 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..b867fe723 --- /dev/null +++ b/lib/Model/ConsoleAdminAdaptGameVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminAdaptGameVersionResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 8c6d9ae9fe4f1b822bbfb01152c07724f9054a44 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:22 +0800 Subject: [PATCH 056/309] 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..76b0bb677 --- /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 96021756f22d1f98a5fc487cb70ae6b6307b012f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:23 +0800 Subject: [PATCH 057/309] 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..4910c95f0 --- /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 2f7cb77429e852eec4bf261228c79b58d68b72a8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:24 +0800 Subject: [PATCH 058/309] 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..8ca414eda --- /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 37af0849fdf569696881134e359f28b007209b0f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:26 +0800 Subject: [PATCH 059/309] 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..1453d1891 --- /dev/null +++ b/lib/Model/ConsoleAdminBatchUpdateDispatchConfigForms.php @@ -0,0 +1,347 @@ + 'string', +'instance_id' => 'string', +'app_name' => 'string', +'config_list' => '\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\Model\ConsoleAdminBatchUpdateDispatchConfigFormsConfigList[] + */ + public function getConfigList() + { + return $this->container['config_list']; + } + + /** + * Sets config_list + * + * @param \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 7ab69113e2384e4b7ee7c22bacd8ac9ca8fd8eac Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:27 +0800 Subject: [PATCH 060/309] 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..074b3d30b --- /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 b582e543070fdae95be28ad5e1fedb809f16a111 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:29 +0800 Subject: [PATCH 061/309] 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..17b718d33 --- /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 a258e2ccc9010d3bfb4b8315221bef5c83c85285 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:30 +0800 Subject: [PATCH 062/309] 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..e9e1c706a --- /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 f0b78c658244a074661e8987b7adc9f59f500d96 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:31 +0800 Subject: [PATCH 063/309] 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..c46e8f1d9 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminCreateGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 3c341e45ac9e010d77559940988c1e9ed714ee55 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:32 +0800 Subject: [PATCH 064/309] 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..a458cf3df --- /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 470446f2274210d5188dc897078d013603dd69cb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:34 +0800 Subject: [PATCH 065/309] 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..6ee0df23c --- /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\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\Model\ConsoleAdminCreateOrderFormsAttributeRequestList[] + */ + public function getAttributeRequestList() + { + return $this->container['attribute_request_list']; + } + + /** + * Sets attribute_request_list + * + * @param \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 dbc0d0b87bd6ff2faaef999882efedf409c76b39 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:35 +0800 Subject: [PATCH 066/309] 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..afacfd727 --- /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 e11fe44c1893a53d1036216ecd90885766288ffe Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:37 +0800 Subject: [PATCH 067/309] 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..d0bb1b33d --- /dev/null +++ b/lib/Model/ConsoleAdminCreateOrderResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminCreateOrderResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 75870e2296f4db0cefcbb69ca91def71487995db Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:38 +0800 Subject: [PATCH 068/309] 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..d9d0e03d7 --- /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 aaaac4498e06d514a09be3d1088c141e70578c03 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:39 +0800 Subject: [PATCH 069/309] 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..ccfbd2e5f --- /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 30f41c2bf790d1b343b71c1819288887edbcafd8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:41 +0800 Subject: [PATCH 070/309] 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..40850a600 --- /dev/null +++ b/lib/Model/ConsoleAdminCreateProjectResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminCreateProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 8b182a02698dd04ef401e7c1be207829fa3f2f77 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:42 +0800 Subject: [PATCH 071/309] 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..c2d0f59d5 --- /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 f0b04e55ab3eb7af0f17c7b9b988ed32aa96d48e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:43 +0800 Subject: [PATCH 072/309] 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..b2dc3db2a --- /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 124c87564af0dae785910a8103e1274fde5d97f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:45 +0800 Subject: [PATCH 073/309] 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..38c239bdf --- /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 2d12de0f98b6a34dc710385caeab5b7a010540ec Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:46 +0800 Subject: [PATCH 074/309] 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..8c46bed16 --- /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 924153b7e2fe64f65a9b057d414a422d4fc51415 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:47 +0800 Subject: [PATCH 075/309] 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..049eae2de --- /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 b8eeb8a58d0fea41789f8eaa47e078cf8d633a86 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:48 +0800 Subject: [PATCH 076/309] 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..19f24257d --- /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 ae70264775182c983e5257dfd15668fbbc429eab Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:50 +0800 Subject: [PATCH 077/309] 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..7e54221d3 --- /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 5159ce682852d875e628d88cebeb4a7c47d9f693 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:51 +0800 Subject: [PATCH 078/309] 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..91300e04d --- /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 75ffe16cc14a825d37e560a9107af1c58ac51237 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:53 +0800 Subject: [PATCH 079/309] 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..7b150dbdb --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminGetBillFlowInfoResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 a194822a8471c859bd14d9160f3bb7b16ce5702f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:54 +0800 Subject: [PATCH 080/309] 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..ded149f4a --- /dev/null +++ b/lib/Model/ConsoleAdminGetBillFlowInfoResultModel.php @@ -0,0 +1,347 @@ + 'int', +'pagesize' => 'int', +'total_count' => 'int', +'items' => '\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\Model\ConsoleAdminGetBillFlowInfoResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \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 921cc9025ac3ffec75a25c8a41b1dc7ccf26734a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:55 +0800 Subject: [PATCH 081/309] 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..a45e4e4b0 --- /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 b08d073dbce6150671e511bceb560a25e9f57e97 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:57 +0800 Subject: [PATCH 082/309] 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..1057b4100 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioForms.php @@ -0,0 +1,287 @@ + 'string', +'games' => '\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\Model\ConsoleAdminGetGameInstanceContainerRatioFormsGames[] + */ + public function getGames() + { + return $this->container['games']; + } + + /** + * Sets games + * + * @param \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 94e49d8301d2aeaedc6a20919605f058db256dcc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:58 +0800 Subject: [PATCH 083/309] 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..9af012964 --- /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 2ea9407a7615cd8322269d25947fbe94d43aaaa7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:11:59 +0800 Subject: [PATCH 084/309] 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..e81b966dd --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameInstanceContainerRatioResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminGetGameInstanceContainerRatioResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 3db031b3fc3c5ea0012acc8c27e4b98012f97023 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:01 +0800 Subject: [PATCH 085/309] 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..db69fb49c --- /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 5970b2f0d5d15e6991c799943889a0bccd605697 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:02 +0800 Subject: [PATCH 086/309] 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..8185eba65 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceForms.php @@ -0,0 +1,287 @@ + '\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\Model\ConsoleAdminGetGameRecommendedInstanceFormsGame + */ + public function getGame() + { + return $this->container['game']; + } + + /** + * Sets game + * + * @param \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 fc3c6d8e5b966e39525ac4a58ee7c2e7b8a6d7a3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:04 +0800 Subject: [PATCH 087/309] 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..bd6b0dab8 --- /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 96cbc5205cf5e0486f1f4034e8e04cab118fb867 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:05 +0800 Subject: [PATCH 088/309] 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..5fd61657d --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameRecommendedInstanceResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminGetGameRecommendedInstanceResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 ddc38190e86f01e466399bd161f7ee0c233c0976 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:06 +0800 Subject: [PATCH 089/309] 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..5c2acec31 --- /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 afeffd044b8be2691a84be312f16557a08fda452 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:08 +0800 Subject: [PATCH 090/309] 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..886178ae2 --- /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 b74913eaf6929c9b354e03353f211444f3384e2e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:09 +0800 Subject: [PATCH 091/309] 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..641f6ec5f --- /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 da4a081d17816625438c5e1b9dcee6af712b11ce Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:10 +0800 Subject: [PATCH 092/309] 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..6088b44de --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionProgressResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminGetGameVersionProgressResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 54278ce72929161201ad16079220e5000b019251 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:12 +0800 Subject: [PATCH 093/309] 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..f47a8739a --- /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 5d2ac92c123f56d11570b70f1da0c6ac8f7230dc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:13 +0800 Subject: [PATCH 094/309] 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..1f2334715 --- /dev/null +++ b/lib/Model/ConsoleAdminGetGameVersionResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminGetGameVersionResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 09d4565f6246e21f1b205428c6b274aff20fe808 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:15 +0800 Subject: [PATCH 095/309] 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..57fde25ec --- /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 cc48f5ada3e1231f022e09b35d05c7f4c1e4d2bb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:16 +0800 Subject: [PATCH 096/309] 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..90db815a9 --- /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 2c1f1bc101e331d30f533474ceeb42adbf5e484a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:17 +0800 Subject: [PATCH 097/309] 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..263b2f4d9 --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminGetOrderResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 245c32631b7381a38ffa11bd12ab94d480206801 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:19 +0800 Subject: [PATCH 098/309] 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..02cc98e2a --- /dev/null +++ b/lib/Model/ConsoleAdminGetOrderResultModel.php @@ -0,0 +1,1427 @@ + 'string', +'order_id' => 'string', +'attribute_list' => '\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\Model\ConsoleAdminGetOrderResultModelAttributeList[] + */ + public function getAttributeList() + { + return $this->container['attribute_list']; + } + + /** + * Sets attribute_list + * + * @param \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 8420236daa93709c0c8cbf504a49f13ebcb598cc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:21 +0800 Subject: [PATCH 099/309] 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..9ee2f45ab --- /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 34a9c88d7bd4f9a194611ab8dffdadb215f234e3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:22 +0800 Subject: [PATCH 100/309] 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..55f218376 --- /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 8f972f40f33d4572a9de697c5f60fc6e0b7bff40 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:23 +0800 Subject: [PATCH 101/309] 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..2e093ac9c --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListActivateableInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 29ee2be3c00b3c314f4f8452cfebed58f34fc315 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:25 +0800 Subject: [PATCH 102/309] 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..dec6a7625 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivateableInstancesResultModel.php @@ -0,0 +1,287 @@ + '\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\Model\ConsoleAdminListActivateableInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 b34ee6fa78e6400d117e96ef8408a9431d37627d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:26 +0800 Subject: [PATCH 103/309] 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..3b4e26f7f --- /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 6c4fac66c9fc08aabc7031be334957eced7e715a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:27 +0800 Subject: [PATCH 104/309] 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..40df4deb1 --- /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 b6c7b7326118736469bc349d4da5f1bce7d3bee6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:29 +0800 Subject: [PATCH 105/309] 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..8035563f3 --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListActivatedInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 0620c4d18a0cd25a90e447d831e720f521e115a4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:30 +0800 Subject: [PATCH 106/309] 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..c1f24b3aa --- /dev/null +++ b/lib/Model/ConsoleAdminListActivatedInstancesResultModel.php @@ -0,0 +1,287 @@ + '\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\Model\ConsoleAdminListActivatedInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 da10b2b1314c80aa681e822454d9f863e7e2fdbb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:31 +0800 Subject: [PATCH 107/309] 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..a7cf2cc68 --- /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 eb9c57526ebd1098f061bf12dc3cf25af80d3b39 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:33 +0800 Subject: [PATCH 108/309] 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..65cd7eee5 --- /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 4b084e889c20c9e28b2a624f5e42aacaa22ce9b2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:34 +0800 Subject: [PATCH 109/309] 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..3cf62451f --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListControllersOfGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 c57bd46948f01d45861375663d6138226037bd13 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:35 +0800 Subject: [PATCH 110/309] 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..5ffb9f6f0 --- /dev/null +++ b/lib/Model/ConsoleAdminListControllersOfGameResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\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\Model\ConsoleAdminListControllersOfGameResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 0bba93040ce74020cc4e940337a9b055cbf8bab7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:37 +0800 Subject: [PATCH 111/309] 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..e25ab1902 --- /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 b8020e7964d584cd85f07aadf8e3edff4abe517c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:38 +0800 Subject: [PATCH 112/309] 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..cbdf40721 --- /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 214ecafaa896617a1aa0abe1675b6b2f2da8d17a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:39 +0800 Subject: [PATCH 113/309] 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..cdd59fece --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListDeployableInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 517d9663c280bfa78be14a61ee035feb74d126d2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:40 +0800 Subject: [PATCH 114/309] 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..d381e0aa0 --- /dev/null +++ b/lib/Model/ConsoleAdminListDeployableInstancesResultModel.php @@ -0,0 +1,347 @@ + 'int', +'data_list' => '\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\Model\ConsoleAdminListDeployableInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 9e1245f8938c8efb47fb48afc9d1359c54205754 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:42 +0800 Subject: [PATCH 115/309] 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..1d2c8e66d --- /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 89ab7b284757ae726b38bf6c6e449063a6122424 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:43 +0800 Subject: [PATCH 116/309] 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..ef38599a5 --- /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 8e4eb47ef9b853e78afa20c429640921a29e5f12 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:44 +0800 Subject: [PATCH 117/309] 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..4b5e6579e --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListGameCcuResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 424b3d05af85bab05b66b042b598b44225ba122d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:46 +0800 Subject: [PATCH 118/309] 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..5458298a2 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameCcuResultModel.php @@ -0,0 +1,347 @@ + 'int', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\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\Model\ConsoleAdminListGameCcuResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \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 c29fb81b8cc7334d7483df9492274f3b03ab07bf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:47 +0800 Subject: [PATCH 119/309] 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..d43354a16 --- /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 cd8ced91c4be4ccba6fc1e1cf9cb3c8c5ad16b82 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:48 +0800 Subject: [PATCH 120/309] 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..12ec33a4e --- /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 873e5e2969d4a64e9a0feeb4c671ed3c66956512 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:50 +0800 Subject: [PATCH 121/309] 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..996eec095 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 e085513a4606e5162a9971ad1b09f75c901b69a2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:51 +0800 Subject: [PATCH 122/309] 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..f96484fd4 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameDeployDetailsOfProjectResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\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\Model\ConsoleAdminListGameDeployDetailsOfProjectResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 5d2d5fa8c0adce42d2d37742b027628886966399 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:53 +0800 Subject: [PATCH 123/309] 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..ec98ca3b3 --- /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 53fa3dbde91a739f76569ef357664b2878e4ff86 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:54 +0800 Subject: [PATCH 124/309] 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..e14e761ab --- /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 b5b7eaea824e9381a3d8908f4807d0cf20377cd0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:55 +0800 Subject: [PATCH 125/309] 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..8b95201ea --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListGameVersionsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 c4f91eafed5269c73ee4db38963faebb3d52f289 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:57 +0800 Subject: [PATCH 126/309] 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..45f39c688 --- /dev/null +++ b/lib/Model/ConsoleAdminListGameVersionsResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\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\Model\ConsoleAdminListGameVersionsResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 4316cf585a3f331611589037ebfe5c5743fb0d96 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:12:59 +0800 Subject: [PATCH 127/309] 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..6b5efd64b --- /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 e96d7adfc558511a6339ba6af51ca6e628c967de Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:00 +0800 Subject: [PATCH 128/309] 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..95e1e4e86 --- /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 7cbd2c5aac508d769518f85f262690bf10e639e4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:02 +0800 Subject: [PATCH 129/309] 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..940faa0bf --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListGamesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 515356d01f95afb5b53ac053e27365228e1ef6bb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:03 +0800 Subject: [PATCH 130/309] 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..dacefaf36 --- /dev/null +++ b/lib/Model/ConsoleAdminListGamesResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\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\Model\ConsoleAdminListGamesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 84b7de31133d3d2b2eb9f1197d41908721bbacee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:04 +0800 Subject: [PATCH 131/309] 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..42071255b --- /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 faf3d29c5c353fdffbaef7c39bfa3414bdc73216 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:06 +0800 Subject: [PATCH 132/309] 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..2a7636512 --- /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 d06e879f3966a6a628a814ce6f5e3562ba11d621 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:07 +0800 Subject: [PATCH 133/309] 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..23087fa35 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResult.php @@ -0,0 +1,347 @@ + 'string', +'model' => '\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\Model\ConsoleAdminListInstancesOfProjectResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 9b3d5333b2b4119f53ced4f483fd2f2ebb4853c6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:09 +0800 Subject: [PATCH 134/309] 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..e7ac4df09 --- /dev/null +++ b/lib/Model/ConsoleAdminListInstancesOfProjectResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\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\Model\ConsoleAdminListInstancesOfProjectResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 91073e777d77d4cb6b7ab069540831ce5a17b56e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:10 +0800 Subject: [PATCH 135/309] 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..dba8b9bcf --- /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 163d6e7accbafb059a3f449f6fff283b01a0ae8f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:12 +0800 Subject: [PATCH 136/309] 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..a23a9d837 --- /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 23f96fbe890297c3eac34dc1acdfc6fc3963219a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:13 +0800 Subject: [PATCH 137/309] 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..7d1ba5caf --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListMonthBillResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 2ff7325a17ad266f2d674dc8849514a60862f130 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:14 +0800 Subject: [PATCH 138/309] 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..0dd99aec1 --- /dev/null +++ b/lib/Model/ConsoleAdminListMonthBillResultModel.php @@ -0,0 +1,347 @@ + 'int', +'page_size' => 'int', +'total_count' => 'int', +'items' => '\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\Model\ConsoleAdminListMonthBillResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \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 e2802ee782b324e21a470efa562f853c1c7cdbc4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:16 +0800 Subject: [PATCH 139/309] 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..5d5a1260c --- /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 d21c722f7db80d3ffff6c6397636e75a397ac1c2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:17 +0800 Subject: [PATCH 140/309] 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..4e11b2245 --- /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 8282727adf98eb8ad502f2e8cfec8e4dac2810af Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:18 +0800 Subject: [PATCH 141/309] 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..1b72d26a0 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListProjectsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 9e7e9ec96173ac05cc1230f7779a837daed49a96 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:20 +0800 Subject: [PATCH 142/309] 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..8fbb11b00 --- /dev/null +++ b/lib/Model/ConsoleAdminListProjectsResultModel.php @@ -0,0 +1,347 @@ + 'int', +'next_token' => 'string', +'data_list' => '\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\Model\ConsoleAdminListProjectsResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 2340cfadcaafc66f5f6fe6dfb74a94b9c79b04f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:21 +0800 Subject: [PATCH 143/309] 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..022120113 --- /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 a2a87344b2a8be735b9bfd00d0fb07f5bf3401bb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:23 +0800 Subject: [PATCH 144/309] 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..23407f14f --- /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 3daf3f3cd7620e231d2fb04fd8677ac8d1c6cf35 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:24 +0800 Subject: [PATCH 145/309] 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..1c684e728 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminListVersionDeployInstancesResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 14a4d67ccb1660dedd8ce4425b646fbb49e2cf7b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:25 +0800 Subject: [PATCH 146/309] 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..fda3955f2 --- /dev/null +++ b/lib/Model/ConsoleAdminListVersionDeployInstancesResultModel.php @@ -0,0 +1,347 @@ + 'string', +'max_results' => 'int', +'data_list' => '\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\Model\ConsoleAdminListVersionDeployInstancesResultModelDataList[] + */ + public function getDataList() + { + return $this->container['data_list']; + } + + /** + * Sets data_list + * + * @param \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 31a26f9d5a9593f94894813075acd390b1e92cac Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:27 +0800 Subject: [PATCH 147/309] 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..b46f0b360 --- /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 6b6e724f07ccb65104c5edb3fe64e4bcc3690616 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:28 +0800 Subject: [PATCH 148/309] 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..b0d3ae2d1 --- /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 66c85c304ab5a30a3be29434f4e0ea530260729a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:30 +0800 Subject: [PATCH 149/309] 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..dcd72ca90 --- /dev/null +++ b/lib/Model/ConsoleAdminQueryAdaptResultByVersionIdResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminQueryAdaptResultByVersionIdResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 4983e314e655111f7b630ef517ad3707a1c582c1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:31 +0800 Subject: [PATCH 150/309] 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..7fd67faee --- /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 a82bb69bdf419d416d62882192d10db3d6e8541a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:33 +0800 Subject: [PATCH 151/309] 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..8efac4d83 --- /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 4c6b8fbbbff41a10cb00382b4b006b5510d2acd2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:34 +0800 Subject: [PATCH 152/309] 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..0eb4b4b8c --- /dev/null +++ b/lib/Model/ConsoleAdminRecommendSpecificationResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminRecommendSpecificationResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 9ffd95fe1b8e847b51783c6cb9f258b7c0affe02 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:36 +0800 Subject: [PATCH 153/309] 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..720c42845 --- /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 d4a220ab5b17f8db615da0e3f851d9a2f417dd08 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:37 +0800 Subject: [PATCH 154/309] 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..1e57573d3 --- /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 303a43114de3d0157f74729506ccf18d686a9798 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:38 +0800 Subject: [PATCH 155/309] 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..e91dcaca7 --- /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 44279b3117eb3e4800940531be1654e09f4f0b70 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:40 +0800 Subject: [PATCH 156/309] 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..f8f869813 --- /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 faffb5150f1ba353624396354220bf36cb6a6608 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:41 +0800 Subject: [PATCH 157/309] 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..786fd564a --- /dev/null +++ b/lib/Model/ConsoleAdminRtOverViewResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminRtOverViewResultModel[] + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 8dc7616ce8065765c0d5bcdf5dc108131e26b59b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:42 +0800 Subject: [PATCH 158/309] 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..680992cc1 --- /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 7122dabb6d848f79b58fe604d62dac1c0d4d7dc1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:44 +0800 Subject: [PATCH 159/309] 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..9b9529ebc --- /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 8531c5345c10c8a43840571692634168bb01e881 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:45 +0800 Subject: [PATCH 160/309] 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..b0610b935 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminRtTrendResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 874599213dd5837d34042fa64b634f442847536d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:46 +0800 Subject: [PATCH 161/309] 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..e76ab9009 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModel.php @@ -0,0 +1,287 @@ + '\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\Model\ConsoleAdminRtTrendResultModelData[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \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 edf3adb2b3051ee4537945e2901247fb11b08e9b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:48 +0800 Subject: [PATCH 162/309] 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..9464dd6b0 --- /dev/null +++ b/lib/Model/ConsoleAdminRtTrendResultModelData.php @@ -0,0 +1,347 @@ + '\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\Model\ConsoleAdminRtTrendResultModelDataData[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \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 c55e971108a18e2c2f5668ec60ad74859130afd7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:49 +0800 Subject: [PATCH 163/309] 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..ad0021a74 --- /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 ac686bec9a0eea01c45f102877d0b513c473ed34 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:50 +0800 Subject: [PATCH 164/309] 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..7afb30931 --- /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 f7d059465075ba60df39f1d50fb95acec34364ec Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:52 +0800 Subject: [PATCH 165/309] 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..acced560f --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitDeploymentResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminSubmitDeploymentResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 775c70dc3f4925b2bfe1e9aaf4b4d09ec63ca885 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:53 +0800 Subject: [PATCH 166/309] 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..ee5800fe1 --- /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 28bf195ff6a08830ab04acc698bfdc07aaea3a46 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:54 +0800 Subject: [PATCH 167/309] 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..c0fbe02ad --- /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 41422c5e4a0d2549d084b415759d3242ca80235c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:56 +0800 Subject: [PATCH 168/309] 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..737f8e073 --- /dev/null +++ b/lib/Model/ConsoleAdminSubmitRefundResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminSubmitRefundResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 7d7f3de384a8e4dd068adcce954296bc61dc85a9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:57 +0800 Subject: [PATCH 169/309] 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..5d95b5155 --- /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 500aa08c19d0d639144c72695064d237811e3f82 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:13:58 +0800 Subject: [PATCH 170/309] 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..523363531 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadForms.php @@ -0,0 +1,377 @@ + 'string', +'game_id' => 'string', +'download_type' => '\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\Model\ConsoleAdminUploadGameVersionByDownloadFormsDownloadType + */ + public function getDownloadType() + { + return $this->container['download_type']; + } + + /** + * Sets download_type + * + * @param \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 fa19501f7ebc0beec1941129f1b20a094a8c8bee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:00 +0800 Subject: [PATCH 171/309] 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..d1b198676 --- /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 f8e54b87e299980a0104f26cd305228df7a2335a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:01 +0800 Subject: [PATCH 172/309] 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..502060333 --- /dev/null +++ b/lib/Model/ConsoleAdminUploadGameVersionByDownloadResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ConsoleAdminUploadGameVersionByDownloadResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 68e0f44f2138ac98eb5b57927e758c56ad921ac6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:03 +0800 Subject: [PATCH 173/309] 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..9a587e991 --- /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 2f613b113ae4c55c900d6dbb0422eb656e3139e1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:04 +0800 Subject: [PATCH 174/309] 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..c4e4cce71 --- /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 c82b2e6244e4152729e4b2e29e0ed915f868722c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:05 +0800 Subject: [PATCH 175/309] 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..fc7a127a7 --- /dev/null +++ b/lib/Model/GameNotifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\GameNotifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 f3cae69599cdbf79708e2f95ef1616b35f09f149 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:07 +0800 Subject: [PATCH 176/309] 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..df0b56b38 --- /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 d9fff04d6bad33f2d54bcfb60f617b3e6c82fb72 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:08 +0800 Subject: [PATCH 177/309] 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..a3eb2e56c --- /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 665d7efb06e217ed93a90761a44445d25594e1c7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:09 +0800 Subject: [PATCH 178/309] 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..a97e64588 --- /dev/null +++ b/lib/Model/GetGameConcurrencyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\GetGameConcurrencyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 4f968bfc02e8ca52d12c52b75bd6733e6b4e8e7e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:11 +0800 Subject: [PATCH 179/309] 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..d55d4a358 --- /dev/null +++ b/lib/Model/GetGameConcurrencyResultModel.php @@ -0,0 +1,497 @@ + 'string', +'current_time' => 'int', +'playing_region_list' => '\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\Model\GetGameConcurrencyResultModelPlayingRegionList[] + */ + public function getPlayingRegionList() + { + return $this->container['playing_region_list']; + } + + /** + * Sets playing_region_list + * + * @param \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 25fa1966358425866d90fca12af5d7a6f3b0f9db Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:12 +0800 Subject: [PATCH 180/309] 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..4605f164b --- /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 aef3e7ee594143d4893db114877aac582e662cfb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:13 +0800 Subject: [PATCH 181/309] 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..3d29135d6 --- /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 6a95663a6636ab46c6cd54fe139284bbf21d55a4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:15 +0800 Subject: [PATCH 182/309] 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..522e3c848 --- /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 97120670f7962b775adafa0a062dc1bb5dff2f09 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:16 +0800 Subject: [PATCH 183/309] 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..66cbbfbc1 --- /dev/null +++ b/lib/Model/GetStockResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\GetStockResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 4b7129b18347fe524433998df1585aa91a33fe77 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:18 +0800 Subject: [PATCH 184/309] 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..4ebd0ac7a --- /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\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\Model\GetStockResultModelInstanceStockList[] + */ + public function getInstanceStockList() + { + return $this->container['instance_stock_list']; + } + + /** + * Sets instance_stock_list + * + * @param \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 ea3df8ae37d79a5653a04b0327f5501469981931 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:19 +0800 Subject: [PATCH 185/309] 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..c6c9b2576 --- /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 58d2c65718eaa493fe3e96eed3d2a9b1c990d96d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:21 +0800 Subject: [PATCH 186/309] 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..2ad5eba3c --- /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 91065c10934906db4f179748236c859f048ecdc8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:22 +0800 Subject: [PATCH 187/309] 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..f3e438c45 --- /dev/null +++ b/lib/Model/GetStopGameTokenResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\GetStopGameTokenResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 d16da7554a833a085bb9bfcdcf8a0db31037d801 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:23 +0800 Subject: [PATCH 188/309] 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..6fb2aa748 --- /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 52c8c810a8b5c0974a8a7c4e3a789d256a594e50 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:25 +0800 Subject: [PATCH 189/309] 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..19494d1e3 --- /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 417b20e22b1f0a42077a040ce90cd1300ddfd93c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:26 +0800 Subject: [PATCH 190/309] 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..5cd613e11 --- /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 ae4780b31daeec30c050a898797dad91ffee0694 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:28 +0800 Subject: [PATCH 191/309] 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..ce0706219 --- /dev/null +++ b/lib/Model/ListGameServerIpResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ListGameServerIpResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 dbb0c4e0b943c5aeef87406ccec4ad2969b823b6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:29 +0800 Subject: [PATCH 192/309] 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..10d7b1e20 --- /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 26140028a0a1c7f3ac58fdb9e2248f6708579cc8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:30 +0800 Subject: [PATCH 193/309] 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..c17df0507 --- /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 b88d73ec8a272ccd01539dbf953bf24c041d8cc4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:32 +0800 Subject: [PATCH 194/309] 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..80281cb4e --- /dev/null +++ b/lib/Model/LiveQueryStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\LiveQueryStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 a4562717e82aac9eec6192897a9b65a8beaa2343 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:33 +0800 Subject: [PATCH 195/309] 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..b846dfb79 --- /dev/null +++ b/lib/Model/LiveQueryStatusResultModel.php @@ -0,0 +1,257 @@ + '\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\Model\LiveQueryStatusResultModelLiveList[] + */ + public function getLiveList() + { + return $this->container['live_list']; + } + + /** + * Sets live_list + * + * @param \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 4e12d8808ed4ef1d2d357d9365c3aef88887689a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:34 +0800 Subject: [PATCH 196/309] 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..1360464c2 --- /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\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\Model\LiveQueryStatusResultModelLiveListConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \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 3c9b2377d054abfeae1433a7dceb161d98be226f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:36 +0800 Subject: [PATCH 197/309] 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..60cbedbdf --- /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 bf2dceaac8f292a1357d2cc9b9b5250ce97105c3 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:37 +0800 Subject: [PATCH 198/309] 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..710c899d1 --- /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\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\Model\LiveStartGameLiveFormsConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \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 705ab1a92f0727d638160031b4c0be5119033b4d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:38 +0800 Subject: [PATCH 199/309] 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..800040297 --- /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 0ce6b1abb531869b7783b8f3c1e7efdbf1d0c8f8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:40 +0800 Subject: [PATCH 200/309] 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..a4b30fcd4 --- /dev/null +++ b/lib/Model/LiveStartGameLiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\LiveStartGameLiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 d9dcf6048e9ca9449ff9b9d6da119ff0c15e6481 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:41 +0800 Subject: [PATCH 201/309] 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..18752b122 --- /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 75714332c1868a86d6cdade7adbf29e7d29025be Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:42 +0800 Subject: [PATCH 202/309] 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..3af6e448c --- /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 583b3a150d40671ba7e0c056a4cff57c79d18cfc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:44 +0800 Subject: [PATCH 203/309] 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..d3abde1c8 --- /dev/null +++ b/lib/Model/LiveStopGameLiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\LiveStopGameLiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 64025f89cc9561c4bc000495e0bb66f6c148b442 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:45 +0800 Subject: [PATCH 204/309] 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..c7cab82dc --- /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 504a822ec8d3dd1bdddd581fcc6e52f723aa33db Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:46 +0800 Subject: [PATCH 205/309] 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..c8ca4441e --- /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 961da1af82a09155be2ea21566c783c49421a041 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:48 +0800 Subject: [PATCH 206/309] 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..0846b0137 --- /dev/null +++ b/lib/Model/MultiplayCloseResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\MultiplayCloseResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 d8242a665eb13ff8ba729e6742f43b08499e210b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:49 +0800 Subject: [PATCH 207/309] 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..045437e8f --- /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 fb918021e11c259fab0df138caf911ba092bb6b8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:50 +0800 Subject: [PATCH 208/309] 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..2bd4b925f --- /dev/null +++ b/lib/Model/MultiplayInitForms.php @@ -0,0 +1,347 @@ + 'string', +'app_key' => 'string', +'config' => '\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitFormsConfig', +'tokens' => '\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\Model\MultiplayInitFormsConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \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\Model\MultiplayInitFormsTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \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 1a3d421b595d09c33b1f18a83fb0ac4ed03e5bd6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:52 +0800 Subject: [PATCH 209/309] 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..69bb35551 --- /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 9963b56149ca69c2b6777e60713f9ddf115f2bec Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:53 +0800 Subject: [PATCH 210/309] 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..d903ba956 --- /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 f7e9ea284f8ced1b0ae5a2efd72a44f1a7f30409 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:54 +0800 Subject: [PATCH 211/309] 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..bab8c4087 --- /dev/null +++ b/lib/Model/MultiplayInitResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\MultiplayInitResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 5b962e7f2cec98f394b1795ef18a9c644bf65577 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:56 +0800 Subject: [PATCH 212/309] 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..81011b223 --- /dev/null +++ b/lib/Model/MultiplayInitResultModel.php @@ -0,0 +1,347 @@ + 'string', +'tokens' => '\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\Model\MultiplayInitResultModelTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \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 a6d694d943e759a22a87b4ab79b46017b34fd531 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:57 +0800 Subject: [PATCH 213/309] 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..7d4ae9ece --- /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 6b6d46480e6378151e59d9cfd3e25d6abe757d01 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:14:58 +0800 Subject: [PATCH 214/309] 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..489d573aa --- /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 d0c435615696d9fc87425a566990d5c493bb0932 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:00 +0800 Subject: [PATCH 215/309] 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..83f6309d5 --- /dev/null +++ b/lib/Model/MultiplayJoinResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\MultiplayJoinResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 10c8d90aaa17cbcfbe2332150c6a912b60371a44 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:01 +0800 Subject: [PATCH 216/309] 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..b130e7e15 --- /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 86a23a76d56fa0a495800d8631fbaf1f02c3b33f Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:03 +0800 Subject: [PATCH 217/309] 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..72661c2db --- /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 306df94c18b5d52b7d0b39a77aedfe08f2d58a37 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:04 +0800 Subject: [PATCH 218/309] 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..493ebb26a --- /dev/null +++ b/lib/Model/MultiplayLeaveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\MultiplayLeaveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 7c359458cb6f5c631414ff3dab7ca2a2a9da3b24 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:06 +0800 Subject: [PATCH 219/309] 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..89fc6a90f --- /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 2f6e6e1ddb9daf49bbd24bfcacc6b180ec1e4074 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:07 +0800 Subject: [PATCH 220/309] 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..470952a09 --- /dev/null +++ b/lib/Model/MultiplayModifyForms.php @@ -0,0 +1,287 @@ + 'string', +'tokens' => '\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\Model\MultiplayModifyFormsTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \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 5927b9edd5c63b3227273fa8cf6a379d8797285b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:09 +0800 Subject: [PATCH 221/309] 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..31df158c3 --- /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 d1247a0741f86a7385d431c42da1a58aba49dd48 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:10 +0800 Subject: [PATCH 222/309] 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..391fddf76 --- /dev/null +++ b/lib/Model/MultiplayModifyResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\MultiplayModifyResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 3499a28075b95ebd5cd9ba97da734fe20819ea91 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:11 +0800 Subject: [PATCH 223/309] 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..55a63f28c --- /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 0a98dde3afb67a9814d6b2e9dca05770a5297d1a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:13 +0800 Subject: [PATCH 224/309] 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..be5eb50e8 --- /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 f88f59825b91f037fc489b2f6d6272013499b5c5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:14 +0800 Subject: [PATCH 225/309] 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..8ae54618d --- /dev/null +++ b/lib/Model/MultiplayQueryResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\MultiplayQueryResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 9730f2846917d6e203f02313ec21a6f371db7236 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:16 +0800 Subject: [PATCH 226/309] 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..70bd53264 --- /dev/null +++ b/lib/Model/MultiplayQueryResultModel.php @@ -0,0 +1,407 @@ + 'string', +'end_ts' => 'int', +'tokens' => '\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResultModelTokens[]', +'data_ver' => 'string', +'mp_id' => 'string', +'config' => '\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\Model\MultiplayQueryResultModelTokens[] + */ + public function getTokens() + { + return $this->container['tokens']; + } + + /** + * Sets tokens + * + * @param \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\Model\MultiplayQueryResultModelConfig + */ + public function getConfig() + { + return $this->container['config']; + } + + /** + * Sets config + * + * @param \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 39bed7178715b2442d52643307b62399990764a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:17 +0800 Subject: [PATCH 227/309] 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..a2b8f41ad --- /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 fe75e96a9726e9f68929b407d56f94e11e076d28 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:18 +0800 Subject: [PATCH 228/309] 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..dfc934f04 --- /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 b46af88357c99ca071cc948d358e61a445d6bcee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:20 +0800 Subject: [PATCH 229/309] 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..9cf80c30f --- /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 1b1ecfe092fe80cbd301e00f0fb1b87c573065c8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:21 +0800 Subject: [PATCH 230/309] 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..8e81c3368 --- /dev/null +++ b/lib/Model/QueryGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\QueryGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 e1b24de05b3157620cea785ea54e911cf31fd876 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:22 +0800 Subject: [PATCH 231/309] 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..1008e4be8 --- /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 2cb03f5273b34f13009fd37a1a1a9db6c533f916 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:24 +0800 Subject: [PATCH 232/309] 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..285867a4a --- /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 d645a7f70e164522af340f4ef1389014b5d25d2c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:25 +0800 Subject: [PATCH 233/309] 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..b74dff2d8 --- /dev/null +++ b/lib/Model/QuerySessionStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\QuerySessionStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 848158d6e694e8efc586ea0eadc29fbe85beaa8d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:26 +0800 Subject: [PATCH 234/309] 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..17cc56338 --- /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 4546bcf095b5d85a7568fcc0986e5377545ab2bd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:27 +0800 Subject: [PATCH 235/309] 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..afa94af26 --- /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\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\Model\ReplaceSlotFormsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \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 992d890b54ec5a840d324aebe404f88eb4f3a560 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:29 +0800 Subject: [PATCH 236/309] feat: update --- lib/Model/ReplaceSlotFormsStartParam.php | Bin 0 -> 19493 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..013d1fbfbcf63c79be639dca2c8351e9f752dbe4 GIT binary patch literal 19493 zcmcg!-EZ7B62E8v6?|C0c94r-uJ@2!+HCALb%P{^Hz^P#!9rfqwvzQqm9%c1BLDl% zki&0Eq}I6$(0Z2~&ev~-98%Q&=cnen**kjhV2?du=e$`LE52CQ{V#QU(=GaJ9sW+Mcb7o?q4N9XnnZU58}Pnqu{(xZ;ex|6DhGQ#94b<8{S1 zJ@g*!p*VI%BrDa{EV4E_M8O>x6Jkj4W^ zAAQjuU)3dFKiS*ccAR~jw{3AZU#)o8J&`Q|eb6umGu~W$=Bs|e+p1VsUwI4slFpNk zVJG#99oIKE(hX?Fbl0uW#UnVe>ZVz96wxtZ@9C!J?Ik$qA+t>0`+JYUzg4~IdUkTU zI6gmpb^3b#_RTqa$~N0Ix(Nw{Y4`z@eS6JW-BwrCrdTudJF72Q4~;kI*GGaL=+s~K z?6zoG*SCPAYC94inzru2hrEQ|qOVqL)(LkCeP1Kvr)+;X6!#;#3DZy?;N9@HzhiyP z`nv{{E1Cv0=pM0m9Z1A5Iw<*}lvsTQ`SnJrr~cZifB2+Y$CZBz!a7j=1CcYf|Aq5r z2~l#(_u11Q*?zU@_aE-i=@9Omy6&oNZo66x>w5w~7 zvfQ?7f5a8I6J#~pK-jPpp?6tz5FH!9DPn>WSe3p!G4{G%m$6Yzvs_&lz%)>kEH9hZ zF|1p)Rnsp+F~TgGh$7t=RljUuR$6v^eYq^kqA}hi6ojIidI=NWT}0QeD?+Kt?3?lj z-|p_NTappsIO-62;t!<0i?-Of&cvkqlpE?0);C4}e+zb89156WQsMsZe?*g7igRlAVw_sN_@>tJ*p~V#F$APNG7{M|#*1wl#M>ps139}uZm`T!oeh%i{&=5%8FI@6c*iojI6XW$j{CCYvw66711Jn0!uJ- zsw`47l4^JdD=~C?Gn4p!Di&kt^d>0#JM@lBRM>T*muGFU(nYO5^!>C%O$0lC_QJ+r zVXYP{gkPXoa+hdmIHn~VxOmf<_C<>#+*ysjO6jq=O*rFsxtEYsBh%bI^qs?kzJLUs ztL0po6S?l}>;r>5C~pCMLd{; z(C?}s@+Mvj11;K~k%>mFkz^!xIv>$pK{_I*(ToHF>B$o)r7?uP3Yzx|(K3>kzyf`g zoti-Zd|GzG2=v@Yf`Xc&07oCt=0@izj3$sr(i9k^G8OnpSB)gArr9N5ucG-H$<{x% zyzB3ktWs1WS%GLYS)o5CS%EAkSvA>EvI4<)vI4pvKqBUl9kwvCo6Iq zO;#WnOIGMkCM(cPN>-qsn5-~jJXulA!DNNbWU?ZIRI&n1GFdgv(HsCiQW)h=v{P-7@=~@C)sQV&$Em>v(LPUA zTPC^PRb?Rqx%wnE>25s6*3^!w;g+}S>Qw~?rng*fy2W8?*TY5+&g%8StJnm>Qvm#D z)W^c}ruvJQgLUT&jvM=;+CYU1$4Zf^_!tkX+wBSj`rI3QM4|YzSy}W2o0Gb5=qrv0 zoO1_9Nug@+KRlonXZ&cLKISIL&Ow9r{BkJ{)KSL+DO0K^YEN_gNC`<_rmCaE2WSijY|HBE9)y zahEyU!9~H)lw&wqAh*yU&tfH)lxr z0;T;j*fIse2FNVA0~8r5D7RPTFjUxQ33G;|qe19qou|ajvk5F&;o!7Ddn*_Sb2=?S zPJ4#mDEII&Od!MVvqad<84}EXG!S5QS^TZm4E7=!tmi_3kbuAv74&5Y95}NI@Fj`jjE z?#Z7m$m_`vMHzB~Pss<ESOLN`4i344E#VG1b}tG;je9+YXqMhtv!8$S)r#BRPSSA@o&rVKQ{g zeDsG*0qKP{YGxRwAu_ZQA@h9~fWFf*w#x!$L?;k3guc67gbW=%K&Km+{*WmMoog-! zGs7_rk)f3kneV$mBz#=(~VW%FIyxU^*WrPksU`kJ{JP&qrgI%tZ6uA30@$ zeF<}su~cTC;hYB0Gs4O^!(|sJtz*{#^D>i7-yX<^(UP5j(4zFU^zzMI3S=XLrXV*r zmdz}dX~-;MN;;$5E>P($PVh`IKjG9qt<6Wth)sZG2;&%uqbx&Y_Gv@*WKD?1BC}6x z)8H6ABsS*zF3{+cf8TOKCNGB;bloi<8!a~hji&SUbF)X2G5yIOFeP&q%AT2Kmj*_Y zN?i2UU0@L#2J?tzz?M94UfA~x^AYk?NZ{mA`wF{gdBk$Bmb5l2sa#{_rp<6pgXpOy zq4XMe0W|*H$#+x!boe~H44MyZT$u#I@j<=?R!tHgz~aq5pDEe;JmQO4TueFu;^Sl- z#QSy$2T>F`&k_e5kXedaw|w)%AXFj|0^tB(YYYC6SXQMuR%fO9ODIfjyJczWuusDs zYAK-(+joIkJdgE#G;L+YOP~3W(gWbpQ|YKu?gTAJSd?%|VlIU8Gr=bfg&?D~69?|% zaJ5^6C)D?HJ8f3s?t8xPE!l}YvM7BmT^uYzy$c^UEh}p*%k(}RSf=5zbdexg4ZA?) zJmdG>FfB*Sz2`+0qlx*`&UrE^;=d+To4amz8a{d1{v@n5JQ~^^vIAE%yLTTte}E zF)87sRpJGJ$)M2{n9&uA42>!p1x-*Y(4xbpB%5uX0!=W@22D^qpox|QXm|(3x&?GD zUcH8w5?g%V_Y$sFU%~|##{a6|J*G$OmtqY+u~NgO>Gsd6 z;`o(vDGS8j(;&PtK4h(Phi%|Wm3+1PqQKu!fp_V5cLDx3kiM)BQ8kmC+3(`rad17UDm>y!R5f58<8<*$b%!4Cw8+JmZF;;$7b(!)dcx0H+F4*vp=;jKEUunZ6+ z`o=g$dt#)DtQZ3!GxYmAc!L)%+wJaZ@}d5vgiPlNx!Na!i7{@AN*x4_QRa;&4!%Vp z*IsyC1YTQ)_dUcfGtln{)#9g>NNZpDj5T|??CXX2y`f<0KRQCZOMVIOmy`$lzb)Rp zUY?!*{Pyj8_;dRD?LK19j*b}qHWc=vf<63^m7UhlR!~V5cwPB9UV~!;g^Vtll9S9 He%t#mu50Uo literal 0 HcmV?d00001 From 1f8e959315a92e265b02ffe408ffbaf566051caf Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:30 +0800 Subject: [PATCH 237/309] 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..e13d89ee6 --- /dev/null +++ b/lib/Model/ReplaceSlotResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\ReplaceSlotResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 c8456ffae7990b23e3d0c999b921994db6a22ced Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:32 +0800 Subject: [PATCH 238/309] 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..8fcaf6f10 --- /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 12b1aaebb834673552ca23b599f3cb1268c967e0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:33 +0800 Subject: [PATCH 239/309] 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..aeeca04a7 --- /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 916a078bdf099c54a1a40eaddd709c8a15a5c2f6 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:34 +0800 Subject: [PATCH 240/309] 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..e1f1dffd2 --- /dev/null +++ b/lib/Model/SetGameAliveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\SetGameAliveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 e97f5ca480613cc28951b9981ad41fb345322da9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:35 +0800 Subject: [PATCH 241/309] 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..89a5d5e89 --- /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 8a5653c828f89e61632f7b2ff817ebcf0f806944 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:37 +0800 Subject: [PATCH 242/309] 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..94947141f --- /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 d6067efdc1072459aea02f173e944bccc835491b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:38 +0800 Subject: [PATCH 243/309] 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..67d44ca34 --- /dev/null +++ b/lib/Model/SetGameHangResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\SetGameHangResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 8884565bd3b2708a1a97d1c123f585b6001164d2 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:40 +0800 Subject: [PATCH 244/309] 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..f227075b2 --- /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 55d9e49d5f29298bd5b96eb4a3c439df4f4acb1e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:41 +0800 Subject: [PATCH 245/309] 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..8256da42d --- /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 a3b55608bfc58e6045436b6e4babbd4dfcbc9fa9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:42 +0800 Subject: [PATCH 246/309] 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..683718070 --- /dev/null +++ b/lib/Model/StopGameResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\StopGameResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 8cebc49bd7503ec7fa4a6ac467dd4d8308a0cff8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:43 +0800 Subject: [PATCH 247/309] 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..435b305cd --- /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 79d73eeb1ec630edd19246af4ed0418a5f74ca8e Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:45 +0800 Subject: [PATCH 248/309] 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..ca9b69c3d --- /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 8baf828f22120a2967a905ca2ff21f0b11f05a91 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:46 +0800 Subject: [PATCH 249/309] 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..f28b2bc32 --- /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 d07ea5de1dcf3a7df9d744dc453a78984052d3fb Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:48 +0800 Subject: [PATCH 250/309] 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..7071eb7f7 --- /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\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\Model\TryToGetSlotFormsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \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 e578d6307ac3e9f6af3ff5dcf606d771c14237b1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:49 +0800 Subject: [PATCH 251/309] 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..2d9ff85e5 --- /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 d4f843efc714e5817a4d3bfc09600386a2d966da Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:50 +0800 Subject: [PATCH 252/309] 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..20f51052d --- /dev/null +++ b/lib/Model/TryToGetSlotResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\TryToGetSlotResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 c6a4a1d9176edc6dd25f7e1e1ddda1629646bae0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:52 +0800 Subject: [PATCH 253/309] 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..03a128d51 --- /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\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\Model\TryToGetSlotResultModelOperators[] + */ + public function getOperators() + { + return $this->container['operators']; + } + + /** + * Sets operators + * + * @param \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 36b88bd11bdec1d1ba0f5267cd9ab67ce31a0579 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:53 +0800 Subject: [PATCH 254/309] 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..1486c02f4 --- /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 7751cf257d61a88e17231d24063b55990af6b7f9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:54 +0800 Subject: [PATCH 255/309] 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..3ba04f7f7 --- /dev/null +++ b/lib/Model/TryToGetSlotsForms.php @@ -0,0 +1,317 @@ + 'string', +'parallel_schedule' => 'bool', +'requests' => '\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\Model\TryToGetSlotsFormsRequests[] + */ + public function getRequests() + { + return $this->container['requests']; + } + + /** + * Sets requests + * + * @param \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 446fa782ceaf02bea6ef0a2db669ea0b486ca45b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:56 +0800 Subject: [PATCH 256/309] 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..3d4cda491 --- /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\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\Model\TryToGetSlotsFormsRequestsStartParam + */ + public function getStartParam() + { + return $this->container['start_param']; + } + + /** + * Sets start_param + * + * @param \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 d903efb0bfcfb3808e6c01df0ed58382ca4445ec Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:57 +0800 Subject: [PATCH 257/309] 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..71a888a80 --- /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 5124c82eb924b48d36e79026ebb2cfe8502970f0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:15:58 +0800 Subject: [PATCH 258/309] 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..d895062d4 --- /dev/null +++ b/lib/Model/TryToGetSlotsResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\TryToGetSlotsResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 b1b2a03b4f2ff0e6b3b62341eaa9fb5937bd550d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:00 +0800 Subject: [PATCH 259/309] 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..fecbfbe73 --- /dev/null +++ b/lib/Model/TryToGetSlotsResultModel.php @@ -0,0 +1,347 @@ + 'string', +'success' => 'bool', +'responses' => '\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\Model\TryToGetSlotsResultModelResponses[] + */ + public function getResponses() + { + return $this->container['responses']; + } + + /** + * Sets responses + * + * @param \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 9e075f532bece437b763e7ed8d4e0bad42ca8c55 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:01 +0800 Subject: [PATCH 260/309] 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..c437a9fad --- /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 0208da835273637cfa6f046c8a6b4a3c1ee7972d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:02 +0800 Subject: [PATCH 261/309] 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..d74777d8e --- /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 065b38e61b8150cf2c787687d30cf457173354ab Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:04 +0800 Subject: [PATCH 262/309] 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..6945c2779 --- /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 17313121fd6b9361c876963ad8e93f6667d21d6c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:05 +0800 Subject: [PATCH 263/309] 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..1288b3e84 --- /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 fd9ce6959113b9ee90ff097a3babddcc1011ae5d Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:06 +0800 Subject: [PATCH 264/309] 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..28444bd8d --- /dev/null +++ b/lib/Model/UsercontrollerDeleteGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\UsercontrollerDeleteGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 4887b7b27ef7111ae2ec855a18a06b7b9a58f665 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:08 +0800 Subject: [PATCH 265/309] 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..e6fe36f2c --- /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 f1e8317d1350cea5b4f85c7a9d56deca91ce0c52 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:09 +0800 Subject: [PATCH 266/309] 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..160d479d7 --- /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 358820451695e167d91f9125feca11ed47b748bc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:10 +0800 Subject: [PATCH 267/309] 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..67ab6d616 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\UsercontrollerGetGameTrialSurplusDurationResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 b00ad48e6db82cd2955a8683230398871320b133 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:12 +0800 Subject: [PATCH 268/309] 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..f43400e01 --- /dev/null +++ b/lib/Model/UsercontrollerGetGameTrialSurplusDurationResultModel.php @@ -0,0 +1,257 @@ + '\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\Model\UsercontrollerGetGameTrialSurplusDurationResultModelTrialPolicyResponses[] + */ + public function getTrialPolicyResponses() + { + return $this->container['trial_policy_responses']; + } + + /** + * Sets trial_policy_responses + * + * @param \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 0e1f5bac8cc233c5ca8745bd38ad42edd983a84b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:13 +0800 Subject: [PATCH 269/309] 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..aed231189 --- /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 217600428c70a25a4da11a7a239d147bc07cbd63 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:14 +0800 Subject: [PATCH 270/309] 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..3efb1aac3 --- /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 4038e421ff74c19acd2180f2dcf01189c8f985aa Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:16 +0800 Subject: [PATCH 271/309] 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..fcb0781d9 --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\UsercontrollerGetUserGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 8819938bd7a8de668d3309cdaa8b3d6548f54167 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:17 +0800 Subject: [PATCH 272/309] 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..a2c3c43f8 --- /dev/null +++ b/lib/Model/UsercontrollerGetUserGameArchiveResultModel.php @@ -0,0 +1,317 @@ + '\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\Model\UsercontrollerGetUserGameArchiveResultModelUserGameArchiveDTO + */ + public function getUserGameArchiveDto() + { + return $this->container['user_game_archive_dto']; + } + + /** + * Sets user_game_archive_dto + * + * @param \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 823f45ea393d74a40a9f545b997f095c22774346 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:19 +0800 Subject: [PATCH 273/309] 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..1adcbef88 --- /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 03b68ea86f39ccf2ddca78e2811c73269a6fdbe1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:20 +0800 Subject: [PATCH 274/309] 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..dbdc38fc8 --- /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 5b52138ed5e122d010565d63292a5e023ada8989 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:21 +0800 Subject: [PATCH 275/309] 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..41c95c72c --- /dev/null +++ b/lib/Model/UsercontrollerListLatestGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\UsercontrollerListLatestGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 68be56e607020f5ebbb77bf2b6d96f5f7b1bc9cc Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:23 +0800 Subject: [PATCH 276/309] 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..511f98568 --- /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\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\Model\UsercontrollerListLatestGameArchiveResultModelItems[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \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 0f5066e985b6855a57eca05057333e3b970858bd Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:24 +0800 Subject: [PATCH 277/309] 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..d8c3e8659 --- /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 7e5a532424a90cdba05000fa46969b326e86a5e0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:25 +0800 Subject: [PATCH 278/309] 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..2876509c9 --- /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 78cf0d2f0a79d385a707a5d87776d7e0e870e8a5 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:27 +0800 Subject: [PATCH 279/309] 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..d0c189ccb --- /dev/null +++ b/lib/Model/UsercontrollerRestoreGameArchiveResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\UsercontrollerRestoreGameArchiveResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 f9233aac536d82ddfb656605be2bcd1bfde55422 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:28 +0800 Subject: [PATCH 280/309] 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..a8c8383bf --- /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 1c1c04672ba33aa0c9b3f1bc8c39426be9707ca9 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:29 +0800 Subject: [PATCH 281/309] 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..942124c4a --- /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 6bfa6a546553c050361003ea2bad32586c6fda01 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:31 +0800 Subject: [PATCH 282/309] 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..f7015dad8 --- /dev/null +++ b/lib/Model/UsercontrollerUpdateGameArchiveTagStatusResult.php @@ -0,0 +1,347 @@ + 'bool', +'model' => '\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\Model\UsercontrollerUpdateGameArchiveTagStatusResultModel + */ + public function getModel() + { + return $this->container['model']; + } + + /** + * Sets model + * + * @param \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 36c21824bf2119d1cf65b205858151960e614ad0 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:32 +0800 Subject: [PATCH 283/309] 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..dd30a55db --- /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 2cd97973d7421a2281220018ca5c77633880a7ee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:33 +0800 Subject: [PATCH 284/309] 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..dcaa7650d --- /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\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult + */ + public function createAndSubmitAll($varForms) + { + list($response) = $this->createAndSubmitAllWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createAndSubmitAllWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AdaptCreateAndSubmitAllResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createAndSubmitAllWithHttpInfo($varForms) + { + $returnType = '\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\Model\AdaptCreateAndSubmitAllResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createAndSubmitAllAsync + * + * + * + * @param \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\Model\AdaptCreateAndSubmitAllForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createAndSubmitAllAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult + */ + public function queryRequestById($varForms) + { + list($response) = $this->queryRequestByIdWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryRequestByIdWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryRequestByIdWithHttpInfo($varForms) + { + $returnType = '\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\Model\AdaptQueryRequestByIdResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryRequestByIdAsync + * + * + * + * @param \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\Model\AdaptQueryRequestByIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryRequestByIdAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 18a7a1b4afef73ca6ab5564e15b1768b3ee0e569 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:35 +0800 Subject: [PATCH 285/309] feat: update --- lib/Api/AiApi.php | 2692 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2692 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..18c6a1663 --- /dev/null +++ b/lib/Api/AiApi.php @@ -0,0 +1,2692 @@ +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\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult + */ + public function batchUpdateKbVersion($varForms) + { + list($response) = $this->batchUpdateKbVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchUpdateKbVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchUpdateKbVersionWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiBatchUpdateKbVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchUpdateKbVersionAsync + * + * + * + * @param \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\Model\AiBatchUpdateKbVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateKbVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AiCancelQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult + */ + public function cancelQueue($varForms) + { + list($response) = $this->cancelQueueWithHttpInfo($varForms); + return $response; + } + + /** + * Operation cancelQueueWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelQueueWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiCancelQueueResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelQueueAsync + * + * + * + * @param \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\Model\AiCancelQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelQueueAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AiCreateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult + */ + public function createNpcRole($varForms) + { + list($response) = $this->createNpcRoleWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createNpcRoleWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createNpcRoleWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiCreateNpcRoleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createNpcRoleAsync + * + * + * + * @param \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\Model\AiCreateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createNpcRoleAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AiDeleteModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult + */ + public function deleteModels($varForms) + { + list($response) = $this->deleteModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteModelsWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiDeleteModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteModelsAsync + * + * + * + * @param \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\Model\AiDeleteModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 getPrompt + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult + */ + public function getPrompt($varForms) + { + list($response) = $this->getPromptWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getPromptWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getPromptWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult'; + $request = $this->getPromptRequest($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\Model\AiGetPromptResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getPromptAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromptAsync($varForms) + { + return $this->getPromptAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getPromptAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getPromptAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult'; + $request = $this->getPromptRequest($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 'getPrompt' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getPromptRequest($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 getPrompt' + ); + } + + $resourcePath = '/ai/getPrompt'; + $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 getQueue + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult + */ + public function getQueue($varForms) + { + list($response) = $this->getQueueWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getQueueWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getQueueWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiGetQueueResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getQueueAsync + * + * + * + * @param \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\Model\AiGetQueueForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getQueueAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AiListModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult + */ + public function listModels($varForms) + { + list($response) = $this->listModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listModelsWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiListModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listModelsAsync + * + * + * + * @param \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\Model\AiListModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 prompt + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult + */ + public function prompt($varForms) + { + list($response) = $this->promptWithHttpInfo($varForms); + return $response; + } + + /** + * Operation promptWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult, HTTP status code, HTTP response headers (array of strings) + */ + public function promptWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult'; + $request = $this->promptRequest($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\Model\AiPromptResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation promptAsync + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function promptAsync($varForms) + { + return $this->promptAsyncWithHttpInfo($varForms) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation promptAsyncWithHttpInfo + * + * + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function promptAsyncWithHttpInfo($varForms) + { + $returnType = '\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult'; + $request = $this->promptRequest($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 'prompt' + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function promptRequest($varForms) + { + // verify the required parameter 'scene_type' is set + if ($varForms['scene_type'] === null || (is_array($varForms['scene_type']) && count($varForms['scene_type']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'scene_type\'] when calling prompt' + ); + } + // verify the required parameter 'prompt_param' is set + if ($varForms['prompt_param'] === null || (is_array($varForms['prompt_param']) && count($varForms['prompt_param']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'prompt_param\'] when calling prompt' + ); + } + + $resourcePath = '/ai/prompt'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['sceneType'] = ObjectSerializer::toFormValue($varForms['scene_type']); + $formParams['promptParam'] = ObjectSerializer::toFormValue($varForms['prompt_param']); + if ($varForms['resources'] !== null) { + $formParams['resources'] = ObjectSerializer::toFormValue($varForms['resources']); + } + + $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\Model\AiUpdateModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult + */ + public function updateModels($varForms) + { + list($response) = $this->updateModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateModelsWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiUpdateModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateModelsAsync + * + * + * + * @param \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\Model\AiUpdateModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult + */ + public function updateNpcRole($varForms) + { + list($response) = $this->updateNpcRoleWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateNpcRoleWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateNpcRoleWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiUpdateNpcRoleResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateNpcRoleAsync + * + * + * + * @param \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\Model\AiUpdateNpcRoleForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateNpcRoleAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\AiUploadModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult + */ + public function uploadModels($varForms) + { + list($response) = $this->uploadModelsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation uploadModelsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadModelsWithHttpInfo($varForms) + { + $returnType = '\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\Model\AiUploadModelsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation uploadModelsAsync + * + * + * + * @param \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\Model\AiUploadModelsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadModelsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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_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' + ); + } + // verify the required parameter 'model_series' is set + if ($varForms['model_series'] === null || (is_array($varForms['model_series']) && count($varForms['model_series']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_series\'] when calling uploadModels' + ); + } + // verify the required parameter 'model_file_name' is set + if ($varForms['model_file_name'] === null || (is_array($varForms['model_file_name']) && count($varForms['model_file_name']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'model_file_name\'] when calling uploadModels' + ); + } + // 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 uploadModels' + ); + } + // verify the required parameter 'url' is set + if ($varForms['url'] === null || (is_array($varForms['url']) && count($varForms['url']) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $varForms[\'url\'] when calling uploadModels' + ); + } + + $resourcePath = '/ai/uploadModels'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + + // form params + $formParams['modelType'] = ObjectSerializer::toFormValue($varForms['model_type']); + $formParams['modelFileType'] = ObjectSerializer::toFormValue($varForms['model_file_type']); + $formParams['modelSeries'] = ObjectSerializer::toFormValue($varForms['model_series']); + $formParams['modelFileName'] = ObjectSerializer::toFormValue($varForms['model_file_name']); + $formParams['desc'] = ObjectSerializer::toFormValue($varForms['desc']); + $formParams['url'] = ObjectSerializer::toFormValue($varForms['url']); + + $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 8c5644eadd8e84ba4be1437349586021b21f2854 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:37 +0800 Subject: [PATCH 286/309] 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..4b0e5ccf4 --- /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\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult + */ + public function activateDeployment($varForms) + { + list($response) = $this->activateDeploymentWithHttpInfo($varForms); + return $response; + } + + /** + * Operation activateDeploymentWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult, HTTP status code, HTTP response headers (array of strings) + */ + public function activateDeploymentWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminActivateDeploymentResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation activateDeploymentAsync + * + * + * + * @param \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\Model\ConsoleAdminActivateDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function activateDeploymentAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult + */ + public function adaptGameVersion($varForms) + { + list($response) = $this->adaptGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation adaptGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function adaptGameVersionWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminAdaptGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation adaptGameVersionAsync + * + * + * + * @param \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\Model\ConsoleAdminAdaptGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function adaptGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult + */ + public function addGameToProject($varForms) + { + list($response) = $this->addGameToProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation addGameToProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function addGameToProjectWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminAddGameToProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation addGameToProjectAsync + * + * + * + * @param \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\Model\ConsoleAdminAddGameToProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addGameToProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult + */ + public function batchUpdateDispatchConfig($varForms) + { + list($response) = $this->batchUpdateDispatchConfigWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchUpdateDispatchConfigWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchUpdateDispatchConfigWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminBatchUpdateDispatchConfigResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchUpdateDispatchConfigAsync + * + * + * + * @param \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\Model\ConsoleAdminBatchUpdateDispatchConfigForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchUpdateDispatchConfigAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult + */ + public function createGame($varForms) + { + list($response) = $this->createGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createGameWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminCreateGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createGameAsync + * + * + * + * @param \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\Model\ConsoleAdminCreateGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createGameAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult + */ + public function createOrder($varForms) + { + list($response) = $this->createOrderWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createOrderWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createOrderWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminCreateOrderResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createOrderAsync + * + * + * + * @param \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\Model\ConsoleAdminCreateOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createOrderAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult + */ + public function createProject($varForms) + { + list($response) = $this->createProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation createProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function createProjectWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminCreateProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createProjectAsync + * + * + * + * @param \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\Model\ConsoleAdminCreateProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult + */ + public function deleteGame($varForms) + { + list($response) = $this->deleteGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminDeleteGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameAsync + * + * + * + * @param \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\Model\ConsoleAdminDeleteGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult + */ + public function deleteGameVersion($varForms) + { + list($response) = $this->deleteGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameVersionWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminDeleteGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameVersionAsync + * + * + * + * @param \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\Model\ConsoleAdminDeleteGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult + */ + public function deleteProject($varForms) + { + list($response) = $this->deleteProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteProjectWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminDeleteProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteProjectAsync + * + * + * + * @param \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\Model\ConsoleAdminDeleteProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult + */ + public function getBillFlowInfo($varForms) + { + list($response) = $this->getBillFlowInfoWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getBillFlowInfoWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getBillFlowInfoWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminGetBillFlowInfoResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getBillFlowInfoAsync + * + * + * + * @param \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\Model\ConsoleAdminGetBillFlowInfoForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getBillFlowInfoAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult + */ + public function getGameInstanceContainerRatio($varForms) + { + list($response) = $this->getGameInstanceContainerRatioWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameInstanceContainerRatioWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameInstanceContainerRatioWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminGetGameInstanceContainerRatioResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameInstanceContainerRatioAsync + * + * + * + * @param \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\Model\ConsoleAdminGetGameInstanceContainerRatioForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameInstanceContainerRatioAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult + */ + public function getGameRecommendedInstance($varForms) + { + list($response) = $this->getGameRecommendedInstanceWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameRecommendedInstanceWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameRecommendedInstanceWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminGetGameRecommendedInstanceResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameRecommendedInstanceAsync + * + * + * + * @param \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\Model\ConsoleAdminGetGameRecommendedInstanceForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameRecommendedInstanceAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult + */ + public function getGameVersion($varForms) + { + list($response) = $this->getGameVersionWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameVersionWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameVersionWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminGetGameVersionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameVersionAsync + * + * + * + * @param \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\Model\ConsoleAdminGetGameVersionForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult + */ + public function getGameVersionProgress($varForms) + { + list($response) = $this->getGameVersionProgressWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameVersionProgressWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameVersionProgressWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminGetGameVersionProgressResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameVersionProgressAsync + * + * + * + * @param \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\Model\ConsoleAdminGetGameVersionProgressForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameVersionProgressAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult + */ + public function getOrder($varForms) + { + list($response) = $this->getOrderWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getOrderWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrderWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminGetOrderResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getOrderAsync + * + * + * + * @param \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\Model\ConsoleAdminGetOrderForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getOrderAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult + */ + public function listActivateableInstances($varForms) + { + list($response) = $this->listActivateableInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listActivateableInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listActivateableInstancesWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListActivateableInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listActivateableInstancesAsync + * + * + * + * @param \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\Model\ConsoleAdminListActivateableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivateableInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult + */ + public function listActivatedInstances($varForms) + { + list($response) = $this->listActivatedInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listActivatedInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listActivatedInstancesWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListActivatedInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listActivatedInstancesAsync + * + * + * + * @param \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\Model\ConsoleAdminListActivatedInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listActivatedInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult + */ + public function listControllersOfGame($varForms) + { + list($response) = $this->listControllersOfGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listControllersOfGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listControllersOfGameWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListControllersOfGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listControllersOfGameAsync + * + * + * + * @param \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\Model\ConsoleAdminListControllersOfGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listControllersOfGameAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult + */ + public function listDeployableInstances($varForms) + { + list($response) = $this->listDeployableInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listDeployableInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listDeployableInstancesWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListDeployableInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listDeployableInstancesAsync + * + * + * + * @param \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\Model\ConsoleAdminListDeployableInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listDeployableInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult + */ + public function listGameCcu($varForms) + { + list($response) = $this->listGameCcuWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameCcuWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameCcuWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListGameCcuResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameCcuAsync + * + * + * + * @param \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\Model\ConsoleAdminListGameCcuForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameCcuAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult + */ + public function listGameDeployDetailsOfProject($varForms) + { + list($response) = $this->listGameDeployDetailsOfProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameDeployDetailsOfProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameDeployDetailsOfProjectWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListGameDeployDetailsOfProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameDeployDetailsOfProjectAsync + * + * + * + * @param \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\Model\ConsoleAdminListGameDeployDetailsOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameDeployDetailsOfProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult + */ + public function listGameVersions($varForms) + { + list($response) = $this->listGameVersionsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameVersionsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameVersionsWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListGameVersionsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameVersionsAsync + * + * + * + * @param \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\Model\ConsoleAdminListGameVersionsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameVersionsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult + */ + public function listGames($varForms) + { + list($response) = $this->listGamesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGamesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGamesWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListGamesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGamesAsync + * + * + * + * @param \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\Model\ConsoleAdminListGamesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGamesAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult + */ + public function listInstancesOfProject($varForms) + { + list($response) = $this->listInstancesOfProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listInstancesOfProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listInstancesOfProjectWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListInstancesOfProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listInstancesOfProjectAsync + * + * + * + * @param \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\Model\ConsoleAdminListInstancesOfProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listInstancesOfProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult + */ + public function listMonthBill($varForms) + { + list($response) = $this->listMonthBillWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listMonthBillWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listMonthBillWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListMonthBillResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listMonthBillAsync + * + * + * + * @param \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\Model\ConsoleAdminListMonthBillForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMonthBillAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult + */ + public function listProjects($varForms) + { + list($response) = $this->listProjectsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listProjectsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listProjectsWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListProjectsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listProjectsAsync + * + * + * + * @param \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\Model\ConsoleAdminListProjectsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listProjectsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult + */ + public function listVersionDeployInstances($varForms) + { + list($response) = $this->listVersionDeployInstancesWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listVersionDeployInstancesWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listVersionDeployInstancesWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminListVersionDeployInstancesResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listVersionDeployInstancesAsync + * + * + * + * @param \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\Model\ConsoleAdminListVersionDeployInstancesForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listVersionDeployInstancesAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult + */ + public function queryAdaptResultByVersionId($varForms) + { + list($response) = $this->queryAdaptResultByVersionIdWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryAdaptResultByVersionIdWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryAdaptResultByVersionIdWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminQueryAdaptResultByVersionIdResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryAdaptResultByVersionIdAsync + * + * + * + * @param \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\Model\ConsoleAdminQueryAdaptResultByVersionIdForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAdaptResultByVersionIdAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult + */ + public function recommendSpecification($varForms) + { + list($response) = $this->recommendSpecificationWithHttpInfo($varForms); + return $response; + } + + /** + * Operation recommendSpecificationWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function recommendSpecificationWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminRecommendSpecificationResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation recommendSpecificationAsync + * + * + * + * @param \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\Model\ConsoleAdminRecommendSpecificationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function recommendSpecificationAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult + */ + public function removeGameFromProject($varForms) + { + list($response) = $this->removeGameFromProjectWithHttpInfo($varForms); + return $response; + } + + /** + * Operation removeGameFromProjectWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult, HTTP status code, HTTP response headers (array of strings) + */ + public function removeGameFromProjectWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminRemoveGameFromProjectResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation removeGameFromProjectAsync + * + * + * + * @param \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\Model\ConsoleAdminRemoveGameFromProjectForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeGameFromProjectAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult + */ + public function rtOverView($varForms) + { + list($response) = $this->rtOverViewWithHttpInfo($varForms); + return $response; + } + + /** + * Operation rtOverViewWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult, HTTP status code, HTTP response headers (array of strings) + */ + public function rtOverViewWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminRtOverViewResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation rtOverViewAsync + * + * + * + * @param \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\Model\ConsoleAdminRtOverViewForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtOverViewAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult + */ + public function rtTrend($varForms) + { + list($response) = $this->rtTrendWithHttpInfo($varForms); + return $response; + } + + /** + * Operation rtTrendWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult, HTTP status code, HTTP response headers (array of strings) + */ + public function rtTrendWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminRtTrendResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation rtTrendAsync + * + * + * + * @param \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\Model\ConsoleAdminRtTrendForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function rtTrendAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult + */ + public function submitDeployment($varForms) + { + list($response) = $this->submitDeploymentWithHttpInfo($varForms); + return $response; + } + + /** + * Operation submitDeploymentWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult, HTTP status code, HTTP response headers (array of strings) + */ + public function submitDeploymentWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminSubmitDeploymentResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitDeploymentAsync + * + * + * + * @param \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\Model\ConsoleAdminSubmitDeploymentForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitDeploymentAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult + */ + public function submitRefund($varForms) + { + list($response) = $this->submitRefundWithHttpInfo($varForms); + return $response; + } + + /** + * Operation submitRefundWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult, HTTP status code, HTTP response headers (array of strings) + */ + public function submitRefundWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminSubmitRefundResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation submitRefundAsync + * + * + * + * @param \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\Model\ConsoleAdminSubmitRefundForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitRefundAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult + */ + public function uploadGameVersionByDownload($varForms) + { + list($response) = $this->uploadGameVersionByDownloadWithHttpInfo($varForms); + return $response; + } + + /** + * Operation uploadGameVersionByDownloadWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadGameVersionByDownloadWithHttpInfo($varForms) + { + $returnType = '\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\Model\ConsoleAdminUploadGameVersionByDownloadResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation uploadGameVersionByDownloadAsync + * + * + * + * @param \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\Model\ConsoleAdminUploadGameVersionByDownloadForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadGameVersionByDownloadAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 81147f504d869f358b3ec34b9d009c71f92e45ba Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:39 +0800 Subject: [PATCH 287/309] 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..948980a39 --- /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\Model\BatchStopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult + */ + public function batchStopGame($varForms) + { + list($response) = $this->batchStopGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation batchStopGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function batchStopGameWithHttpInfo($varForms) + { + $returnType = '\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\Model\BatchStopGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation batchStopGameAsync + * + * + * + * @param \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\Model\BatchStopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function batchStopGameAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\CancelGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult + */ + public function cancelGameHang($varForms) + { + list($response) = $this->cancelGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation cancelGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelGameHangWithHttpInfo($varForms) + { + $returnType = '\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\Model\CancelGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelGameHangAsync + * + * + * + * @param \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\Model\CancelGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ClientNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult + */ + public function clientNotify($varForms) + { + list($response) = $this->clientNotifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation clientNotifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function clientNotifyWithHttpInfo($varForms) + { + $returnType = '\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\Model\ClientNotifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation clientNotifyAsync + * + * + * + * @param \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\Model\ClientNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function clientNotifyAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\GameNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult + */ + public function gameNotify($varForms) + { + list($response) = $this->gameNotifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation gameNotifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function gameNotifyWithHttpInfo($varForms) + { + $returnType = '\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\Model\GameNotifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation gameNotifyAsync + * + * + * + * @param \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\Model\GameNotifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function gameNotifyAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\GetGameConcurrencyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult + */ + public function getGameConcurrency($varForms) + { + list($response) = $this->getGameConcurrencyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameConcurrencyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameConcurrencyWithHttpInfo($varForms) + { + $returnType = '\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\Model\GetGameConcurrencyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameConcurrencyAsync + * + * + * + * @param \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\Model\GetGameConcurrencyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameConcurrencyAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\GetStockForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult + */ + public function getStock($varForms) + { + list($response) = $this->getStockWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getStockWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\GetStockForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getStockWithHttpInfo($varForms) + { + $returnType = '\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\Model\GetStockResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStockAsync + * + * + * + * @param \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\Model\GetStockForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStockAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\GetStopGameTokenForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult + */ + public function getStopGameToken($varForms) + { + list($response) = $this->getStopGameTokenWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getStopGameTokenWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getStopGameTokenWithHttpInfo($varForms) + { + $returnType = '\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\Model\GetStopGameTokenResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getStopGameTokenAsync + * + * + * + * @param \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\Model\GetStopGameTokenForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getStopGameTokenAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ListGameServerIpForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult + */ + public function listGameServerIp($varForms) + { + list($response) = $this->listGameServerIpWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listGameServerIpWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listGameServerIpWithHttpInfo($varForms) + { + $returnType = '\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\Model\ListGameServerIpResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listGameServerIpAsync + * + * + * + * @param \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\Model\ListGameServerIpForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listGameServerIpAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\QueryGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult + */ + public function queryGameHang($varForms) + { + list($response) = $this->queryGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryGameHangWithHttpInfo($varForms) + { + $returnType = '\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\Model\QueryGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryGameHangAsync + * + * + * + * @param \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\Model\QueryGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\QuerySessionStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult + */ + public function querySessionStatus($varForms) + { + list($response) = $this->querySessionStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation querySessionStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function querySessionStatusWithHttpInfo($varForms) + { + $returnType = '\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\Model\QuerySessionStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation querySessionStatusAsync + * + * + * + * @param \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\Model\QuerySessionStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function querySessionStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\ReplaceSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult + */ + public function replaceSlot($varForms) + { + list($response) = $this->replaceSlotWithHttpInfo($varForms); + return $response; + } + + /** + * Operation replaceSlotWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult, HTTP status code, HTTP response headers (array of strings) + */ + public function replaceSlotWithHttpInfo($varForms) + { + $returnType = '\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\Model\ReplaceSlotResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation replaceSlotAsync + * + * + * + * @param \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\Model\ReplaceSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function replaceSlotAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\SetGameAliveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult + */ + public function setGameAlive($varForms) + { + list($response) = $this->setGameAliveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation setGameAliveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function setGameAliveWithHttpInfo($varForms) + { + $returnType = '\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\Model\SetGameAliveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation setGameAliveAsync + * + * + * + * @param \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\Model\SetGameAliveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameAliveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\SetGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult + */ + public function setGameHang($varForms) + { + list($response) = $this->setGameHangWithHttpInfo($varForms); + return $response; + } + + /** + * Operation setGameHangWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult, HTTP status code, HTTP response headers (array of strings) + */ + public function setGameHangWithHttpInfo($varForms) + { + $returnType = '\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\Model\SetGameHangResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation setGameHangAsync + * + * + * + * @param \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\Model\SetGameHangForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function setGameHangAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\StopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult + */ + public function stopGame($varForms) + { + list($response) = $this->stopGameWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopGameWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\StopGameForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopGameWithHttpInfo($varForms) + { + $returnType = '\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\Model\StopGameResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopGameAsync + * + * + * + * @param \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\Model\StopGameForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\StopPreopenContainerForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult + */ + public function stopPreopenContainer($varForms) + { + list($response) = $this->stopPreopenContainerWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopPreopenContainerWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopPreopenContainerWithHttpInfo($varForms) + { + $returnType = '\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\Model\StopPreopenContainerResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopPreopenContainerAsync + * + * + * + * @param \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\Model\StopPreopenContainerForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopPreopenContainerAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\TryToGetSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult + */ + public function tryToGetSlot($varForms) + { + list($response) = $this->tryToGetSlotWithHttpInfo($varForms); + return $response; + } + + /** + * Operation tryToGetSlotWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult, HTTP status code, HTTP response headers (array of strings) + */ + public function tryToGetSlotWithHttpInfo($varForms) + { + $returnType = '\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\Model\TryToGetSlotResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation tryToGetSlotAsync + * + * + * + * @param \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\Model\TryToGetSlotForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\TryToGetSlotsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult + */ + public function tryToGetSlots($varForms) + { + list($response) = $this->tryToGetSlotsWithHttpInfo($varForms); + return $response; + } + + /** + * Operation tryToGetSlotsWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult, HTTP status code, HTTP response headers (array of strings) + */ + public function tryToGetSlotsWithHttpInfo($varForms) + { + $returnType = '\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\Model\TryToGetSlotsResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation tryToGetSlotsAsync + * + * + * + * @param \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\Model\TryToGetSlotsForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function tryToGetSlotsAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult + */ + public function updatePreopenStrategy($varForms) + { + list($response) = $this->updatePreopenStrategyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updatePreopenStrategyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updatePreopenStrategyWithHttpInfo($varForms) + { + $returnType = '\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\Model\UpdatePreopenStrategyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updatePreopenStrategyAsync + * + * + * + * @param \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\Model\UpdatePreopenStrategyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updatePreopenStrategyAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 e3a0f3ef546eb4a59fc9db817520a5bd9816b836 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:40 +0800 Subject: [PATCH 288/309] 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..461ac7f68 --- /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\Model\LiveQueryStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult + */ + public function queryStatus($varForms) + { + list($response) = $this->queryStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryStatusWithHttpInfo($varForms) + { + $returnType = '\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\Model\LiveQueryStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryStatusAsync + * + * + * + * @param \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\Model\LiveQueryStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\LiveStartGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult + */ + public function startGameLive($varForms) + { + list($response) = $this->startGameLiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation startGameLiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function startGameLiveWithHttpInfo($varForms) + { + $returnType = '\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\Model\LiveStartGameLiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation startGameLiveAsync + * + * + * + * @param \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\Model\LiveStartGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function startGameLiveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\LiveStopGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult + */ + public function stopGameLive($varForms) + { + list($response) = $this->stopGameLiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation stopGameLiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function stopGameLiveWithHttpInfo($varForms) + { + $returnType = '\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\Model\LiveStopGameLiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation stopGameLiveAsync + * + * + * + * @param \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\Model\LiveStopGameLiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function stopGameLiveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 c8a4e5e8c6ccdf837ad2a2a84d4a885069d57642 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:42 +0800 Subject: [PATCH 289/309] 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..2af16b968 --- /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\Model\MultiplayCloseForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult + */ + public function close($varForms) + { + list($response) = $this->closeWithHttpInfo($varForms); + return $response; + } + + /** + * Operation closeWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult, HTTP status code, HTTP response headers (array of strings) + */ + public function closeWithHttpInfo($varForms) + { + $returnType = '\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\Model\MultiplayCloseResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation closeAsync + * + * + * + * @param \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\Model\MultiplayCloseForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function closeAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\MultiplayInitForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult + */ + public function init($varForms) + { + list($response) = $this->initWithHttpInfo($varForms); + return $response; + } + + /** + * Operation initWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult, HTTP status code, HTTP response headers (array of strings) + */ + public function initWithHttpInfo($varForms) + { + $returnType = '\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\Model\MultiplayInitResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation initAsync + * + * + * + * @param \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\Model\MultiplayInitForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function initAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\MultiplayJoinForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult + */ + public function join($varForms) + { + list($response) = $this->joinWithHttpInfo($varForms); + return $response; + } + + /** + * Operation joinWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult, HTTP status code, HTTP response headers (array of strings) + */ + public function joinWithHttpInfo($varForms) + { + $returnType = '\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\Model\MultiplayJoinResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation joinAsync + * + * + * + * @param \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\Model\MultiplayJoinForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function joinAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\MultiplayLeaveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult + */ + public function leave($varForms) + { + list($response) = $this->leaveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation leaveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function leaveWithHttpInfo($varForms) + { + $returnType = '\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\Model\MultiplayLeaveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation leaveAsync + * + * + * + * @param \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\Model\MultiplayLeaveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function leaveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\MultiplayModifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult + */ + public function modify($varForms) + { + list($response) = $this->modifyWithHttpInfo($varForms); + return $response; + } + + /** + * Operation modifyWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult, HTTP status code, HTTP response headers (array of strings) + */ + public function modifyWithHttpInfo($varForms) + { + $returnType = '\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\Model\MultiplayModifyResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation modifyAsync + * + * + * + * @param \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\Model\MultiplayModifyForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function modifyAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\MultiplayQueryForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult + */ + public function query($varForms) + { + list($response) = $this->queryWithHttpInfo($varForms); + return $response; + } + + /** + * Operation queryWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult, HTTP status code, HTTP response headers (array of strings) + */ + public function queryWithHttpInfo($varForms) + { + $returnType = '\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\Model\MultiplayQueryResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation queryAsync + * + * + * + * @param \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\Model\MultiplayQueryForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function queryAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 5a8a9e59b2af18e9f464f277aebf9364efcdc70a Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:44 +0800 Subject: [PATCH 290/309] 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..b6ef70ec0 --- /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\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult + */ + public function getPair() + { + list($response) = $this->getPairWithHttpInfo(); + return $response; + } + + /** + * Operation getPairWithHttpInfo + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getPairWithHttpInfo() + { + $returnType = '\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\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\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\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult + */ + public function getTriple() + { + list($response) = $this->getTripleWithHttpInfo(); + return $response; + } + + /** + * Operation getTripleWithHttpInfo + * + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getTripleWithHttpInfo() + { + $returnType = '\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\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\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 030e356086b7fadcb5d7bbc7bf967db12c412032 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:45 +0800 Subject: [PATCH 291/309] 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..39dbd902d --- /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\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult + */ + public function deleteGameArchive($varForms) + { + list($response) = $this->deleteGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation deleteGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteGameArchiveWithHttpInfo($varForms) + { + $returnType = '\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\Model\UsercontrollerDeleteGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteGameArchiveAsync + * + * + * + * @param \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\Model\UsercontrollerDeleteGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult + */ + public function getGameTrialSurplusDuration($varForms) + { + list($response) = $this->getGameTrialSurplusDurationWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getGameTrialSurplusDurationWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getGameTrialSurplusDurationWithHttpInfo($varForms) + { + $returnType = '\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\Model\UsercontrollerGetGameTrialSurplusDurationResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGameTrialSurplusDurationAsync + * + * + * + * @param \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\Model\UsercontrollerGetGameTrialSurplusDurationForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGameTrialSurplusDurationAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult + */ + public function getUserGameArchive($varForms) + { + list($response) = $this->getUserGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation getUserGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function getUserGameArchiveWithHttpInfo($varForms) + { + $returnType = '\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\Model\UsercontrollerGetUserGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getUserGameArchiveAsync + * + * + * + * @param \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\Model\UsercontrollerGetUserGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getUserGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult + */ + public function listLatestGameArchive($varForms) + { + list($response) = $this->listLatestGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation listLatestGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function listLatestGameArchiveWithHttpInfo($varForms) + { + $returnType = '\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\Model\UsercontrollerListLatestGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listLatestGameArchiveAsync + * + * + * + * @param \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\Model\UsercontrollerListLatestGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listLatestGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult + */ + public function restoreGameArchive($varForms) + { + list($response) = $this->restoreGameArchiveWithHttpInfo($varForms); + return $response; + } + + /** + * Operation restoreGameArchiveWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult, HTTP status code, HTTP response headers (array of strings) + */ + public function restoreGameArchiveWithHttpInfo($varForms) + { + $returnType = '\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\Model\UsercontrollerRestoreGameArchiveResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation restoreGameArchiveAsync + * + * + * + * @param \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\Model\UsercontrollerRestoreGameArchiveForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function restoreGameArchiveAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult + */ + public function updateGameArchiveTagStatus($varForms) + { + list($response) = $this->updateGameArchiveTagStatusWithHttpInfo($varForms); + return $response; + } + + /** + * Operation updateGameArchiveTagStatusWithHttpInfo + * + * @param \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \Yjopenapi\Client\Yjopenapi\Client\Api\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerUpdateGameArchiveTagStatusResult, HTTP status code, HTTP response headers (array of strings) + */ + public function updateGameArchiveTagStatusWithHttpInfo($varForms) + { + $returnType = '\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\Model\UsercontrollerUpdateGameArchiveTagStatusResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateGameArchiveTagStatusAsync + * + * + * + * @param \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\Model\UsercontrollerUpdateGameArchiveTagStatusForms $varForms + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateGameArchiveTagStatusAsyncWithHttpInfo($varForms) + { + $returnType = '\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\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 e178a21131ea56fca64108dcbf6e0c2737aa3aa1 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:46 +0800 Subject: [PATCH 292/309] 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..8ed150f4f --- /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 a2520103c9cc33bb9d0ab03632fab061dc36d47b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:47 +0800 Subject: [PATCH 293/309] 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..ce413de1b --- /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 b990902860ddcdcab4f219b4c7ffa03185fbf544 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:49 +0800 Subject: [PATCH 294/309] 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..cce7bb5f6 --- /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 8ca23e95e550a34428b56d808a109b0b0597108c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:50 +0800 Subject: [PATCH 295/309] 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..44e83ea97 --- /dev/null +++ b/lib/Model/ModelInterface.php @@ -0,0 +1,74 @@ + Date: Wed, 16 Oct 2024 00:16:51 +0800 Subject: [PATCH 296/309] 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..f4e279c32 --- /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 3988ad7c8aaf4c5122c647a04f69e63397887309 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:52 +0800 Subject: [PATCH 297/309] 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 41c4594325a09ec92415384cf920476fa612d713 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:54 +0800 Subject: [PATCH 298/309] feat: update --- README.md | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..0693f8ac5 --- /dev/null +++ b/README.md @@ -0,0 +1,155 @@ +![](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.20241016 +``` + +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\Model\AdaptCreateAndSubmitAllResult* | createAndSubmitAll | + | *AdaptApi* | **queryRequestById** | *queryRequestByIdForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AdaptQueryRequestByIdResult* | queryRequestById | + | *AiApi* | **batchUpdateKbVersion** | *batchUpdateKbVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiBatchUpdateKbVersionResult* | | + | *AiApi* | **cancelQueue** | *cancelQueueForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiCancelQueueResult* | 取消排队 | + | *AiApi* | **createNpcRole** | *createNpcRoleForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiCreateNpcRoleResult* | | + | *AiApi* | **deleteModels** | *deleteModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiDeleteModelsResult* | 删除私有模型 | + | *AiApi* | **getPrompt** | *getPromptForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetPromptResult* | 查询推理结果 | + | *AiApi* | **getQueue** | *getQueueForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiGetQueueResult* | 查询排队 | + | *AiApi* | **listModels** | *listModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiListModelsResult* | 查看私有模型列表 | + | *AiApi* | **prompt** | *promptForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiPromptResult* | 场景化推理 | + | *AiApi* | **updateModels** | *updateModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateModelsResult* | 修改私有模型信息 | + | *AiApi* | **updateNpcRole** | *updateNpcRoleForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiUpdateNpcRoleResult* | | + | *AiApi* | **uploadModels** | *uploadModelsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\AiUploadModelsResult* | 上传私有模型 | + | *ConsoleAdminApi* | **activateDeployment** | *activateDeploymentForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminActivateDeploymentResult* | | + | *ConsoleAdminApi* | **adaptGameVersion** | *adaptGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAdaptGameVersionResult* | | + | *ConsoleAdminApi* | **addGameToProject** | *addGameToProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminAddGameToProjectResult* | | + | *ConsoleAdminApi* | **batchUpdateDispatchConfig** | *batchUpdateDispatchConfigForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminBatchUpdateDispatchConfigResult* | 批量更新游戏各自调度配置 | + | *ConsoleAdminApi* | **createGame** | *createGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateGameResult* | | + | *ConsoleAdminApi* | **createOrder** | *createOrderForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateOrderResult* | 订单下单 | + | *ConsoleAdminApi* | **createProject** | *createProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminCreateProjectResult* | | + | *ConsoleAdminApi* | **deleteGame** | *deleteGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameResult* | | + | *ConsoleAdminApi* | **deleteGameVersion** | *deleteGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteGameVersionResult* | | + | *ConsoleAdminApi* | **deleteProject** | *deleteProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminDeleteProjectResult* | | + | *ConsoleAdminApi* | **getBillFlowInfo** | *getBillFlowInfoForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetBillFlowInfoResult* | | + | *ConsoleAdminApi* | **getGameInstanceContainerRatio** | *getGameInstanceContainerRatioForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameInstanceContainerRatioResult* | | + | *ConsoleAdminApi* | **getGameRecommendedInstance** | *getGameRecommendedInstanceForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameRecommendedInstanceResult* | | + | *ConsoleAdminApi* | **getGameVersion** | *getGameVersionForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionResult* | | + | *ConsoleAdminApi* | **getGameVersionProgress** | *getGameVersionProgressForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetGameVersionProgressResult* | | + | *ConsoleAdminApi* | **getOrder** | *getOrderForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminGetOrderResult* | 查询订单 | + | *ConsoleAdminApi* | **listActivateableInstances** | *listActivateableInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivateableInstancesResult* | | + | *ConsoleAdminApi* | **listActivatedInstances** | *listActivatedInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListActivatedInstancesResult* | | + | *ConsoleAdminApi* | **listControllersOfGame** | *listControllersOfGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListControllersOfGameResult* | | + | *ConsoleAdminApi* | **listDeployableInstances** | *listDeployableInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListDeployableInstancesResult* | | + | *ConsoleAdminApi* | **listGameCcu** | *listGameCcuForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameCcuResult* | 分游戏实时并发 | + | *ConsoleAdminApi* | **listGameDeployDetailsOfProject** | *listGameDeployDetailsOfProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameDeployDetailsOfProjectResult* | 获取项目下游戏部署版本信息。 | + | *ConsoleAdminApi* | **listGameVersions** | *listGameVersionsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGameVersionsResult* | | + | *ConsoleAdminApi* | **listGames** | *listGamesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListGamesResult* | | + | *ConsoleAdminApi* | **listInstancesOfProject** | *listInstancesOfProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListInstancesOfProjectResult* | 分页获取项目中的实例 | + | *ConsoleAdminApi* | **listMonthBill** | *listMonthBillForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListMonthBillResult* | 月度账单列表 | + | *ConsoleAdminApi* | **listProjects** | *listProjectsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListProjectsResult* | | + | *ConsoleAdminApi* | **listVersionDeployInstances** | *listVersionDeployInstancesForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminListVersionDeployInstancesResult* | 获取项目下游戏版本的部署实例信息。 | + | *ConsoleAdminApi* | **queryAdaptResultByVersionId** | *queryAdaptResultByVersionIdForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminQueryAdaptResultByVersionIdResult* | 查询适配结果 | + | *ConsoleAdminApi* | **recommendSpecification** | *recommendSpecificationForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRecommendSpecificationResult* | | + | *ConsoleAdminApi* | **removeGameFromProject** | *removeGameFromProjectForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRemoveGameFromProjectResult* | | + | *ConsoleAdminApi* | **rtOverView** | *rtOverViewForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtOverViewResult* | 实时并发数 | + | *ConsoleAdminApi* | **rtTrend** | *rtTrendForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminRtTrendResult* | 实时并发趋势图 | + | *ConsoleAdminApi* | **submitDeployment** | *submitDeploymentForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitDeploymentResult* | | + | *ConsoleAdminApi* | **submitRefund** | *submitRefundForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminSubmitRefundResult* | 订单退订 | + | *ConsoleAdminApi* | **uploadGameVersionByDownload** | *uploadGameVersionByDownloadForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ConsoleAdminUploadGameVersionByDownloadResult* | | + | *DispatchApi* | **batchStopGame** | *batchStopGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\BatchStopGameResult* | | + | *DispatchApi* | **cancelGameHang** | *cancelGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\CancelGameHangResult* | 取消游戏挂机 | + | *DispatchApi* | **clientNotify** | *clientNotifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ClientNotifyResult* | clientNotify | + | *DispatchApi* | **gameNotify** | *gameNotifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\GameNotifyResult* | 游戏通知接口 | + | *DispatchApi* | **getGameConcurrency** | *getGameConcurrencyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\GetGameConcurrencyResult* | 调用GetGameConcurrency获取游戏当前并发数 | + | *DispatchApi* | **getStock** | *getStockForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\GetStockResult* | 调用GetStock获取游戏当前库存 | + | *DispatchApi* | **getStopGameToken** | *getStopGameTokenForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\GetStopGameTokenResult* | 全量踢下线获取token | + | *DispatchApi* | **listGameServerIp** | *listGameServerIpForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ListGameServerIpResult* | | + | *DispatchApi* | **queryGameHang** | *queryGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\QueryGameHangResult* | 查询游戏挂机状态 | + | *DispatchApi* | **querySessionStatus** | *querySessionStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\QuerySessionStatusResult* | 查询会话当前状态 | + | *DispatchApi* | **replaceSlot** | *replaceSlotForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\ReplaceSlotResult* | replaceSlot | + | *DispatchApi* | **setGameAlive** | *setGameAliveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameAliveResult* | 设置游戏可运行时长 | + | *DispatchApi* | **setGameHang** | *setGameHangForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\SetGameHangResult* | 设置游戏挂机 | + | *DispatchApi* | **stopGame** | *stopGameForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\StopGameResult* | 服务端发起,停止某个用户的某个游戏的某个会话 | + | *DispatchApi* | **stopPreopenContainer** | *stopPreopenContainerForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\StopPreopenContainerResult* | 停止预开容器 | + | *DispatchApi* | **tryToGetSlot** | *tryToGetSlotForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotResult* | 为用户调度分配游戏容器,容器一旦分配成功会被锁住,一段时间内不再分配给其他用户,过期释放。 | + | *DispatchApi* | **tryToGetSlots** | *tryToGetSlotsForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\TryToGetSlotsResult* | tryToGetSlots | + | *DispatchApi* | **updatePreopenStrategy** | *updatePreopenStrategyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\UpdatePreopenStrategyResult* | 更新预开预起策略 | + | *LiveApi* | **queryStatus** | *queryStatusForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\LiveQueryStatusResult* | | + | *LiveApi* | **startGameLive** | *startGameLiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStartGameLiveResult* | | + | *LiveApi* | **stopGameLive** | *stopGameLiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\LiveStopGameLiveResult* | | + | *MultiplayApi* | **close** | *closeForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayCloseResult* | | + | *MultiplayApi* | **init** | *initForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayInitResult* | | + | *MultiplayApi* | **join** | *joinForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayJoinResult* | | + | *MultiplayApi* | **leave** | *leaveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayLeaveResult* | | + | *MultiplayApi* | **modify** | *modifyForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayModifyResult* | | + | *MultiplayApi* | **query** | *queryForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\MultiplayQueryResult* | | + | *TokenApi* | **getPair** | | *\Yjopenapi\Client\Yjopenapi\Client\Model\GetPairResult* | 获取临时安全令牌(二元组) | + | *TokenApi* | **getTriple** | | *\Yjopenapi\Client\Yjopenapi\Client\Model\GetTripleResult* | 获取临时安全令牌 | + | *UsercontrollerApi* | **deleteGameArchive** | *deleteGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerDeleteGameArchiveResult* | | + | *UsercontrollerApi* | **getGameTrialSurplusDuration** | *getGameTrialSurplusDurationForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetGameTrialSurplusDurationResult* | | + | *UsercontrollerApi* | **getUserGameArchive** | *getUserGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerGetUserGameArchiveResult* | | + | *UsercontrollerApi* | **listLatestGameArchive** | *listLatestGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerListLatestGameArchiveResult* | | + | *UsercontrollerApi* | **restoreGameArchive** | *restoreGameArchiveForms* | *\Yjopenapi\Client\Yjopenapi\Client\Model\UsercontrollerRestoreGameArchiveResult* | | + | *UsercontrollerApi* | **updateGameArchiveTagStatus** | *updateGameArchiveTagStatusForms* | *\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 7c51958e48295532c9ac22b36bff930db98069b4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:55 +0800 Subject: [PATCH 299/309] feat: update From 392bb086e0967ecace9a07ccf86bbbdc0ea2dce8 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:56 +0800 Subject: [PATCH 300/309] 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 6456171e283ffbbf7eed088443c7e51e32b75279 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:57 +0800 Subject: [PATCH 301/309] feat: update From 244774083693d630d912e6a46680b46ac429b498 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:16:58 +0800 Subject: [PATCH 302/309] feat: update From 3f75f81707819a0976ecf3e7d2d7dfac798334ee Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:00 +0800 Subject: [PATCH 303/309] feat: update From 9852e7a99cf6ac093be007d04bbfc0508a850b3c Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:01 +0800 Subject: [PATCH 304/309] feat: update From 21b74a450635a1bcb9c02c9b419f77fc80ad8a72 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:02 +0800 Subject: [PATCH 305/309] feat: update From 8a34ac27afd6b9710848724b25649fd9cc0646b7 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:03 +0800 Subject: [PATCH 306/309] feat: update From 5e6a8a97e9364a3bc49eb097183d134f870fd571 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:04 +0800 Subject: [PATCH 307/309] feat: update From 7d8455c7b09ee0f507abb3de30e2bc5edec0de0b Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:06 +0800 Subject: [PATCH 308/309] feat: update From 15ee6846e799b5f2c3c762a6064930b9646928d4 Mon Sep 17 00:00:00 2001 From: Iven Date: Wed, 16 Oct 2024 00:17:07 +0800 Subject: [PATCH 309/309] feat: update