Skip to content

Commit

Permalink
Update client code for ee41599ea21797be07c8a827396f6ec00efddd1e (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
goplusbot authored Jul 6, 2023
1 parent a22b246 commit 6a8230b
Show file tree
Hide file tree
Showing 2 changed files with 363 additions and 3 deletions.
360 changes: 360 additions & 0 deletions src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,360 @@
<?php
/**
* ResponseWrapperTokenSecurityLockedDetail
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/

/**
* GoPlus Security API Document
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.45
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/

namespace Swagger\Client\Model;

use \ArrayAccess;
use \Swagger\Client\ObjectSerializer;

/**
* ResponseWrapperTokenSecurityLockedDetail Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class ResponseWrapperTokenSecurityLockedDetail implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;

/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ResponseWrapperTokenSecurity_locked_detail';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'amount' => '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));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];
Expand Down Expand Up @@ -336,7 +336,7 @@ public function setBalance($balance)
/**
* Gets locked_detail
*
* @return string[]
* @return \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[]
*/
public function getLockedDetail()
{
Expand All @@ -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
*/
Expand Down

0 comments on commit 6a8230b

Please sign in to comment.