Intro

The total scenario of A network calling is to communicate with server then get back the result. So, to handle this two action using this library you need to instantiate ApiAdapter class to perform A network call and invoke NetworkResponse interface to receive the results (to receive both error and success message)

To receive the authentication error respones, if occours only for status code 401 & 403.

`void onAuthError(
NetworkStatus networkStatus,
Object reference);`

Cache

To use the cache, pass the last paramater boolean useCache as true in every network call. You'll get cached data if you have stored them erlier, meaning to say, this module automatically store response as cache if you pass useCache = true. So, if you don't hit the endpoint with these method with useCache = true, you won't get cache data later.