This PR contains the implementation of all the models used by this service: `Amiibo`, `Amiibo.Game`, `Amiibo.Release`, `Amiibo.Usage`, `KeyName` and `LastUpdated`. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: #1
16 lines
316 B
Swift
16 lines
316 B
Swift
public struct KeyName {
|
|
public let key: String
|
|
public let name: String?
|
|
}
|
|
|
|
// MARK: - Decodable
|
|
|
|
extension KeyName: Decodable {}
|
|
|
|
// MARK: - Type aliases
|
|
|
|
public typealias AmiiboType = KeyName
|
|
public typealias AmiiboSeries = KeyName
|
|
public typealias GameSeries = KeyName
|
|
public typealias Character = KeyName
|