diff --git a/src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php b/src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php new file mode 100644 index 0000000..da8eacd --- /dev/null +++ b/src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php @@ -0,0 +1,360 @@ + 'string', + 'opt_time' => 'string', + 'end_time' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'amount' => null, + 'opt_time' => null, + 'end_time' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'amount' => 'amount', + 'opt_time' => 'opt_time', + 'end_time' => 'end_time' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'amount' => 'setAmount', + 'opt_time' => 'setOptTime', + 'end_time' => 'setEndTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'amount' => 'getAmount', + 'opt_time' => 'getOptTime', + 'end_time' => 'getEndTime' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['opt_time'] = isset($data['opt_time']) ? $data['opt_time'] : null; + $this->container['end_time'] = isset($data['end_time']) ? $data['end_time'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount \"amount\" describes the number of token locked + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets opt_time + * + * @return string + */ + public function getOptTime() + { + return $this->container['opt_time']; + } + + /** + * Sets opt_time + * + * @param string $opt_time \"opt_time\" describes when the token was locked + * + * @return $this + */ + public function setOptTime($opt_time) + { + $this->container['opt_time'] = $opt_time; + + return $this; + } + + /** + * Gets end_time + * + * @return string + */ + public function getEndTime() + { + return $this->container['end_time']; + } + + /** + * Sets end_time + * + * @param string $end_time \"end_time\" describes when the token will be unlocked + * + * @return $this + */ + public function setEndTime($end_time) + { + $this->container['end_time'] = $end_time; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php b/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php index 38e8735..377f57a 100644 --- a/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php +++ b/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php @@ -60,7 +60,7 @@ class ResponseWrapperTokenSecurityLpHolders implements ModelInterface, ArrayAcce 'is_contract' => 'int', 'address' => 'string', 'balance' => 'string', - 'locked_detail' => 'string[]', + 'locked_detail' => '\Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[]', 'tag' => 'string', 'percent' => 'string' ]; @@ -336,7 +336,7 @@ public function setBalance($balance) /** * Gets locked_detail * - * @return string[] + * @return \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[] */ public function getLockedDetail() { @@ -346,7 +346,7 @@ public function getLockedDetail() /** * Sets locked_detail * - * @param string[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. In every objetc, \"amount\" describes the number of token locked, \"end_time\" describes when the token will be unlocked, \"opt_time\" describes when the token was locked.(Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) + * @param \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) * * @return $this */