|
- # coding: utf-8
-
-
- from __future__ import absolute_import
- from datetime import date, datetime # noqa: F401
-
- from typing import List, Dict # noqa: F401
-
- from core import util
-
- from pydantic import BaseModel
-
- class call(BaseModel):
-
- id: str
- status: str=None
- called_number: str=None
- ack_id: int=None
-
-
- class post_call(BaseModel):
-
- id: str
-
- # """NOTE: This class is auto generated by the swagger code generator program.
- #
- # Do not edit the class manually.
- # """
- # def __init__(self, id: int=None, status: str=None, history: str=None, called_number: str=None, ack_id: str=None): # noqa: E501
- # """Call - a model defined in Swagger
- #
- # :param id: The id of this Call. # noqa: E501
- # :type id: int
- # :param status: The status of this Call. # noqa: E501
- # :type status: str
- # :param history: The history of this Call. # noqa: E501
- # :type history: str
- # :param called_number: The called_number of this Call. # noqa: E501
- # :type called_number: str
- # :param ack_id: The ack_id of this Call. # noqa: E501
- # :type ack_id: str
- # """
- # self.swagger_types = {
- # 'id': int,
- # 'status': str,
- # 'history': str,
- # 'called_number': str,
- # 'ack_id': str
- # }
- #
- # self.attribute_map = {
- # 'id': 'id',
- # 'status': 'status',
- # 'history': 'history',
- # 'called_number': 'called_number',
- # 'ack_id': 'ack_id'
- # }
- # self._id = id
- # self._status = status
- # self._history = history
- # self._called_number = called_number
- # self._ack_id = ack_id
- #
- # @classmethod
- # def from_dict(cls, dikt) -> 'Call':
- # """Returns the dict as a model
- #
- # :param dikt: A dict.
- # :type: dict
- # :return: The Call of this Call. # noqa: E501
- # :rtype: Call
- # """
- # return util.deserialize_model(dikt, cls)
- #
- # @property
- # def id(self) -> int:
- # """Gets the id of this Call.
- #
- # A unique ID associated with the call. # noqa: E501
- #
- # :return: The id of this Call.
- # :rtype: int
- # """
- # return self._id
- #
- # @id.setter
- # def id(self, id: int):
- # """Sets the id of this Call.
- #
- # A unique ID associated with the call. # noqa: E501
- #
- # :param id: The id of this Call.
- # :type id: int
- # """
- #
- # self._id = id
- #
- # @property
- # def status(self) -> str:
- # """Gets the status of this Call.
- #
- # 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
- #
- # :return: The status of this Call.
- # :rtype: str
- # """
- # return self._status
- #
- # @status.setter
- # def status(self, status: str):
- # """Sets the status of this Call.
- #
- # 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
- #
- # :param status: The status of this Call.
- # :type status: str
- # """
- # allowed_values = ["Setup", "Ringing", "Active", "Busy", "Not Answered"] # noqa: E501
- # if status not in allowed_values:
- # raise ValueError(
- # "Invalid value for `status` ({0}), must be one of {1}"
- # .format(status, allowed_values)
- # )
- #
- # self._status = status
- #
- # @property
- # def history(self) -> str:
- # """Gets the history of this Call.
- #
- # The chronology of call attempts. # noqa: E501
- #
- # :return: The history of this Call.
- # :rtype: str
- # """
- # return self._history
- #
- # @history.setter
- # def history(self, history: str):
- # """Sets the history of this Call.
- #
- # The chronology of call attempts. # noqa: E501
- #
- # :param history: The history of this Call.
- # :type history: str
- # """
- #
- # self._history = history
- #
- # @property
- # def called_number(self) -> str:
- # """Gets the called_number of this Call.
- #
- # The called number. # noqa: E501
- #
- # :return: The called_number of this Call.
- # :rtype: str
- # """
- # return self._called_number
- #
- # @called_number.setter
- # def called_number(self, called_number: str):
- # """Sets the called_number of this Call.
- #
- # The called number. # noqa: E501
- #
- # :param called_number: The called_number of this Call.
- # :type called_number: str
- # """
- #
- # self._called_number = called_number
- #
- # @property
- # def ack_id(self) -> str:
- # """Gets the ack_id of this Call.
- #
- # The ack-ID received by the user, if available, otherwise an empty string. # noqa: E501
- #
- # :return: The ack_id of this Call.
- # :rtype: str
- # """
- # return self._ack_id
- #
- # @ack_id.setter
- # def ack_id(self, ack_id: str):
- # """Sets the ack_id of this Call.
- #
- # The ack-ID received by the user, if available, otherwise an empty string. # noqa: E501
- #
- # :param ack_id: The ack_id of this Call.
- # :type ack_id: str
- # """
- #
- # self._ack_id = ack_id
|