2024-06-27 14:07:44 +03:00
|
|
|
//
|
2024-09-06 16:34:30 +03:00
|
|
|
// Copyright 2024 New Vector Ltd.
|
2024-06-27 14:07:44 +03:00
|
|
|
//
|
2025-01-06 11:27:37 +01:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
|
// Please see LICENSE files in the repository root for full details.
|
2024-06-27 14:07:44 +03:00
|
|
|
//
|
|
|
|
|
|
|
|
import Combine
|
|
|
|
import Foundation
|
|
|
|
|
2024-08-21 17:48:57 +01:00
|
|
|
struct ElementCallServiceMockConfiguration {
|
|
|
|
var ongoingCallRoomID: String?
|
|
|
|
}
|
2024-06-27 14:07:44 +03:00
|
|
|
|
|
|
|
extension ElementCallServiceMock {
|
|
|
|
convenience init(_ configuration: ElementCallServiceMockConfiguration) {
|
|
|
|
self.init()
|
|
|
|
|
|
|
|
underlyingActions = PassthroughSubject().eraseToAnyPublisher()
|
2024-08-21 17:48:57 +01:00
|
|
|
underlyingOngoingCallRoomIDPublisher = .init(.init(configuration.ongoingCallRoomID))
|
2024-06-27 14:07:44 +03:00
|
|
|
}
|
|
|
|
}
|