edu.ksu.canvas.interfaces.ResponseParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas-api Show documentation
Show all versions of canvas-api Show documentation
A native Java library to talk to the Canvas REST API
package edu.ksu.canvas.interfaces;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import edu.ksu.canvas.net.Response;
public interface ResponseParser {
List parseToList(Type type, Response response);
Optional parseToObject(Class clazz, Response response);
Map parseToMap(Class clazz, Response response);
}