com.octo.android.robospice.request.retrofit.RetrofitSpiceRequest Maven / Gradle / Ivy
package com.octo.android.robospice.request.retrofit;
import com.octo.android.robospice.request.SpiceRequest;
/**
* A simplified {@link SpiceRequest} that makes it even easier to use a
* retrofited REST service.
* @author SNI
* @param
* the result type of this request.
* @param
* the retrofited interface used by this request.
*/
public abstract class RetrofitSpiceRequest extends SpiceRequest {
private Class retrofitedInterfaceClass;
private R service;
public RetrofitSpiceRequest(Class clazz, Class retrofitedInterfaceClass) {
super(clazz);
this.retrofitedInterfaceClass = retrofitedInterfaceClass;
}
public Class getRetrofitedInterfaceClass() {
return retrofitedInterfaceClass;
}
public void setService(R service) {
this.service = service;
}
public R getService() {
return service;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy