mirror of
https://github.com/hyperoslo/Cache.git
synced 2026-04-07 19:17:36 +00:00
18 lines
354 B
Swift
18 lines
354 B
Swift
import Foundation
|
|
@testable import Cache
|
|
|
|
struct User: Codable, Equatable {
|
|
let firstName: String
|
|
let lastName: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case firstName = "first_name"
|
|
case lastName = "last_name"
|
|
}
|
|
}
|
|
|
|
func == (lhs:User, rhs: User) -> Bool {
|
|
return lhs.firstName == rhs.firstName
|
|
&& lhs.lastName == rhs.lastName
|
|
}
|