com.yy.httpproxy.ReplyHandler Maven / Gradle / Ivy
package com.yy.httpproxy;
import android.util.Log;
import com.google.gson.Gson;
import java.lang.reflect.Type;
public abstract class ReplyHandler {
public Class clazz;
private Type type;
public ReplyHandler() {
}
public ReplyHandler(Class clazz) {
this.clazz = clazz;
}
public ReplyHandler(Type type) {
this.type = type;
}
public abstract void onSuccess(T result);
public abstract void onError(int code, String message);
}