Skip to content

An implementation of retrofit2 with Model view presenter architecture in android

License

Notifications You must be signed in to change notification settings

tahmidmozaffar/Retrofit2WithMVP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retrofit2WithMVP

This is an implementation of Retrofit2 with Model View Presenter architecture.

In this project 'https://jsonplaceholder.typicode.com' API is used to test GET request.

To use it in your api change RetrofitApiService according to your api calls and implement RestClient and RestService interface.

Please see RetrofitManager class to see where actual retrofit Call is made.

Also, add callback class and pass reference of RequestListener interface. Please see RequestCallback class for reference.

As you see,this implementation is only for async call.

TO DO: Add support for sync call

About

An implementation of retrofit2 with Model view presenter architecture in android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages