Implemented the AmiiboRelease model.
This commit is contained in:
parent
a1fcfdefae
commit
1b83f45867
21
Sources/Models/AmiiboRelease.swift
Normal file
21
Sources/Models/AmiiboRelease.swift
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user