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

com.box.restclientv2.responseparsers.IBoxResponseParser Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy