Logo
Explore Help
Sign In
rock-n-code/deep-linking-sample
rock-n-code/deep-linking-sample
1
0
Fork 0
You've already forked deep-linking-sample
Code Pull Requests Releases 2 Wiki Activity
deep-linking-sample/Apps/Locations/Libraries/Sources/Remote/Protocols/Service.swift

20 lines
390 B
Swift
Raw Permalink Normal View History

[Improvement] Small, tiny things (#14) This PR contains the work on implementing some public interfaces that were forgotten during the development of this app and, of course, improves the text of the README file a bit more. To give further details about the work done: - [x] implemented the `Service` protocol in the `Persistence` library and conformed the `PersistenceService` service to it; - [x] implemented the `Service` protocol in the `Remote` library and conformed the `RemoteService` service to it; - [x] implemented the `Application` protocol in the `Core` library and conformed the `UIApplication` class to it; - [x] improved the dependency keys used by the `DependencyService` service to use these protocols instead; - [x] tweaked the text of the README file. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: https://repo.rock-n-code.com/rock-n-code/deep-linking-assignment/pulls/14
2023-04-13 13:34:06 +00:00
//
// Service.swift
// Remote
//
// Created by Javier Cicchelli on 13/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved.
//
import Foundation
public protocol Service {
// MARK: Functions
/// Retrieve a set of locations.
/// - Returns: The set of locations represented as a `Location` instances.
func getLocations() async throws -> [Location]
}
Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 78ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API