Last active
May 4, 2020 12:43
-
-
Save farzadshbfn/8e1e5bb5799fdc2e776bc0547b8f8f45 to your computer and use it in GitHub Desktop.
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
struct User { | |
typealias Id = String | |
let id: Id | |
let cellNumber: CellNumber | |
let status: Status | |
enum Status { | |
case notRegistered | |
case registered(profile: Profile) | |
} | |
struct Profile { | |
let name: String | |
let lastName: String | |
let email: Email? | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment