allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s

This commit is contained in:
2026-03-30 14:54:57 +07:00
parent 66aed7c4e8
commit b5e3a778ce
21316 changed files with 2777892 additions and 13 deletions

View File

@@ -0,0 +1,447 @@
<?php
/**
* Callback
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* Callback Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class Callback implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'id' => 'string',
'name' => 'string',
'event' => 'string',
'deviceId' => 'int',
'filterType' => 'string',
'filter' => 'string',
'method' => 'string',
'action' => 'string',
'secret' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'id' => 'id',
'name' => 'name',
'event' => 'event',
'deviceId' => 'device_id',
'filterType' => 'filter_type',
'filter' => 'filter',
'method' => 'method',
'action' => 'action',
'secret' => 'secret'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId',
'name' => 'setName',
'event' => 'setEvent',
'deviceId' => 'setDeviceId',
'filterType' => 'setFilterType',
'filter' => 'setFilter',
'method' => 'setMethod',
'action' => 'setAction',
'secret' => 'setSecret'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId',
'name' => 'getName',
'event' => 'getEvent',
'deviceId' => 'getDeviceId',
'filterType' => 'getFilterType',
'filter' => 'getFilter',
'method' => 'getMethod',
'action' => 'getAction',
'secret' => 'getSecret'
);
static function getters() {
return self::$getters;
}
/**
* $id
* @var string
*/
protected $id;
/**
* $name
* @var string
*/
protected $name;
/**
* $event
* @var string
*/
protected $event;
/**
* $deviceId
* @var int
*/
protected $deviceId;
/**
* $filterType
* @var string
*/
protected $filterType;
/**
* $filter
* @var string
*/
protected $filter;
/**
* $method
* @var string
*/
protected $method;
/**
* $action
* @var string
*/
protected $action;
/**
* $secret
* @var string
*/
protected $secret;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->id = $data["id"];
$this->name = $data["name"];
$this->event = $data["event"];
$this->deviceId = $data["deviceId"];
$this->filterType = $data["filterType"];
$this->filter = $data["filter"];
$this->method = $data["method"];
$this->action = $data["action"];
$this->secret = $data["secret"];
}
}
/**
* Gets id
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param string $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets event
* @return string
*/
public function getEvent()
{
return $this->event;
}
/**
* Sets event
* @param string $event
* @return $this
*/
public function setEvent($event)
{
$this->event = $event;
return $this;
}
/**
* Gets deviceId
* @return int
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Sets deviceId
* @param int $deviceId
* @return $this
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
return $this;
}
/**
* Gets filterType
* @return string
*/
public function getFilterType()
{
return $this->filterType;
}
/**
* Sets filterType
* @param string $filterType
* @return $this
*/
public function setFilterType($filterType)
{
$this->filterType = $filterType;
return $this;
}
/**
* Gets filter
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* Sets filter
* @param string $filter
* @return $this
*/
public function setFilter($filter)
{
$this->filter = $filter;
return $this;
}
/**
* Gets method
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Sets method
* @param string $method
* @return $this
*/
public function setMethod($method)
{
$this->method = $method;
return $this;
}
/**
* Gets action
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Sets action
* @param string $action
* @return $this
*/
public function setAction($action)
{
$this->action = $action;
return $this;
}
/**
* Gets secret
* @return string
*/
public function getSecret()
{
return $this->secret;
}
/**
* Sets secret
* @param string $secret
* @return $this
*/
public function setSecret($secret)
{
$this->secret = $secret;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* CallbackSearchResult
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* CallbackSearchResult Class Doc Comment
*
* @category Class
* @description Callback search results
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class CallbackSearchResult implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'count' => 'int',
'results' => '\SMSGatewayMe\Client\Model\Callback[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'count' => 'count',
'results' => 'results'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'count' => 'setCount',
'results' => 'setResults'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'count' => 'getCount',
'results' => 'getResults'
);
static function getters() {
return self::$getters;
}
/**
* $count Total number of results
* @var int
*/
protected $count;
/**
* $results
* @var \SMSGatewayMe\Client\Model\Callback[]
*/
protected $results;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->count = $data["count"];
$this->results = $data["results"];
}
}
/**
* Gets count
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Sets count
* @param int $count Total number of results
* @return $this
*/
public function setCount($count)
{
$this->count = $count;
return $this;
}
/**
* Gets results
* @return \SMSGatewayMe\Client\Model\Callback[]
*/
public function getResults()
{
return $this->results;
}
/**
* Sets results
* @param \SMSGatewayMe\Client\Model\Callback[] $results
* @return $this
*/
public function setResults($results)
{
$this->results = $results;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,191 @@
<?php
/**
* CancelMessageRequest
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* CancelMessageRequest Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class CancelMessageRequest implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'id' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'id' => 'id'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId'
);
static function getters() {
return self::$getters;
}
/**
* $id The id of the message you wish to cancel
* @var int
*/
protected $id;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->id = $data["id"];
}
}
/**
* Gets id
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param int $id The id of the message you wish to cancel
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,319 @@
<?php
/**
* Contact
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* Contact Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class Contact implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'id' => 'int',
'name' => 'string',
'phoneNumbers' => 'string[]',
'createdAt' => '\DateTime',
'updatedAt' => '\DateTime'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'id' => 'id',
'name' => 'name',
'phoneNumbers' => 'phone_numbers',
'createdAt' => 'created_at',
'updatedAt' => 'updated_at'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId',
'name' => 'setName',
'phoneNumbers' => 'setPhoneNumbers',
'createdAt' => 'setCreatedAt',
'updatedAt' => 'setUpdatedAt'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId',
'name' => 'getName',
'phoneNumbers' => 'getPhoneNumbers',
'createdAt' => 'getCreatedAt',
'updatedAt' => 'getUpdatedAt'
);
static function getters() {
return self::$getters;
}
/**
* $id
* @var int
*/
protected $id;
/**
* $name
* @var string
*/
protected $name;
/**
* $phoneNumbers
* @var string[]
*/
protected $phoneNumbers;
/**
* $createdAt
* @var \DateTime
*/
protected $createdAt;
/**
* $updatedAt
* @var \DateTime
*/
protected $updatedAt;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->id = $data["id"];
$this->name = $data["name"];
$this->phoneNumbers = $data["phoneNumbers"];
$this->createdAt = $data["createdAt"];
$this->updatedAt = $data["updatedAt"];
}
}
/**
* Gets id
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param int $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets phoneNumbers
* @return string[]
*/
public function getPhoneNumbers()
{
return $this->phoneNumbers;
}
/**
* Sets phoneNumbers
* @param string[] $phoneNumbers
* @return $this
*/
public function setPhoneNumbers($phoneNumbers)
{
$this->phoneNumbers = $phoneNumbers;
return $this;
}
/**
* Gets createdAt
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Sets createdAt
* @param \DateTime $createdAt
* @return $this
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Gets updatedAt
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Sets updatedAt
* @param \DateTime $updatedAt
* @return $this
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* ContactSearchResult
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* ContactSearchResult Class Doc Comment
*
* @category Class
* @description Contact search results
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class ContactSearchResult implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'count' => 'int',
'results' => '\SMSGatewayMe\Client\Model\Contact[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'count' => 'count',
'results' => 'results'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'count' => 'setCount',
'results' => 'setResults'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'count' => 'getCount',
'results' => 'getResults'
);
static function getters() {
return self::$getters;
}
/**
* $count Total number of results
* @var int
*/
protected $count;
/**
* $results
* @var \SMSGatewayMe\Client\Model\Contact[]
*/
protected $results;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->count = $data["count"];
$this->results = $data["results"];
}
}
/**
* Gets count
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Sets count
* @param int $count Total number of results
* @return $this
*/
public function setCount($count)
{
$this->count = $count;
return $this;
}
/**
* Gets results
* @return \SMSGatewayMe\Client\Model\Contact[]
*/
public function getResults()
{
return $this->results;
}
/**
* Sets results
* @param \SMSGatewayMe\Client\Model\Contact[] $results
* @return $this
*/
public function setResults($results)
{
$this->results = $results;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,421 @@
<?php
/**
* CreateCallbackRequest
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* CreateCallbackRequest Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class CreateCallbackRequest implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'name' => 'string',
'event' => 'string',
'deviceId' => 'int',
'filterType' => 'string',
'filter' => 'string',
'method' => 'string',
'action' => 'string',
'secret' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'name' => 'name',
'event' => 'event',
'deviceId' => 'device_id',
'filterType' => 'filter_type',
'filter' => 'filter',
'method' => 'method',
'action' => 'action',
'secret' => 'secret'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'name' => 'setName',
'event' => 'setEvent',
'deviceId' => 'setDeviceId',
'filterType' => 'setFilterType',
'filter' => 'setFilter',
'method' => 'setMethod',
'action' => 'setAction',
'secret' => 'setSecret'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'name' => 'getName',
'event' => 'getEvent',
'deviceId' => 'getDeviceId',
'filterType' => 'getFilterType',
'filter' => 'getFilter',
'method' => 'getMethod',
'action' => 'getAction',
'secret' => 'getSecret'
);
static function getters() {
return self::$getters;
}
/**
* $name
* @var string
*/
protected $name;
/**
* $event
* @var string
*/
protected $event;
/**
* $deviceId
* @var int
*/
protected $deviceId;
/**
* $filterType
* @var string
*/
protected $filterType;
/**
* $filter
* @var string
*/
protected $filter;
/**
* $method
* @var string
*/
protected $method;
/**
* $action
* @var string
*/
protected $action;
/**
* $secret
* @var string
*/
protected $secret;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->name = $data["name"];
$this->event = $data["event"];
$this->deviceId = $data["deviceId"];
$this->filterType = $data["filterType"];
$this->filter = $data["filter"];
$this->method = $data["method"];
$this->action = $data["action"];
$this->secret = $data["secret"];
}
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets event
* @return string
*/
public function getEvent()
{
return $this->event;
}
/**
* Sets event
* @param string $event
* @return $this
*/
public function setEvent($event)
{
$allowed_values = array("MESSAGE_UPDATED", "MESSAGE_CANCELED", "MESSAGE_DELIVERED", "MESSAGE_FAILED", "MESSAGE_MANUALLY_SENT", "MESSAGE_PENDING", "MESSAGE_QUEUED", "MESSAGE_RECEIVED", "MESSAGE_SENT");
if (!in_array($event, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'event', must be one of 'MESSAGE_UPDATED', 'MESSAGE_CANCELED', 'MESSAGE_DELIVERED', 'MESSAGE_FAILED', 'MESSAGE_MANUALLY_SENT', 'MESSAGE_PENDING', 'MESSAGE_QUEUED', 'MESSAGE_RECEIVED', 'MESSAGE_SENT'");
}
$this->event = $event;
return $this;
}
/**
* Gets deviceId
* @return int
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Sets deviceId
* @param int $deviceId
* @return $this
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
return $this;
}
/**
* Gets filterType
* @return string
*/
public function getFilterType()
{
return $this->filterType;
}
/**
* Sets filterType
* @param string $filterType
* @return $this
*/
public function setFilterType($filterType)
{
$allowed_values = array("Starts With", "Is From", "Contains");
if (!in_array($filterType, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'filterType', must be one of 'Starts With', 'Is From', 'Contains'");
}
$this->filterType = $filterType;
return $this;
}
/**
* Gets filter
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* Sets filter
* @param string $filter
* @return $this
*/
public function setFilter($filter)
{
$this->filter = $filter;
return $this;
}
/**
* Gets method
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Sets method
* @param string $method
* @return $this
*/
public function setMethod($method)
{
$this->method = $method;
return $this;
}
/**
* Gets action
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Sets action
* @param string $action
* @return $this
*/
public function setAction($action)
{
$this->action = $action;
return $this;
}
/**
* Gets secret
* @return string
*/
public function getSecret()
{
return $this->secret;
}
/**
* Sets secret
* @param string $secret
* @return $this
*/
public function setSecret($secret)
{
$this->secret = $secret;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* CreateContactRequest
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* CreateContactRequest Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class CreateContactRequest implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'name' => 'string',
'phoneNumbers' => 'string[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'name' => 'name',
'phoneNumbers' => 'phone_numbers'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'name' => 'setName',
'phoneNumbers' => 'setPhoneNumbers'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'name' => 'getName',
'phoneNumbers' => 'getPhoneNumbers'
);
static function getters() {
return self::$getters;
}
/**
* $name
* @var string
*/
protected $name;
/**
* $phoneNumbers
* @var string[]
*/
protected $phoneNumbers;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->name = $data["name"];
$this->phoneNumbers = $data["phoneNumbers"];
}
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets phoneNumbers
* @return string[]
*/
public function getPhoneNumbers()
{
return $this->phoneNumbers;
}
/**
* Sets phoneNumbers
* @param string[] $phoneNumbers
* @return $this
*/
public function setPhoneNumbers($phoneNumbers)
{
$this->phoneNumbers = $phoneNumbers;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,255 @@
<?php
/**
* Device
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* Device Class Doc Comment
*
* @category Class
* @description Device
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class Device implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'id' => 'int',
'name' => 'string',
'attributes' => '\SMSGatewayMe\Client\Model\DeviceAttributes'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'id' => 'id',
'name' => 'name',
'attributes' => 'attributes'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId',
'name' => 'setName',
'attributes' => 'setAttributes'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId',
'name' => 'getName',
'attributes' => 'getAttributes'
);
static function getters() {
return self::$getters;
}
/**
* $id
* @var int
*/
protected $id;
/**
* $name
* @var string
*/
protected $name;
/**
* $attributes
* @var \SMSGatewayMe\Client\Model\DeviceAttributes
*/
protected $attributes;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->id = $data["id"];
$this->name = $data["name"];
$this->attributes = $data["attributes"];
}
}
/**
* Gets id
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param int $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets attributes
* @return \SMSGatewayMe\Client\Model\DeviceAttributes
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Sets attributes
* @param \SMSGatewayMe\Client\Model\DeviceAttributes $attributes
* @return $this
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,543 @@
<?php
/**
* DeviceAttributes
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* DeviceAttributes Class Doc Comment
*
* @category Class
* @description Device attributes
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class DeviceAttributes implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'phoneNumber' => 'string',
'make' => 'string',
'model' => 'string',
'provider' => 'string',
'country' => 'string',
'connectionType' => 'string',
'battery' => 'string',
'signalPercent' => 'string',
'wifi' => 'bool',
'lat' => 'string',
'lng' => 'string',
'lastSeen' => '\DateTime'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'phoneNumber' => 'phone_number',
'make' => 'make',
'model' => 'model',
'provider' => 'provider',
'country' => 'country',
'connectionType' => 'connection_type',
'battery' => 'battery',
'signalPercent' => 'signal_percent',
'wifi' => 'wifi',
'lat' => 'lat',
'lng' => 'lng',
'lastSeen' => 'last_seen'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'phoneNumber' => 'setPhoneNumber',
'make' => 'setMake',
'model' => 'setModel',
'provider' => 'setProvider',
'country' => 'setCountry',
'connectionType' => 'setConnectionType',
'battery' => 'setBattery',
'signalPercent' => 'setSignalPercent',
'wifi' => 'setWifi',
'lat' => 'setLat',
'lng' => 'setLng',
'lastSeen' => 'setLastSeen'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'phoneNumber' => 'getPhoneNumber',
'make' => 'getMake',
'model' => 'getModel',
'provider' => 'getProvider',
'country' => 'getCountry',
'connectionType' => 'getConnectionType',
'battery' => 'getBattery',
'signalPercent' => 'getSignalPercent',
'wifi' => 'getWifi',
'lat' => 'getLat',
'lng' => 'getLng',
'lastSeen' => 'getLastSeen'
);
static function getters() {
return self::$getters;
}
/**
* $phoneNumber
* @var string
*/
protected $phoneNumber;
/**
* $make
* @var string
*/
protected $make;
/**
* $model
* @var string
*/
protected $model;
/**
* $provider
* @var string
*/
protected $provider;
/**
* $country
* @var string
*/
protected $country;
/**
* $connectionType
* @var string
*/
protected $connectionType;
/**
* $battery
* @var string
*/
protected $battery;
/**
* $signalPercent
* @var string
*/
protected $signalPercent;
/**
* $wifi
* @var bool
*/
protected $wifi;
/**
* $lat
* @var string
*/
protected $lat;
/**
* $lng
* @var string
*/
protected $lng;
/**
* $lastSeen
* @var \DateTime
*/
protected $lastSeen;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->phoneNumber = $data["phoneNumber"];
$this->make = $data["make"];
$this->model = $data["model"];
$this->provider = $data["provider"];
$this->country = $data["country"];
$this->connectionType = $data["connectionType"];
$this->battery = $data["battery"];
$this->signalPercent = $data["signalPercent"];
$this->wifi = $data["wifi"];
$this->lat = $data["lat"];
$this->lng = $data["lng"];
$this->lastSeen = $data["lastSeen"];
}
}
/**
* Gets phoneNumber
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Sets phoneNumber
* @param string $phoneNumber
* @return $this
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Gets make
* @return string
*/
public function getMake()
{
return $this->make;
}
/**
* Sets make
* @param string $make
* @return $this
*/
public function setMake($make)
{
$this->make = $make;
return $this;
}
/**
* Gets model
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* Sets model
* @param string $model
* @return $this
*/
public function setModel($model)
{
$this->model = $model;
return $this;
}
/**
* Gets provider
* @return string
*/
public function getProvider()
{
return $this->provider;
}
/**
* Sets provider
* @param string $provider
* @return $this
*/
public function setProvider($provider)
{
$this->provider = $provider;
return $this;
}
/**
* Gets country
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Sets country
* @param string $country
* @return $this
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Gets connectionType
* @return string
*/
public function getConnectionType()
{
return $this->connectionType;
}
/**
* Sets connectionType
* @param string $connectionType
* @return $this
*/
public function setConnectionType($connectionType)
{
$this->connectionType = $connectionType;
return $this;
}
/**
* Gets battery
* @return string
*/
public function getBattery()
{
return $this->battery;
}
/**
* Sets battery
* @param string $battery
* @return $this
*/
public function setBattery($battery)
{
$this->battery = $battery;
return $this;
}
/**
* Gets signalPercent
* @return string
*/
public function getSignalPercent()
{
return $this->signalPercent;
}
/**
* Sets signalPercent
* @param string $signalPercent
* @return $this
*/
public function setSignalPercent($signalPercent)
{
$this->signalPercent = $signalPercent;
return $this;
}
/**
* Gets wifi
* @return bool
*/
public function getWifi()
{
return $this->wifi;
}
/**
* Sets wifi
* @param bool $wifi
* @return $this
*/
public function setWifi($wifi)
{
$this->wifi = $wifi;
return $this;
}
/**
* Gets lat
* @return string
*/
public function getLat()
{
return $this->lat;
}
/**
* Sets lat
* @param string $lat
* @return $this
*/
public function setLat($lat)
{
$this->lat = $lat;
return $this;
}
/**
* Gets lng
* @return string
*/
public function getLng()
{
return $this->lng;
}
/**
* Sets lng
* @param string $lng
* @return $this
*/
public function setLng($lng)
{
$this->lng = $lng;
return $this;
}
/**
* Gets lastSeen
* @return \DateTime
*/
public function getLastSeen()
{
return $this->lastSeen;
}
/**
* Sets lastSeen
* @param \DateTime $lastSeen
* @return $this
*/
public function setLastSeen($lastSeen)
{
$this->lastSeen = $lastSeen;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* DeviceSearchResult
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* DeviceSearchResult Class Doc Comment
*
* @category Class
* @description Device search results
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class DeviceSearchResult implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'count' => 'int',
'results' => '\SMSGatewayMe\Client\Model\Device[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'count' => 'count',
'results' => 'results'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'count' => 'setCount',
'results' => 'setResults'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'count' => 'getCount',
'results' => 'getResults'
);
static function getters() {
return self::$getters;
}
/**
* $count Total number of results
* @var int
*/
protected $count;
/**
* $results
* @var \SMSGatewayMe\Client\Model\Device[]
*/
protected $results;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->count = $data["count"];
$this->results = $data["results"];
}
}
/**
* Gets count
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Sets count
* @param int $count Total number of results
* @return $this
*/
public function setCount($count)
{
$this->count = $count;
return $this;
}
/**
* Gets results
* @return \SMSGatewayMe\Client\Model\Device[]
*/
public function getResults()
{
return $this->results;
}
/**
* Sets results
* @param \SMSGatewayMe\Client\Model\Device[] $results
* @return $this
*/
public function setResults($results)
{
$this->results = $results;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,255 @@
<?php
/**
* Error
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* Error Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class Error implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'key' => 'string',
'errors' => 'string[]',
'children' => '\SMSGatewayMe\Client\Model\Error[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'key' => 'key',
'errors' => 'errors',
'children' => 'children'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'key' => 'setKey',
'errors' => 'setErrors',
'children' => 'setChildren'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'key' => 'getKey',
'errors' => 'getErrors',
'children' => 'getChildren'
);
static function getters() {
return self::$getters;
}
/**
* $key
* @var string
*/
protected $key;
/**
* $errors
* @var string[]
*/
protected $errors;
/**
* $children
* @var \SMSGatewayMe\Client\Model\Error[]
*/
protected $children;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->key = $data["key"];
$this->errors = $data["errors"];
$this->children = $data["children"];
}
}
/**
* Gets key
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* Sets key
* @param string $key
* @return $this
*/
public function setKey($key)
{
$this->key = $key;
return $this;
}
/**
* Gets errors
* @return string[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* Sets errors
* @param string[] $errors
* @return $this
*/
public function setErrors($errors)
{
$this->errors = $errors;
return $this;
}
/**
* Gets children
* @return \SMSGatewayMe\Client\Model\Error[]
*/
public function getChildren()
{
return $this->children;
}
/**
* Sets children
* @param \SMSGatewayMe\Client\Model\Error[] $children
* @return $this
*/
public function setChildren($children)
{
$this->children = $children;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* ErrorResponse
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* ErrorResponse Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class ErrorResponse implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'message' => 'string',
'data' => '\SMSGatewayMe\Client\Model\Error[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'message' => 'message',
'data' => 'data'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'message' => 'setMessage',
'data' => 'setData'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'message' => 'getMessage',
'data' => 'getData'
);
static function getters() {
return self::$getters;
}
/**
* $message
* @var string
*/
protected $message;
/**
* $data
* @var \SMSGatewayMe\Client\Model\Error[]
*/
protected $data;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->message = $data["message"];
$this->data = $data["data"];
}
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Sets message
* @param string $message
* @return $this
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Gets data
* @return \SMSGatewayMe\Client\Model\Error[]
*/
public function getData()
{
return $this->data;
}
/**
* Sets data
* @param \SMSGatewayMe\Client\Model\Error[] $data
* @return $this
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,191 @@
<?php
/**
* FatalResponse
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* FatalResponse Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class FatalResponse implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'message' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'message' => 'message'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'message' => 'setMessage'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'message' => 'getMessage'
);
static function getters() {
return self::$getters;
}
/**
* $message
* @var string
*/
protected $message;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->message = $data["message"];
}
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Sets message
* @param string $message
* @return $this
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,383 @@
<?php
/**
* Message
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* Message Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class Message implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'id' => 'int',
'deviceId' => 'int',
'message' => 'string',
'status' => 'string',
'log' => '\SMSGatewayMe\Client\Model\MessageLog[]',
'createdAt' => '\DateTime',
'updatedAt' => '\DateTime'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'id' => 'id',
'deviceId' => 'device_id',
'message' => 'message',
'status' => 'status',
'log' => 'log',
'createdAt' => 'created_at',
'updatedAt' => 'updated_at'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId',
'deviceId' => 'setDeviceId',
'message' => 'setMessage',
'status' => 'setStatus',
'log' => 'setLog',
'createdAt' => 'setCreatedAt',
'updatedAt' => 'setUpdatedAt'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId',
'deviceId' => 'getDeviceId',
'message' => 'getMessage',
'status' => 'getStatus',
'log' => 'getLog',
'createdAt' => 'getCreatedAt',
'updatedAt' => 'getUpdatedAt'
);
static function getters() {
return self::$getters;
}
/**
* $id
* @var int
*/
protected $id;
/**
* $deviceId
* @var int
*/
protected $deviceId;
/**
* $message
* @var string
*/
protected $message;
/**
* $status
* @var string
*/
protected $status;
/**
* $log
* @var \SMSGatewayMe\Client\Model\MessageLog[]
*/
protected $log;
/**
* $createdAt
* @var \DateTime
*/
protected $createdAt;
/**
* $updatedAt
* @var \DateTime
*/
protected $updatedAt;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->id = $data["id"];
$this->deviceId = $data["deviceId"];
$this->message = $data["message"];
$this->status = $data["status"];
$this->log = $data["log"];
$this->createdAt = $data["createdAt"];
$this->updatedAt = $data["updatedAt"];
}
}
/**
* Gets id
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param int $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets deviceId
* @return int
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Sets deviceId
* @param int $deviceId
* @return $this
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Sets message
* @param string $message
* @return $this
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Sets status
* @param string $status
* @return $this
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Gets log
* @return \SMSGatewayMe\Client\Model\MessageLog[]
*/
public function getLog()
{
return $this->log;
}
/**
* Sets log
* @param \SMSGatewayMe\Client\Model\MessageLog[] $log
* @return $this
*/
public function setLog($log)
{
$this->log = $log;
return $this;
}
/**
* Gets createdAt
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Sets createdAt
* @param \DateTime $createdAt
* @return $this
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Gets updatedAt
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Sets updatedAt
* @param \DateTime $updatedAt
* @return $this
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* MessageLog
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* MessageLog Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class MessageLog implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'status' => 'string',
'occurredAt' => '\DateTime'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'status' => 'status',
'occurredAt' => 'occurred_at'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'status' => 'setStatus',
'occurredAt' => 'setOccurredAt'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'status' => 'getStatus',
'occurredAt' => 'getOccurredAt'
);
static function getters() {
return self::$getters;
}
/**
* $status
* @var string
*/
protected $status;
/**
* $occurredAt
* @var \DateTime
*/
protected $occurredAt;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->status = $data["status"];
$this->occurredAt = $data["occurredAt"];
}
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Sets status
* @param string $status
* @return $this
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Gets occurredAt
* @return \DateTime
*/
public function getOccurredAt()
{
return $this->occurredAt;
}
/**
* Sets occurredAt
* @param \DateTime $occurredAt
* @return $this
*/
public function setOccurredAt($occurredAt)
{
$this->occurredAt = $occurredAt;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* MessageSearchResult
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* MessageSearchResult Class Doc Comment
*
* @category Class
* @description Message search results
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class MessageSearchResult implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'count' => 'int',
'results' => '\SMSGatewayMe\Client\Model\Message[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'count' => 'count',
'results' => 'results'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'count' => 'setCount',
'results' => 'setResults'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'count' => 'getCount',
'results' => 'getResults'
);
static function getters() {
return self::$getters;
}
/**
* $count Total number of results
* @var int
*/
protected $count;
/**
* $results
* @var \SMSGatewayMe\Client\Model\Message[]
*/
protected $results;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->count = $data["count"];
$this->results = $data["results"];
}
}
/**
* Gets count
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Sets count
* @param int $count Total number of results
* @return $this
*/
public function setCount($count)
{
$this->count = $count;
return $this;
}
/**
* Gets results
* @return \SMSGatewayMe\Client\Model\Message[]
*/
public function getResults()
{
return $this->results;
}
/**
* Sets results
* @param \SMSGatewayMe\Client\Model\Message[] $results
* @return $this
*/
public function setResults($results)
{
$this->results = $results;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,287 @@
<?php
/**
* Search
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* Search Class Doc Comment
*
* @category Class
* @description A search criteria
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class Search implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'filters' => '\SMSGatewayMe\Client\Model\SearchFilter[][]',
'orderBy' => '\SMSGatewayMe\Client\Model\SearchOrderBy[]',
'limit' => 'int',
'offset' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'filters' => 'filters',
'orderBy' => 'order_by',
'limit' => 'limit',
'offset' => 'offset'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'filters' => 'setFilters',
'orderBy' => 'setOrderBy',
'limit' => 'setLimit',
'offset' => 'setOffset'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'filters' => 'getFilters',
'orderBy' => 'getOrderBy',
'limit' => 'getLimit',
'offset' => 'getOffset'
);
static function getters() {
return self::$getters;
}
/**
* $filters
* @var \SMSGatewayMe\Client\Model\SearchFilter[][]
*/
protected $filters;
/**
* $orderBy
* @var \SMSGatewayMe\Client\Model\SearchOrderBy[]
*/
protected $orderBy;
/**
* $limit
* @var int
*/
protected $limit;
/**
* $offset
* @var int
*/
protected $offset;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->filters = $data["filters"];
$this->orderBy = $data["orderBy"];
$this->limit = $data["limit"];
$this->offset = $data["offset"];
}
}
/**
* Gets filters
* @return \SMSGatewayMe\Client\Model\SearchFilter[][]
*/
public function getFilters()
{
return $this->filters;
}
/**
* Sets filters
* @param \SMSGatewayMe\Client\Model\SearchFilter[][] $filters
* @return $this
*/
public function setFilters($filters)
{
$this->filters = $filters;
return $this;
}
/**
* Gets orderBy
* @return \SMSGatewayMe\Client\Model\SearchOrderBy[]
*/
public function getOrderBy()
{
return $this->orderBy;
}
/**
* Sets orderBy
* @param \SMSGatewayMe\Client\Model\SearchOrderBy[] $orderBy
* @return $this
*/
public function setOrderBy($orderBy)
{
$this->orderBy = $orderBy;
return $this;
}
/**
* Gets limit
* @return int
*/
public function getLimit()
{
return $this->limit;
}
/**
* Sets limit
* @param int $limit
* @return $this
*/
public function setLimit($limit)
{
$this->limit = $limit;
return $this;
}
/**
* Gets offset
* @return int
*/
public function getOffset()
{
return $this->offset;
}
/**
* Sets offset
* @param int $offset
* @return $this
*/
public function setOffset($offset)
{
$this->offset = $offset;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,255 @@
<?php
/**
* SearchFilter
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* SearchFilter Class Doc Comment
*
* @category Class
* @description A search criteria filter
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class SearchFilter implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'field' => 'string',
'operator' => 'string',
'value' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'field' => 'field',
'operator' => 'operator',
'value' => 'value'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'field' => 'setField',
'operator' => 'setOperator',
'value' => 'setValue'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'field' => 'getField',
'operator' => 'getOperator',
'value' => 'getValue'
);
static function getters() {
return self::$getters;
}
/**
* $field
* @var string
*/
protected $field;
/**
* $operator
* @var string
*/
protected $operator;
/**
* $value
* @var string
*/
protected $value;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->field = $data["field"];
$this->operator = $data["operator"];
$this->value = $data["value"];
}
}
/**
* Gets field
* @return string
*/
public function getField()
{
return $this->field;
}
/**
* Sets field
* @param string $field
* @return $this
*/
public function setField($field)
{
$this->field = $field;
return $this;
}
/**
* Gets operator
* @return string
*/
public function getOperator()
{
return $this->operator;
}
/**
* Sets operator
* @param string $operator
* @return $this
*/
public function setOperator($operator)
{
$this->operator = $operator;
return $this;
}
/**
* Gets value
* @return string
*/
public function getValue()
{
return $this->value;
}
/**
* Sets value
* @param string $value
* @return $this
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* SearchOrderBy
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* SearchOrderBy Class Doc Comment
*
* @category Class
* @description A search criteria order by
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class SearchOrderBy implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'field' => 'string',
'direction' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'field' => 'field',
'direction' => 'direction'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'field' => 'setField',
'direction' => 'setDirection'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'field' => 'getField',
'direction' => 'getDirection'
);
static function getters() {
return self::$getters;
}
/**
* $field
* @var string
*/
protected $field;
/**
* $direction
* @var string
*/
protected $direction;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->field = $data["field"];
$this->direction = $data["direction"];
}
}
/**
* Gets field
* @return string
*/
public function getField()
{
return $this->field;
}
/**
* Sets field
* @param string $field
* @return $this
*/
public function setField($field)
{
$this->field = $field;
return $this;
}
/**
* Gets direction
* @return string
*/
public function getDirection()
{
return $this->direction;
}
/**
* Sets direction
* @param string $direction
* @return $this
*/
public function setDirection($direction)
{
$this->direction = $direction;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,255 @@
<?php
/**
* SendMessageRequest
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* SendMessageRequest Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class SendMessageRequest implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'phoneNumber' => 'string',
'message' => 'string',
'deviceId' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'phoneNumber' => 'phone_number',
'message' => 'message',
'deviceId' => 'device_id'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'phoneNumber' => 'setPhoneNumber',
'message' => 'setMessage',
'deviceId' => 'setDeviceId'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'phoneNumber' => 'getPhoneNumber',
'message' => 'getMessage',
'deviceId' => 'getDeviceId'
);
static function getters() {
return self::$getters;
}
/**
* $phoneNumber The number you wish to send the message to
* @var string
*/
protected $phoneNumber;
/**
* $message The message you wish to send
* @var string
*/
protected $message;
/**
* $deviceId The device you wish to send the message using
* @var int
*/
protected $deviceId;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->phoneNumber = $data["phoneNumber"];
$this->message = $data["message"];
$this->deviceId = $data["deviceId"];
}
}
/**
* Gets phoneNumber
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Sets phoneNumber
* @param string $phoneNumber The number you wish to send the message to
* @return $this
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Sets message
* @param string $message The message you wish to send
* @return $this
*/
public function setMessage($message)
{
$this->message = $message;
return $this;
}
/**
* Gets deviceId
* @return int
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Sets deviceId
* @param int $deviceId The device you wish to send the message using
* @return $this
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,421 @@
<?php
/**
* UpdateCallbackRequest
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* UpdateCallbackRequest Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class UpdateCallbackRequest implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'name' => 'string',
'event' => 'string',
'deviceId' => 'int',
'filterType' => 'string',
'filter' => 'string',
'method' => 'string',
'action' => 'string',
'secret' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'name' => 'name',
'event' => 'event',
'deviceId' => 'device_id',
'filterType' => 'filter_type',
'filter' => 'filter',
'method' => 'method',
'action' => 'action',
'secret' => 'secret'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'name' => 'setName',
'event' => 'setEvent',
'deviceId' => 'setDeviceId',
'filterType' => 'setFilterType',
'filter' => 'setFilter',
'method' => 'setMethod',
'action' => 'setAction',
'secret' => 'setSecret'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'name' => 'getName',
'event' => 'getEvent',
'deviceId' => 'getDeviceId',
'filterType' => 'getFilterType',
'filter' => 'getFilter',
'method' => 'getMethod',
'action' => 'getAction',
'secret' => 'getSecret'
);
static function getters() {
return self::$getters;
}
/**
* $name
* @var string
*/
protected $name;
/**
* $event
* @var string
*/
protected $event;
/**
* $deviceId
* @var int
*/
protected $deviceId;
/**
* $filterType
* @var string
*/
protected $filterType;
/**
* $filter
* @var string
*/
protected $filter;
/**
* $method
* @var string
*/
protected $method;
/**
* $action
* @var string
*/
protected $action;
/**
* $secret
* @var string
*/
protected $secret;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->name = $data["name"];
$this->event = $data["event"];
$this->deviceId = $data["deviceId"];
$this->filterType = $data["filterType"];
$this->filter = $data["filter"];
$this->method = $data["method"];
$this->action = $data["action"];
$this->secret = $data["secret"];
}
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets event
* @return string
*/
public function getEvent()
{
return $this->event;
}
/**
* Sets event
* @param string $event
* @return $this
*/
public function setEvent($event)
{
$allowed_values = array("MESSAGE_UPDATED", "MESSAGE_CANCELED", "MESSAGE_DELIVERED", "MESSAGE_FAILED", "MESSAGE_MANUALLY_SENT", "MESSAGE_PENDING", "MESSAGE_QUEUED", "MESSAGE_RECEIVED", "MESSAGE_SENT");
if (!in_array($event, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'event', must be one of 'MESSAGE_UPDATED', 'MESSAGE_CANCELED', 'MESSAGE_DELIVERED', 'MESSAGE_FAILED', 'MESSAGE_MANUALLY_SENT', 'MESSAGE_PENDING', 'MESSAGE_QUEUED', 'MESSAGE_RECEIVED', 'MESSAGE_SENT'");
}
$this->event = $event;
return $this;
}
/**
* Gets deviceId
* @return int
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Sets deviceId
* @param int $deviceId
* @return $this
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
return $this;
}
/**
* Gets filterType
* @return string
*/
public function getFilterType()
{
return $this->filterType;
}
/**
* Sets filterType
* @param string $filterType
* @return $this
*/
public function setFilterType($filterType)
{
$allowed_values = array("Starts With", "Is From", "Contains");
if (!in_array($filterType, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'filterType', must be one of 'Starts With', 'Is From', 'Contains'");
}
$this->filterType = $filterType;
return $this;
}
/**
* Gets filter
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* Sets filter
* @param string $filter
* @return $this
*/
public function setFilter($filter)
{
$this->filter = $filter;
return $this;
}
/**
* Gets method
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Sets method
* @param string $method
* @return $this
*/
public function setMethod($method)
{
$this->method = $method;
return $this;
}
/**
* Gets action
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Sets action
* @param string $action
* @return $this
*/
public function setAction($action)
{
$this->action = $action;
return $this;
}
/**
* Gets secret
* @return string
*/
public function getSecret()
{
return $this->secret;
}
/**
* Sets secret
* @param string $secret
* @return $this
*/
public function setSecret($secret)
{
$this->secret = $secret;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}

View File

@@ -0,0 +1,223 @@
<?php
/**
* UpdateContactRequest
*
* PHP version 5
*
* @category Class
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* 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 SMSGatewayMe\Client\Model;
use \ArrayAccess;
/**
* UpdateContactRequest Class Doc Comment
*
* @category Class
* @description
* @package SMSGatewayMe\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class UpdateContactRequest implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'name' => 'string',
'phoneNumbers' => 'string[]'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'name' => 'name',
'phoneNumbers' => 'phone_numbers'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'name' => 'setName',
'phoneNumbers' => 'setPhoneNumbers'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'name' => 'getName',
'phoneNumbers' => 'getPhoneNumbers'
);
static function getters() {
return self::$getters;
}
/**
* $name
* @var string
*/
protected $name;
/**
* $phoneNumbers
* @var string[]
*/
protected $phoneNumbers;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->name = $data["name"];
$this->phoneNumbers = $data["phoneNumbers"];
}
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets phoneNumbers
* @return string[]
*/
public function getPhoneNumbers()
{
return $this->phoneNumbers;
}
/**
* Sets phoneNumbers
* @param string[] $phoneNumbers
* @return $this
*/
public function setPhoneNumbers($phoneNumbers)
{
$this->phoneNumbers = $phoneNumbers;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SMSGatewayMe\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}