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
22 lines
430 B
Swift
22 lines
430 B
Swift
import Foundation
|
|
|
|
extension Amiibo {
|
|
public struct Release {
|
|
public let australia: Date?
|
|
public let europe: Date?
|
|
public let japan: Date?
|
|
public let america: Date?
|
|
}
|
|
}
|
|
|
|
// MARK: - Decodable
|
|
|
|
extension Amiibo.Release: Decodable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case australia = "au"
|
|
case europe = "eu"
|
|
case japan = "jp"
|
|
case america = "na"
|
|
}
|
|
}
|