AutoCat/AutoCatCore/Services/VehicleService/VehicleServiceProtocol.swift

19 lines
577 B
Swift

//
// VehicleServiceProtocol.swift
// AutoCatCore
//
// Created by Selim Mustafaev on 19.01.2025.
// Copyright © 2025 Selim Mustafaev. All rights reserved.
//
import Mockable
@Mockable
public protocol VehicleServiceProtocol: Sendable {
func check(number: String, trackLocation: Bool) async throws -> VehicleWithErrors
func updateHistory(number: String) async throws -> VehicleWithErrors
func updateSearch(number: String) async throws -> VehicleWithErrors
func checkRecord(number: String, event: VehicleEventDto?) async throws -> VehicleWithErrors
}