[Feature] Service #4

Merged
javier merged 13 commits from feature/service into main 2023-04-21 18:16:38 +00:00
2 changed files with 16 additions and 2 deletions
Showing only changes of commit 60c1bf55db - Show all commits

View File

@ -8,8 +8,8 @@ public struct KeyNameFilter {
// MARK: Initialisers // MARK: Initialisers
public init( public init(
key: String?, key: String? = nil,
name: String? name: String? = nil
) { ) {
self.key = key self.key = key
self.name = name self.name = name

View File

@ -0,0 +1,14 @@
import Foundation
protocol Service {
// MARK: Functions
func amiibos(filter: AmiiboFilter) async throws -> [Amiibo]
func amiiboSeries(filter: AmiiboSeriesFilter) async throws -> [AmiiboSeries]
func amiiboTypes(filter: AmiiboTypeFilter) async throws -> [AmiiboType]
func gameSeries(filter: GameSeriesFilter) async throws -> [GameSeries]
func characters(filter: CharacterFilter) async throws -> [Character]
func lastUpdated() async throws -> Date
}