webRtcMsgModel.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // webRtcMsgModel.h
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/9/2.
  6. //
  7. #import "SuperModel.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface webRtcMsgSignallingModel : SuperModel //信令服务对象 (推流)
  10. @property (nonatomic, copy) NSString *port;//端口
  11. @property (nonatomic, copy) NSString *domainName;//地址
  12. @end
  13. @interface webRtcMsgTurnModel : SuperModel //turn服务对象 (ice)
  14. @property (nonatomic, copy) NSString *port;//端口
  15. @property (nonatomic, copy) NSString *domainName;//地址
  16. @end
  17. @interface webrtcServerModel : SuperModel //1.4.4 所有的信息
  18. @property (nonatomic, copy) NSString *signallingPort;//端口
  19. @property (nonatomic, copy) NSString *signallingDomainName;//地址
  20. @property (nonatomic, copy) NSString *signallingIp;//需要用的ip
  21. @property (nonatomic, copy) NSString *turnPort;//端口
  22. @property (nonatomic, copy) NSString *turnDomainName;//地址
  23. @property (nonatomic, copy) NSString *turnIp;//需要用的ip
  24. @property (nonatomic, assign) CGFloat delayedms;// ping的延时毫秒数
  25. @end
  26. @protocol webrtcServerModel;
  27. @interface webRtcMsgDataModel : SuperModel
  28. @property (nonatomic, copy) NSString *sn;//SN
  29. @property (nonatomic, copy) NSString *uniqueIdentifier;//唯一标识符
  30. @property (nonatomic, copy) NSString *cpuSerialNum;//CPU 序列号
  31. @property(nonatomic, strong) webRtcMsgSignallingModel*signalling;
  32. @property(nonatomic, strong) webRtcMsgTurnModel*turn;
  33. @property (nonatomic, strong) NSArray<webrtcServerModel>* webrtcServerList;
  34. //自定义字段
  35. @property (nonatomic, assign) BOOL isPingDoneType;// 是否ping完成 所有IP
  36. @end
  37. @interface webRtcMsgModel : SuperModel
  38. @property(nonatomic, strong) webRtcMsgDataModel*data;
  39. @end
  40. NS_ASSUME_NONNULL_END