|
|
@ -33,15 +33,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
proto.id = valueParam
|
|
|
|
proto.id = valueParam
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoConnected? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc public func build() throws -> WebRTCProtoConnected {
|
|
|
|
@objc public func build() throws -> WebRTCProtoConnected {
|
|
|
|
return try WebRTCProtoConnected.parseProto(proto)
|
|
|
|
return try WebRTCProtoConnected.parseProto(proto)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -61,15 +52,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
self.id = id
|
|
|
|
self.id = id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc
|
|
|
|
@objc
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
return try self.proto.serializedData()
|
|
|
|
return try self.proto.serializedData()
|
|
|
@ -96,6 +78,22 @@ public enum WebRTCProtoError: Error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoConnected {
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoConnected.WebRTCProtoConnectedBuilder {
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoConnected? {
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: - WebRTCProtoHangup
|
|
|
|
// MARK: - WebRTCProtoHangup
|
|
|
|
|
|
|
|
|
|
|
|
@objc public class WebRTCProtoHangup: NSObject {
|
|
|
|
@objc public class WebRTCProtoHangup: NSObject {
|
|
|
@ -119,15 +117,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
proto.id = valueParam
|
|
|
|
proto.id = valueParam
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoHangup? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc public func build() throws -> WebRTCProtoHangup {
|
|
|
|
@objc public func build() throws -> WebRTCProtoHangup {
|
|
|
|
return try WebRTCProtoHangup.parseProto(proto)
|
|
|
|
return try WebRTCProtoHangup.parseProto(proto)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -147,15 +136,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
self.id = id
|
|
|
|
self.id = id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc
|
|
|
|
@objc
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
return try self.proto.serializedData()
|
|
|
|
return try self.proto.serializedData()
|
|
|
@ -182,6 +162,22 @@ public enum WebRTCProtoError: Error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoHangup {
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoHangup.WebRTCProtoHangupBuilder {
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoHangup? {
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: - WebRTCProtoVideoStreamingStatus
|
|
|
|
// MARK: - WebRTCProtoVideoStreamingStatus
|
|
|
|
|
|
|
|
|
|
|
|
@objc public class WebRTCProtoVideoStreamingStatus: NSObject {
|
|
|
|
@objc public class WebRTCProtoVideoStreamingStatus: NSObject {
|
|
|
@ -209,15 +205,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
proto.enabled = valueParam
|
|
|
|
proto.enabled = valueParam
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoVideoStreamingStatus? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc public func build() throws -> WebRTCProtoVideoStreamingStatus {
|
|
|
|
@objc public func build() throws -> WebRTCProtoVideoStreamingStatus {
|
|
|
|
return try WebRTCProtoVideoStreamingStatus.parseProto(proto)
|
|
|
|
return try WebRTCProtoVideoStreamingStatus.parseProto(proto)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -244,15 +231,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
self.id = id
|
|
|
|
self.id = id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc
|
|
|
|
@objc
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
return try self.proto.serializedData()
|
|
|
|
return try self.proto.serializedData()
|
|
|
@ -279,6 +257,22 @@ public enum WebRTCProtoError: Error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoVideoStreamingStatus {
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoVideoStreamingStatus.WebRTCProtoVideoStreamingStatusBuilder {
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoVideoStreamingStatus? {
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// MARK: - WebRTCProtoData
|
|
|
|
// MARK: - WebRTCProtoData
|
|
|
|
|
|
|
|
|
|
|
|
@objc public class WebRTCProtoData: NSObject {
|
|
|
|
@objc public class WebRTCProtoData: NSObject {
|
|
|
@ -303,15 +297,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
proto.videoStreamingStatus = valueParam.proto
|
|
|
|
proto.videoStreamingStatus = valueParam.proto
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoData? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc public func build() throws -> WebRTCProtoData {
|
|
|
|
@objc public func build() throws -> WebRTCProtoData {
|
|
|
|
return try WebRTCProtoData.parseProto(proto)
|
|
|
|
return try WebRTCProtoData.parseProto(proto)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -339,15 +324,6 @@ public enum WebRTCProtoError: Error {
|
|
|
|
self.videoStreamingStatus = videoStreamingStatus
|
|
|
|
self.videoStreamingStatus = videoStreamingStatus
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NOTE: This method is intended for debugging purposes only.
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
guard _isDebugAssertConfiguration() else {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@objc
|
|
|
|
@objc
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
public func serializedData() throws -> Data {
|
|
|
|
return try self.proto.serializedData()
|
|
|
|
return try self.proto.serializedData()
|
|
|
@ -359,17 +335,17 @@ public enum WebRTCProtoError: Error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fileprivate class func parseProto(_ proto: WebRTCProtos_Data) throws -> WebRTCProtoData {
|
|
|
|
fileprivate class func parseProto(_ proto: WebRTCProtos_Data) throws -> WebRTCProtoData {
|
|
|
|
var connected: WebRTCProtoConnected?
|
|
|
|
var connected: WebRTCProtoConnected? = nil
|
|
|
|
if proto.hasConnected {
|
|
|
|
if proto.hasConnected {
|
|
|
|
connected = try WebRTCProtoConnected.parseProto(proto.connected)
|
|
|
|
connected = try WebRTCProtoConnected.parseProto(proto.connected)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var hangup: WebRTCProtoHangup?
|
|
|
|
var hangup: WebRTCProtoHangup? = nil
|
|
|
|
if proto.hasHangup {
|
|
|
|
if proto.hasHangup {
|
|
|
|
hangup = try WebRTCProtoHangup.parseProto(proto.hangup)
|
|
|
|
hangup = try WebRTCProtoHangup.parseProto(proto.hangup)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var videoStreamingStatus: WebRTCProtoVideoStreamingStatus?
|
|
|
|
var videoStreamingStatus: WebRTCProtoVideoStreamingStatus? = nil
|
|
|
|
if proto.hasVideoStreamingStatus {
|
|
|
|
if proto.hasVideoStreamingStatus {
|
|
|
|
videoStreamingStatus = try WebRTCProtoVideoStreamingStatus.parseProto(proto.videoStreamingStatus)
|
|
|
|
videoStreamingStatus = try WebRTCProtoVideoStreamingStatus.parseProto(proto.videoStreamingStatus)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -385,3 +361,19 @@ public enum WebRTCProtoError: Error {
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoData {
|
|
|
|
|
|
|
|
@objc public func serializedDataIgnoringErrors() -> Data? {
|
|
|
|
|
|
|
|
return try! self.serializedData()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extension WebRTCProtoData.WebRTCProtoDataBuilder {
|
|
|
|
|
|
|
|
@objc public func buildIgnoringErrors() -> WebRTCProtoData? {
|
|
|
|
|
|
|
|
return try! self.build()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|