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
18 lines
368 B
Swift
18 lines
368 B
Swift
extension Amiibo {
|
|
public struct Game {
|
|
public let identifiers: [String]
|
|
public let name: String
|
|
public let usage: [Usage]
|
|
}
|
|
}
|
|
|
|
// MARK: - Decodable
|
|
|
|
extension Amiibo.Game: Decodable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case identifiers = "gameID"
|
|
case name = "gameName"
|
|
case usage = "amiiboUsage"
|
|
}
|
|
}
|