mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 19:34:25 +02:00
Removed VoiceBroadcastProtocol
We do not need to abstract it
This commit is contained in:
@@ -48,7 +48,7 @@ public class VoiceBroadcastAggregator {
|
||||
|
||||
private var events: [MXEvent] = []
|
||||
|
||||
public private(set) var voiceBroadcast: VoiceBroadcastProtocol! {
|
||||
public private(set) var voiceBroadcast: VoiceBroadcast! {
|
||||
didSet {
|
||||
delegate?.voiceBroadcastAggregatorDidUpdateData(self)
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import Foundation
|
||||
|
||||
struct VoiceBroadcastBuilder {
|
||||
|
||||
func build(voiceBroadcastStartEventContent: VoiceBroadcastInfo, events: [MXEvent], currentUserIdentifier: String, hasBeenEdited: Bool = false) -> VoiceBroadcastProtocol {
|
||||
func build(voiceBroadcastStartEventContent: VoiceBroadcastInfo, events: [MXEvent], currentUserIdentifier: String, hasBeenEdited: Bool = false) -> VoiceBroadcast {
|
||||
|
||||
let voiceBroadcast = VoiceBroadcast()
|
||||
|
||||
|
||||
@@ -16,17 +16,12 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
public protocol VoiceBroadcastProtocol {
|
||||
var chunks: Set<VoiceBroadcastChunk> { get }
|
||||
var kind: VoiceBroadcastKind { get }
|
||||
}
|
||||
|
||||
public enum VoiceBroadcastKind {
|
||||
case player
|
||||
case recorder
|
||||
}
|
||||
|
||||
class VoiceBroadcast: VoiceBroadcastProtocol {
|
||||
public struct VoiceBroadcast {
|
||||
var chunks: Set<VoiceBroadcastChunk> = []
|
||||
var kind: VoiceBroadcastKind = .player
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user