Last active
December 12, 2016 02:19
-
-
Save tmtrademarked/41a1ed87c32bffdc89cc6bb8d4b79210 to your computer and use it in GitHub Desktop.
Simple Recipe example
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
public class Recipe extends RealmObject { | |
// Recipe overview - sent from overview endpoint. | |
@PrimaryKey | |
public String id; | |
public boolean available; | |
public String description; | |
public String url; | |
// Recipe detail - sent from detail endpoint, along with the ID. | |
public int calories_per_serving; | |
public int servings; | |
public String full_name; | |
public String main_name; | |
public String sub_name; | |
public int cook_time_min; | |
public int cook_time_max; | |
public int prep_time_min; | |
public int prep_time_max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment