Skip to content

Instantly share code, notes, and snippets.

View sunluman's full-sized avatar
🏠
Working from home

luman sunluman

🏠
Working from home
View GitHub Profile
enum ResponseType{
ERROR(ResponseError.class,"code")
,RESPONSE(Response.class,"feeTier","updateTime");
private final String[] keys;
private final Class responseClass;
ResponseType(Class responseClass,String...keys){
this.responseClass = responseClass;
this.keys = keys;
}