166 lines
4.4 KiB
Python
166 lines
4.4 KiB
Python
|
|
from datetime import date, datetime # noqa: F401
|
||
|
|
|
||
|
|
from typing import List, Dict # noqa: F401
|
||
|
|
|
||
|
|
from openapi_server.models.base_model import Model
|
||
|
|
from openapi_server import util
|
||
|
|
|
||
|
|
|
||
|
|
class IceCandidate(Model):
|
||
|
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||
|
|
|
||
|
|
Do not edit the class manually.
|
||
|
|
"""
|
||
|
|
|
||
|
|
def __init__(self, name=None, candidate=None, sdp_mid=None, sdp_line_index=None, username_fragment=None): # noqa: E501
|
||
|
|
"""IceCandidate - a model defined in OpenAPI
|
||
|
|
|
||
|
|
:param name: The name of this IceCandidate. # noqa: E501
|
||
|
|
:type name: str
|
||
|
|
:param candidate: The candidate of this IceCandidate. # noqa: E501
|
||
|
|
:type candidate: str
|
||
|
|
:param sdp_mid: The sdp_mid of this IceCandidate. # noqa: E501
|
||
|
|
:type sdp_mid: str
|
||
|
|
:param sdp_line_index: The sdp_line_index of this IceCandidate. # noqa: E501
|
||
|
|
:type sdp_line_index: int
|
||
|
|
:param username_fragment: The username_fragment of this IceCandidate. # noqa: E501
|
||
|
|
:type username_fragment: str
|
||
|
|
"""
|
||
|
|
self.openapi_types = {
|
||
|
|
'name': str,
|
||
|
|
'candidate': str,
|
||
|
|
'sdp_mid': str,
|
||
|
|
'sdp_line_index': int,
|
||
|
|
'username_fragment': str
|
||
|
|
}
|
||
|
|
|
||
|
|
self.attribute_map = {
|
||
|
|
'name': 'name',
|
||
|
|
'candidate': 'candidate',
|
||
|
|
'sdp_mid': 'sdpMid',
|
||
|
|
'sdp_line_index': 'sdpLineIndex',
|
||
|
|
'username_fragment': 'usernameFragment'
|
||
|
|
}
|
||
|
|
|
||
|
|
self._name = name
|
||
|
|
self._candidate = candidate
|
||
|
|
self._sdp_mid = sdp_mid
|
||
|
|
self._sdp_line_index = sdp_line_index
|
||
|
|
self._username_fragment = username_fragment
|
||
|
|
|
||
|
|
@classmethod
|
||
|
|
def from_dict(cls, dikt) -> 'IceCandidate':
|
||
|
|
"""Returns the dict as a model
|
||
|
|
|
||
|
|
:param dikt: A dict.
|
||
|
|
:type: dict
|
||
|
|
:return: The IceCandidate of this IceCandidate. # noqa: E501
|
||
|
|
:rtype: IceCandidate
|
||
|
|
"""
|
||
|
|
return util.deserialize_model(dikt, cls)
|
||
|
|
|
||
|
|
@property
|
||
|
|
def name(self) -> str:
|
||
|
|
"""Gets the name of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:return: The name of this IceCandidate.
|
||
|
|
:rtype: str
|
||
|
|
"""
|
||
|
|
return self._name
|
||
|
|
|
||
|
|
@name.setter
|
||
|
|
def name(self, name: str):
|
||
|
|
"""Sets the name of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:param name: The name of this IceCandidate.
|
||
|
|
:type name: str
|
||
|
|
"""
|
||
|
|
|
||
|
|
self._name = name
|
||
|
|
|
||
|
|
@property
|
||
|
|
def candidate(self) -> str:
|
||
|
|
"""Gets the candidate of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:return: The candidate of this IceCandidate.
|
||
|
|
:rtype: str
|
||
|
|
"""
|
||
|
|
return self._candidate
|
||
|
|
|
||
|
|
@candidate.setter
|
||
|
|
def candidate(self, candidate: str):
|
||
|
|
"""Sets the candidate of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:param candidate: The candidate of this IceCandidate.
|
||
|
|
:type candidate: str
|
||
|
|
"""
|
||
|
|
|
||
|
|
self._candidate = candidate
|
||
|
|
|
||
|
|
@property
|
||
|
|
def sdp_mid(self) -> str:
|
||
|
|
"""Gets the sdp_mid of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:return: The sdp_mid of this IceCandidate.
|
||
|
|
:rtype: str
|
||
|
|
"""
|
||
|
|
return self._sdp_mid
|
||
|
|
|
||
|
|
@sdp_mid.setter
|
||
|
|
def sdp_mid(self, sdp_mid: str):
|
||
|
|
"""Sets the sdp_mid of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:param sdp_mid: The sdp_mid of this IceCandidate.
|
||
|
|
:type sdp_mid: str
|
||
|
|
"""
|
||
|
|
|
||
|
|
self._sdp_mid = sdp_mid
|
||
|
|
|
||
|
|
@property
|
||
|
|
def sdp_line_index(self) -> int:
|
||
|
|
"""Gets the sdp_line_index of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:return: The sdp_line_index of this IceCandidate.
|
||
|
|
:rtype: int
|
||
|
|
"""
|
||
|
|
return self._sdp_line_index
|
||
|
|
|
||
|
|
@sdp_line_index.setter
|
||
|
|
def sdp_line_index(self, sdp_line_index: int):
|
||
|
|
"""Sets the sdp_line_index of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:param sdp_line_index: The sdp_line_index of this IceCandidate.
|
||
|
|
:type sdp_line_index: int
|
||
|
|
"""
|
||
|
|
|
||
|
|
self._sdp_line_index = sdp_line_index
|
||
|
|
|
||
|
|
@property
|
||
|
|
def username_fragment(self) -> str:
|
||
|
|
"""Gets the username_fragment of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:return: The username_fragment of this IceCandidate.
|
||
|
|
:rtype: str
|
||
|
|
"""
|
||
|
|
return self._username_fragment
|
||
|
|
|
||
|
|
@username_fragment.setter
|
||
|
|
def username_fragment(self, username_fragment: str):
|
||
|
|
"""Sets the username_fragment of this IceCandidate.
|
||
|
|
|
||
|
|
|
||
|
|
:param username_fragment: The username_fragment of this IceCandidate.
|
||
|
|
:type username_fragment: str
|
||
|
|
"""
|
||
|
|
|
||
|
|
self._username_fragment = username_fragment
|