mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 07:27:42 +02:00
Expose better broadcast details to the view
Starting from the sender name but we can add more things. This is up to the design expectation
This commit is contained in:
@@ -30,27 +30,30 @@ enum VoiceBroadcastPlaybackState {
|
||||
case error
|
||||
}
|
||||
|
||||
// TODO: Keept it? It is always player
|
||||
enum VoiceBroadcastPlaybackType {
|
||||
case player
|
||||
case recorder
|
||||
}
|
||||
|
||||
struct VoiceBroadcastPlaybackDetails {
|
||||
var type: VoiceBroadcastPlaybackType
|
||||
var chunks: [VoiceBroadcastChunk]
|
||||
let type: VoiceBroadcastPlaybackType // TODO: Keept it? It is always player
|
||||
let senderDisplayName: String?
|
||||
}
|
||||
|
||||
struct VoiceBroadcastPlaybackViewState: BindableState {
|
||||
var voiceBroadcast: VoiceBroadcastPlaybackDetails
|
||||
var details: VoiceBroadcastPlaybackDetails
|
||||
var playbackState: VoiceBroadcastPlaybackState
|
||||
var bindings: VoiceBroadcastPlaybackViewStateBindings
|
||||
}
|
||||
|
||||
struct VoiceBroadcastPlaybackViewStateBindings {
|
||||
// TODO: Neeeded?
|
||||
var alertInfo: AlertInfo<VoiceBroadcastPlaybackAlertType>?
|
||||
}
|
||||
|
||||
enum VoiceBroadcastPlaybackAlertType {
|
||||
// TODO: What is it?
|
||||
case failedClosingVoiceBroadcast
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user