118 lines
3.2 KiB
Python
118 lines
3.2 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 IceSessionDescription(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, sdp_type=None, sdp=None): # noqa: E501
|
|
"""IceSessionDescription - a model defined in OpenAPI
|
|
|
|
:param name: The name of this IceSessionDescription. # noqa: E501
|
|
:type name: str
|
|
:param sdp_type: The sdp_type of this IceSessionDescription. # noqa: E501
|
|
:type sdp_type: str
|
|
:param sdp: The sdp of this IceSessionDescription. # noqa: E501
|
|
:type sdp: str
|
|
"""
|
|
self.openapi_types = {
|
|
'name': str,
|
|
'sdp_type': str,
|
|
'sdp': str
|
|
}
|
|
|
|
self.attribute_map = {
|
|
'name': 'name',
|
|
'sdp_type': 'sdpType',
|
|
'sdp': 'sdp'
|
|
}
|
|
|
|
self._name = name
|
|
self._sdp_type = sdp_type
|
|
self._sdp = sdp
|
|
|
|
@classmethod
|
|
def from_dict(cls, dikt) -> 'IceSessionDescription':
|
|
"""Returns the dict as a model
|
|
|
|
:param dikt: A dict.
|
|
:type: dict
|
|
:return: The IceSessionDescription of this IceSessionDescription. # noqa: E501
|
|
:rtype: IceSessionDescription
|
|
"""
|
|
return util.deserialize_model(dikt, cls)
|
|
|
|
@property
|
|
def name(self) -> str:
|
|
"""Gets the name of this IceSessionDescription.
|
|
|
|
A unique identifier which can be used to send ICE candidates Maps to the session name # noqa: E501
|
|
|
|
:return: The name of this IceSessionDescription.
|
|
:rtype: str
|
|
"""
|
|
return self._name
|
|
|
|
@name.setter
|
|
def name(self, name: str):
|
|
"""Sets the name of this IceSessionDescription.
|
|
|
|
A unique identifier which can be used to send ICE candidates Maps to the session name # noqa: E501
|
|
|
|
:param name: The name of this IceSessionDescription.
|
|
:type name: str
|
|
"""
|
|
|
|
self._name = name
|
|
|
|
@property
|
|
def sdp_type(self) -> str:
|
|
"""Gets the sdp_type of this IceSessionDescription.
|
|
|
|
Used to construct the remote description in WebRTC # noqa: E501
|
|
|
|
:return: The sdp_type of this IceSessionDescription.
|
|
:rtype: str
|
|
"""
|
|
return self._sdp_type
|
|
|
|
@sdp_type.setter
|
|
def sdp_type(self, sdp_type: str):
|
|
"""Sets the sdp_type of this IceSessionDescription.
|
|
|
|
Used to construct the remote description in WebRTC # noqa: E501
|
|
|
|
:param sdp_type: The sdp_type of this IceSessionDescription.
|
|
:type sdp_type: str
|
|
"""
|
|
|
|
self._sdp_type = sdp_type
|
|
|
|
@property
|
|
def sdp(self) -> str:
|
|
"""Gets the sdp of this IceSessionDescription.
|
|
|
|
|
|
:return: The sdp of this IceSessionDescription.
|
|
:rtype: str
|
|
"""
|
|
return self._sdp
|
|
|
|
@sdp.setter
|
|
def sdp(self, sdp: str):
|
|
"""Sets the sdp of this IceSessionDescription.
|
|
|
|
|
|
:param sdp: The sdp of this IceSessionDescription.
|
|
:type sdp: str
|
|
"""
|
|
|
|
self._sdp = sdp
|