-
Notifications
You must be signed in to change notification settings - Fork 3
Models
rustie edited this page Apr 10, 2018
·
1 revision
Contains Java object models for important data classes. Those that are pulled and populated from the back end must use proper Retrofit annotation syntax, specifying serialized names:
@SerializedName("breakfast_menu")
private ArrayList<FoodItem> breakfastMenu;
@SerializedName("breakfast_open")
private Date breakfastOpen;
@SerializedName("breakfast_close")
private Date breakfastClose;
Not too creative (Rustie), so both DiningHall
s and Cafe
s extend FoodPlace
. The syntax for using
the related adapters/FoodPlaceAdapter
uses enums:
public enum FoodType {
DiningHall,
Cafe
}
...
public FoodPlaceAdapter(Context context, List<FoodPlace> foodPlaces, FoodType type) {
mFoodPlaceList = foodPlaces;
mContext = context;
foodType = type;
}
Contain POJO responses from the backend, used in conjunction with Retrofit.
- Home
- Controllers
- Dagger
- Domain
- Infrastructure
- Utilities
- Values
- Functional Docs