No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

195 líneas
5.8 KiB

  1. # coding: utf-8
  2. from __future__ import absolute_import
  3. from datetime import date, datetime # noqa: F401
  4. from typing import List, Dict # noqa: F401
  5. from core import util
  6. from pydantic import BaseModel
  7. class call(BaseModel):
  8. id: str
  9. status: str=None
  10. called_number: str=None
  11. ack_id: int=None
  12. class post_call(BaseModel):
  13. id: str
  14. # """NOTE: This class is auto generated by the swagger code generator program.
  15. #
  16. # Do not edit the class manually.
  17. # """
  18. # def __init__(self, id: int=None, status: str=None, history: str=None, called_number: str=None, ack_id: str=None): # noqa: E501
  19. # """Call - a model defined in Swagger
  20. #
  21. # :param id: The id of this Call. # noqa: E501
  22. # :type id: int
  23. # :param status: The status of this Call. # noqa: E501
  24. # :type status: str
  25. # :param history: The history of this Call. # noqa: E501
  26. # :type history: str
  27. # :param called_number: The called_number of this Call. # noqa: E501
  28. # :type called_number: str
  29. # :param ack_id: The ack_id of this Call. # noqa: E501
  30. # :type ack_id: str
  31. # """
  32. # self.swagger_types = {
  33. # 'id': int,
  34. # 'status': str,
  35. # 'history': str,
  36. # 'called_number': str,
  37. # 'ack_id': str
  38. # }
  39. #
  40. # self.attribute_map = {
  41. # 'id': 'id',
  42. # 'status': 'status',
  43. # 'history': 'history',
  44. # 'called_number': 'called_number',
  45. # 'ack_id': 'ack_id'
  46. # }
  47. # self._id = id
  48. # self._status = status
  49. # self._history = history
  50. # self._called_number = called_number
  51. # self._ack_id = ack_id
  52. #
  53. # @classmethod
  54. # def from_dict(cls, dikt) -> 'Call':
  55. # """Returns the dict as a model
  56. #
  57. # :param dikt: A dict.
  58. # :type: dict
  59. # :return: The Call of this Call. # noqa: E501
  60. # :rtype: Call
  61. # """
  62. # return util.deserialize_model(dikt, cls)
  63. #
  64. # @property
  65. # def id(self) -> int:
  66. # """Gets the id of this Call.
  67. #
  68. # A unique ID associated with the call. # noqa: E501
  69. #
  70. # :return: The id of this Call.
  71. # :rtype: int
  72. # """
  73. # return self._id
  74. #
  75. # @id.setter
  76. # def id(self, id: int):
  77. # """Sets the id of this Call.
  78. #
  79. # A unique ID associated with the call. # noqa: E501
  80. #
  81. # :param id: The id of this Call.
  82. # :type id: int
  83. # """
  84. #
  85. # self._id = id
  86. #
  87. # @property
  88. # def status(self) -> str:
  89. # """Gets the status of this Call.
  90. #
  91. # The status of the call.<ul><li>Setup: if the call is still not yet started.</li><li>Ringing: if the call started, and the phone is ringing.</li><li>Active: if the call is underway.</li><li>Busy: if the phone of the recipient is busy.</li><li>Not Answered: if the recipient didn't answer the call. # noqa: E501
  92. #
  93. # :return: The status of this Call.
  94. # :rtype: str
  95. # """
  96. # return self._status
  97. #
  98. # @status.setter
  99. # def status(self, status: str):
  100. # """Sets the status of this Call.
  101. #
  102. # The status of the call.<ul><li>Setup: if the call is still not yet started.</li><li>Ringing: if the call started, and the phone is ringing.</li><li>Active: if the call is underway.</li><li>Busy: if the phone of the recipient is busy.</li><li>Not Answered: if the recipient didn't answer the call. # noqa: E501
  103. #
  104. # :param status: The status of this Call.
  105. # :type status: str
  106. # """
  107. # allowed_values = ["Setup", "Ringing", "Active", "Busy", "Not Answered"] # noqa: E501
  108. # if status not in allowed_values:
  109. # raise ValueError(
  110. # "Invalid value for `status` ({0}), must be one of {1}"
  111. # .format(status, allowed_values)
  112. # )
  113. #
  114. # self._status = status
  115. #
  116. # @property
  117. # def history(self) -> str:
  118. # """Gets the history of this Call.
  119. #
  120. # The chronology of call attempts. # noqa: E501
  121. #
  122. # :return: The history of this Call.
  123. # :rtype: str
  124. # """
  125. # return self._history
  126. #
  127. # @history.setter
  128. # def history(self, history: str):
  129. # """Sets the history of this Call.
  130. #
  131. # The chronology of call attempts. # noqa: E501
  132. #
  133. # :param history: The history of this Call.
  134. # :type history: str
  135. # """
  136. #
  137. # self._history = history
  138. #
  139. # @property
  140. # def called_number(self) -> str:
  141. # """Gets the called_number of this Call.
  142. #
  143. # The called number. # noqa: E501
  144. #
  145. # :return: The called_number of this Call.
  146. # :rtype: str
  147. # """
  148. # return self._called_number
  149. #
  150. # @called_number.setter
  151. # def called_number(self, called_number: str):
  152. # """Sets the called_number of this Call.
  153. #
  154. # The called number. # noqa: E501
  155. #
  156. # :param called_number: The called_number of this Call.
  157. # :type called_number: str
  158. # """
  159. #
  160. # self._called_number = called_number
  161. #
  162. # @property
  163. # def ack_id(self) -> str:
  164. # """Gets the ack_id of this Call.
  165. #
  166. # The ack-ID received by the user, if available, otherwise an empty string. # noqa: E501
  167. #
  168. # :return: The ack_id of this Call.
  169. # :rtype: str
  170. # """
  171. # return self._ack_id
  172. #
  173. # @ack_id.setter
  174. # def ack_id(self, ack_id: str):
  175. # """Sets the ack_id of this Call.
  176. #
  177. # The ack-ID received by the user, if available, otherwise an empty string. # noqa: E501
  178. #
  179. # :param ack_id: The ack_id of this Call.
  180. # :type ack_id: str
  181. # """
  182. #
  183. # self._ack_id = ack_id