Skip to content

Instantly share code, notes, and snippets.

@vishalhalani
Created January 2, 2019 06:36
Show Gist options
  • Save vishalhalani/d01d72267a278f79844eb38182aad0ab to your computer and use it in GitHub Desktop.
Save vishalhalani/d01d72267a278f79844eb38182aad0ab to your computer and use it in GitHub Desktop.
base model to post request
public class BaseModel<T> {
@SerializedName("request")
@Expose
private String requestName;
@SerializedName("para")
@Expose
private T model;
public BaseModel(String requestName, T model) {
this.requestName = requestName;
this.model = model;
}
public String getRequestName() {
return requestName;
}
public void setRequestName(String requestName) {
this.requestName = requestName;
}
public T getModel() {
return model;
}
public void setModel(T model) {
this.model = model;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment