Built on top of
- Gson
- Volley
- Retrofit
- EventBus
- ObservableList
class Album extends AquaModel {
@Identifier public string id;
@Presence @ShorterThan(256) public String title;
@BeforeSave
private void beforeSave { .. }
}
interface AlbumService {
@GET("/albums/{id}")
List<Album> listAlbums(@Path("id") String id);
}
Album.list();
Album.fetch(3);
album.fetch();
album.push();
And will post an event via EventBus!
album.validate();
album.toJson();
Album.create(hash);
album.save();
// will invoke album.beforeSave();