
com.box.restclientv2.interfaces.IBoxResponseParser Maven / Gradle / Ivy
package com.box.restclientv2.interfaces;
import com.box.restclientv2.exceptions.BoxRestException;
/**
* 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;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy