AutoCat/AutoCatCore/Services/RecordPlayerService/RecordPlayerServiceProtocol.swift

22 lines
450 B
Swift

//
// RecordPlayerServiceProtocol.swift
// AutoCatCore
//
// Created by Selim Mustafaev on 31.03.2025.
// Copyright © 2025 Selim Mustafaev. All rights reserved.
//
import Mockable
@Mockable
public protocol RecordPlayerServiceProtocol {
var currentPlayingId: String? { get }
func play(
record: AudioRecordDto,
onStop: ((AudioRecordDto, Error?) -> Void)?,
onProgress: ((Double) -> Void)?
) throws
}