You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
559 B
38 lines
559 B
package db.form;
|
|
|
|
|
|
import core.util.ToJSON;
|
|
|
|
public class JsonResult<T> extends ToJSON {
|
|
|
|
private T data;
|
|
|
|
private Type type;
|
|
|
|
private DBAction action;
|
|
|
|
|
|
public void setData(T data) {
|
|
this.data = data;
|
|
}
|
|
|
|
public void setType(Type type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public void setAction(DBAction action) {
|
|
this.action = action;
|
|
}
|
|
|
|
public T getData() {
|
|
return data;
|
|
}
|
|
|
|
public Type getType() {
|
|
return type;
|
|
}
|
|
|
|
public DBAction getAction() {
|
|
return action;
|
|
}
|
|
}
|
|
|