Back to project page android-model-record.
The source code is released under:
MIT License
If you think the Android project android-model-record listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fanpics.opensource.android.modelrecord; // ww w . j av a 2 s .co m import retrofit.client.Response; public class Result<T> { final Response response; final T model; private boolean cacheable; public Result(Response response, T model) { this.response = response; this.model = model; this.cacheable = true; } public Response getResponse() { return response; } public T getModel() { return model; } public void disableCaching() { cacheable = false; } public boolean shouldCache() { return cacheable; } }