com.box.restclientv2.responseparsers.IBoxResponseParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxjavalibv2 Show documentation
Show all versions of boxjavalibv2 Show documentation
The Java SDK for the Box API.
package com.box.restclientv2.responseparsers;
import com.box.restclientv2.exceptions.BoxRestException;
import com.box.restclientv2.responses.IBoxResponse;
/**
* Interface for the class of object to be converted from API response. Although this interface is on REST client level, application level can still implement
* this interface and directly use the object converted from response in their application level. Implementation of other interfaces(such as Parcelable) may be
* needed then.
*/
public interface IBoxResponseParser {
/**
* Parese the API response into this object.
*
* @param response
* API response.
* @return
* @throws BoxRestException
*/
Object parse(IBoxResponse response) throws BoxRestException;
}