Skip to content

AQAquamarine/android-AquaModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

android-AquaModel

Built on top of

  • Gson
  • Volley
  • Retrofit
  • EventBus
  • ObservableList

Model

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);
}

Requestable

Album.list();
Album.fetch(3);
album.fetch();
album.push();

And will post an event via EventBus!

Validatable

album.validate();

Serializable

album.toJson();
Album.create(hash);

Callbackable

album.save();
// will invoke album.beforeSave();

About

(will rename to AquaModel)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published