Created
March 25, 2019 19:26
-
-
Save NunoAlexandre/43644efec05ddf2061299eeac55ca9e1 to your computer and use it in GitHub Desktop.
Stork Example Types
This file contains 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 { | |
let id: Int | |
let name: String | |
let email: String? | |
let country: Country? | |
let subscription: Subscription | |
let favouriteSongs: [Song] | |
} | |
enum Subscription: String { | |
case free | |
case bronze | |
case silver | |
case gold | |
} | |
enum Country: String { | |
case netherlands | |
case portugal | |
} | |
struct Song: Equatable { | |
let name: String | |
let band: String | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment