All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.octo.android.robospice.request.retrofit.RetrofitSpiceRequest Maven / Gradle / Ivy

There is a newer version: 1.4.14
Show newest version
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