[Feature] Service #4
@ -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
|
||||||
|
14
Sources/Protocols/Service.swift
Normal file
14
Sources/Protocols/Service.swift
Normal 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
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user