Created
January 2, 2019 06:36
-
-
Save vishalhalani/d01d72267a278f79844eb38182aad0ab to your computer and use it in GitHub Desktop.
base model to post request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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