2023-04-18 18:37:08 +00:00
|
|
|
extension Amiibo {
|
|
|
|
public struct Game {
|
|
|
|
public let identifiers: [String]
|
|
|
|
public let name: String
|
2023-04-20 01:25:54 +02:00
|
|
|
public let usage: [Usage]?
|
2023-04-18 18:37:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: - Decodable
|
|
|
|
|
|
|
|
extension Amiibo.Game: Decodable {
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
|
|
case identifiers = "gameID"
|
|
|
|
case name = "gameName"
|
|
|
|
case usage = "amiiboUsage"
|
|
|
|
}
|
|
|
|
}
|