From 81d9057540f28b6070135ff1e136cc918331c9c3 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 17 Dec 2023 07:34:12 +1100 Subject: [PATCH] workaround swiftformat issue --- .../OCC/ControlDataTypes/MediaStreamDataTypes.swift | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/SwiftOCA/OCC/ControlDataTypes/MediaStreamDataTypes.swift b/Sources/SwiftOCA/OCC/ControlDataTypes/MediaStreamDataTypes.swift index 4e736e8e..c8962d8c 100644 --- a/Sources/SwiftOCA/OCC/ControlDataTypes/MediaStreamDataTypes.swift +++ b/Sources/SwiftOCA/OCC/ControlDataTypes/MediaStreamDataTypes.swift @@ -188,15 +188,16 @@ public enum OcaMediaStreamModeCapabilityDirection: OcaUint8, Codable, Sendable { } public struct OcaMediaTransportSession: Codable, Sendable { + public typealias ConnectionStateMap = + [OcaMediaTransportSessionConnectionID: OcaMediaTransportSessionConnectionState] + public let idInternal: OcaMediaTransportSessionID public let idExternal: OcaBlob public let userLabel: OcaString public let streamingEnabled: OcaBoolean public let adaptationData: OcaAdaptationData public let connections: [OcaMediaTransportSessionConnection] - public let connectionStates: [ - OcaMediaTransportSessionConnectionID: OcaMediaTransportSessionConnectionState - ] + public let connectionStates: ConnectionStateMap /* public let transportSessionConnection: OcaMediaTransportSessionConnection public let transportSessionAgent: OcaMediaTransportSessionAgent @@ -209,9 +210,7 @@ public struct OcaMediaTransportSession: Codable, Sendable { streamingEnabled: OcaBoolean, adaptationData: OcaAdaptationData, connections: [OcaMediaTransportSessionConnection], - connectionStates: [ - OcaMediaTransportSessionConnectionID: OcaMediaTransportSessionConnectionState, - ] + connectionStates: ConnectionStateMap ) { self.idInternal = idInternal self.idExternal = idExternal