123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- using System;
- namespace Unity.RenderStreaming
- {
- #pragma warning disable 0649
- [Serializable]
- public class DescData
- {
- public string connectionId;
- public string sdp;
- public string type;
- public bool polite;
- }
- [Serializable]
- public class CandidateData
- {
- public string connectionId;
- public string candidate;
- public string sdpMid;
- public int sdpMLineIndex;
- }
- [Serializable]
- class SignalingMessage
- {
- public string status;
- public string message;
- public string sessionId;
- public string connectionId;
- public bool polite;
- public string sdp;
- public string type;
- public string candidate;
- public string sdpMid;
- public int sdpMLineIndex;
- }
- [Serializable]
- class RoutedMessage<T>
- {
- public string from;
- public string to;
- public string type;
- public T data;
- }
- [Serializable]
- class OpenSessionData
- {
- public string sessionId;
- }
- [Serializable]
- class CreateConnectionResData
- {
- public string connectionId;
- public bool polite;
- }
- [Serializable]
- class DestroyConnectionResData
- {
- public string connectionId;
- }
- [Serializable]
- class ConnectionResDataList
- {
- public DescData[] connections;
- }
- [Serializable]
- class OfferResDataList
- {
- public DescData[] offers;
- }
- [Serializable]
- class AnswerResDataList
- {
- public DescData[] answers;
- }
- [Serializable]
- class CandidateContainerResDataList
- {
- public CandidateContainerResData[] candidates;
- }
- [Serializable]
- class CandidateContainerResData
- {
- public string connectionId;
- public CandidateData[] candidates;
- }
- [Serializable]
- class AllResData
- {
- public SignalingMessage[] messages;
- }
- #pragma warning restore 0649
- }
|