22 lines
556 B
Swift
22 lines
556 B
Swift
//
|
|
// LocationServiceProtocol.swift
|
|
// AutoCatCore
|
|
//
|
|
// Created by Selim Mustafaev on 31.07.2024.
|
|
// Copyright © 2024 Selim Mustafaev. All rights reserved.
|
|
//
|
|
|
|
import Mockable
|
|
|
|
@MainActor
|
|
@Mockable
|
|
public protocol LocationServiceProtocol: Sendable {
|
|
|
|
var lastEvent: VehicleEventDto? { get }
|
|
|
|
func getAddressForLocation(latitude: Double, longitude: Double) async throws -> String
|
|
func requestCurrentLocation() async throws -> VehicleEventDto
|
|
func getRecentLocation() async throws -> VehicleEventDto
|
|
func resetLastEvent()
|
|
}
|