com.duowan.mobile.netroid
Interface Network

All Known Implementing Classes:
BasicNetwork

public interface Network

An interface for performing requests.


Method Summary
 NetworkResponse performRequest(Request<?> request)
          Performs the specified request.
 void setDelivery(Delivery delivery)
          Set the request delivery that use to post http networking callbacks.
 

Method Detail

setDelivery

void setDelivery(Delivery delivery)
Set the request delivery that use to post http networking callbacks.


performRequest

NetworkResponse performRequest(Request<?> request)
                               throws NetroidError
Performs the specified request.

Parameters:
request - Request to process
Returns:
A NetworkResponse with data and caching metadata; will never be null
Throws:
NetroidError - on errors