com.octo.android.robospice.request.retrofit
Class RetrofitSpiceRequest<T,R>

java.lang.Object
  extended by com.octo.android.robospice.request.SpiceRequest<T>
      extended by com.octo.android.robospice.request.retrofit.RetrofitSpiceRequest<T,R>
Type Parameters:
T - the result type of this request.
R - the retrofited interface used by this request.
All Implemented Interfaces:
Comparable<SpiceRequest<T>>

public abstract class RetrofitSpiceRequest<T,R>
extends SpiceRequest<T>

A simplified SpiceRequest that makes it even easier to use a retrofited REST service.

Author:
SNI

Field Summary
 
Fields inherited from class com.octo.android.robospice.request.SpiceRequest
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL
 
Constructor Summary
RetrofitSpiceRequest(Class<T> clazz, Class<R> retrofitedInterfaceClass)
           
 
Method Summary
 Class<R> getRetrofitedInterfaceClass()
           
 R getService()
           
 void setService(R service)
           
 
Methods inherited from class com.octo.android.robospice.request.SpiceRequest
cancel, compareTo, getPriority, getResultType, getRetryPolicy, isAggregatable, isCancelled, loadDataFromNetwork, publishProgress, publishProgress, setAggregatable, setFuture, setPriority, setRequestCancellationListener, setRequestProgressListener, setRetryPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetrofitSpiceRequest

public RetrofitSpiceRequest(Class<T> clazz,
                            Class<R> retrofitedInterfaceClass)
Method Detail

getRetrofitedInterfaceClass

public Class<R> getRetrofitedInterfaceClass()

setService

public void setService(R service)

getService

public R getService()


Copyright © 2012-2014. All Rights Reserved.