Last active
April 12, 2020 22:04
-
-
Save willwfsp/2a5a274dd144d31fb7498344d0bc4f38 to your computer and use it in GitHub Desktop.
Kinds of models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Entity Model | |
struct User { | |
let name: String | |
let email: String | |
let nickName: String | |
} | |
// Event | |
struct ViewScreen { | |
let sessionId: String | |
let screenName: String | |
let date: String | |
} | |
// Action | |
struct TargetAction { | |
let target: Any | |
let controlEvent: UIControlEvent | |
let action: () -> Void | |
} | |
// Other Data Structures | |
struct Error { | |
let message: String | |
let domain: String | |
} | |
struct Coodinate { | |
let latitude: Double | |
let longitude: Double | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment