Skip to content

Android Application Based on MVVM + Retrofit + Data Binding + Parcelable + DiffUtil

Notifications You must be signed in to change notification settings

Masum-ipv/GloboFly

Repository files navigation

Android application is built based on the MVVM architectural pattern

  • Model-View-ViewModel (MVVM) software design pattern has been followed.
  • Retrofit is type-safe REST client for Android and Java.
  • Data Binding library which connects Views with Data..
  • Parcelable is a serialization mechanism provided by Android.
  • DiffUtils is used to track changes made to the RecyclerView Adapter.

As webservice this Spring Boot Application has been used.

Installation

Clone the Repository from Github

git clone [email protected]:Masum-ipv/GloboFly.git

APIs

    @GET("destination")
    Call<List<Destination>> getDestinations();

    @GET("messages")
    Call<String> getMessage();

    @GET("destination/{id}")
    Call<Destination> getDestination(@Path("id") int id);

    @POST("destination")
    Call<Destination> addDestination(@Body Destination destination);

    @PUT("destination/{id}")
    Call<Destination> updateDestination(@Path("id") int id, @Body Destination destination);

    @DELETE("destination/{id}")
    Call<Destination> deleteDestination(@Path("id") int id);

alt text

About

Android Application Based on MVVM + Retrofit + Data Binding + Parcelable + DiffUtil

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages