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
14 lines
226 B
Swift
14 lines
226 B
Swift
import Foundation
|
|
|
|
public struct LastUpdated {
|
|
public let timestamp: Date
|
|
}
|
|
|
|
// MARK: - Decodable
|
|
|
|
extension LastUpdated: Decodable {
|
|
enum CodingKeys: String, CodingKey {
|
|
case timestamp = "lastUpdated"
|
|
}
|
|
}
|