Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Instruction {
- number: Int
- text: String
- videos: [VideoURL]
- allowsRecording: Bool
- time: TimeInterval?
- }
- struct Ingredient {
- quantity: Int
- unit: String
- name: String
- other: String?
- comment: String?
- input: String
- }
- enum RecipeTag {
- vegan, vege, halal, pescatarian...
- }
- struct Recipe {
- source: URL
- instructions: [Instruction]
- ingredients: [Ingredient]
- photo: Image?
- time: TimeInterval?
- tags: [RecipeTag]
- servings: Int? // if doesn't exist, assume 1 serving
- difficulty: Double // percentage???
- }
- struct User {
- name: String
- username: String
- email: String
- password: String
- recipes: [Recipe]
- experience: Double // percentage
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement