kittycad.models.rtc_sdp_type

Classes

RtcSdpType(value)

SDPType describes the type of an SessionDescription.

class kittycad.models.rtc_sdp_type.RtcSdpType(value)[source][source]

SDPType describes the type of an SessionDescription.

ANSWER = 'answer'[source]

# indicates that a description MUST be treated as canceling the current SDP negotiation and moving the SDP offer and answer back to what it was in the previous stable state. Note the local or remote SDP descriptions in the previous stable state could be null if there has not yet been a successful offer-answer negotiation.

OFFER = 'offer'[source]

# indicates that a description MUST be treated as an SDP answer, but not a final answer. A description used as an SDP pranswer may be applied as a response to an SDP offer, or an update to a previously sent SDP pranswer.

PRANSWER = 'pranswer'[source]

# indicates that a description MUST be treated as an SDP final answer, and the offer-answer exchange MUST be considered complete. A description used as an SDP answer may be applied as a response to an SDP offer or as an update to a previously sent SDP pranswer.

ROLLBACK = 'rollback'[source]
UNSPECIFIED = 'unspecified'[source]

# indicates that a description MUST be treated as an SDP offer.

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.rtc_sdp_type', '__doc__': 'SDPType describes the type of an SessionDescription.', '__str__': <function RtcSdpType.__str__>, '__dict__': <attribute '__dict__' of 'RtcSdpType' objects>, '__weakref__': <attribute '__weakref__' of 'RtcSdpType' objects>, '_member_names_': ['UNSPECIFIED', 'OFFER', 'PRANSWER', 'ANSWER', 'ROLLBACK'], '_member_map_': {'UNSPECIFIED': <RtcSdpType.UNSPECIFIED: 'unspecified'>, 'OFFER': <RtcSdpType.OFFER: 'offer'>, 'PRANSWER': <RtcSdpType.PRANSWER: 'pranswer'>, 'ANSWER': <RtcSdpType.ANSWER: 'answer'>, 'ROLLBACK': <RtcSdpType.ROLLBACK: 'rollback'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'unspecified': <RtcSdpType.UNSPECIFIED: 'unspecified'>, 'offer': <RtcSdpType.OFFER: 'offer'>, 'pranswer': <RtcSdpType.PRANSWER: 'pranswer'>, 'answer': <RtcSdpType.ANSWER: 'answer'>, 'rollback': <RtcSdpType.ROLLBACK: 'rollback'>}, 'UNSPECIFIED': <RtcSdpType.UNSPECIFIED: 'unspecified'>, 'OFFER': <RtcSdpType.OFFER: 'offer'>, 'PRANSWER': <RtcSdpType.PRANSWER: 'pranswer'>, 'ANSWER': <RtcSdpType.ANSWER: 'answer'>, 'ROLLBACK': <RtcSdpType.ROLLBACK: 'rollback'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.rtc_sdp_type'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'ANSWER': RtcSdpType.ANSWER, 'OFFER': RtcSdpType.OFFER, 'PRANSWER': RtcSdpType.PRANSWER, 'ROLLBACK': RtcSdpType.ROLLBACK, 'UNSPECIFIED': RtcSdpType.UNSPECIFIED}[source]
_member_names_ = ['UNSPECIFIED', 'OFFER', 'PRANSWER', 'ANSWER', 'ROLLBACK'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'answer': RtcSdpType.ANSWER, 'offer': RtcSdpType.OFFER, 'pranswer': RtcSdpType.PRANSWER, 'rollback': RtcSdpType.ROLLBACK, 'unspecified': RtcSdpType.UNSPECIFIED}[source]