Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SelectTodoQuery {
- @SerializedName("type")
- String type = "select";
- @SerializedName("args")
- Args args;
- public SelectTodoQuery(Integer userId) {
- args = new Args();
- args.where = new Where();
- args.where.userId = userId;
- }
- class Args {
- @SerializedName("table")
- String table = "todo";
- @SerializedName("columns")
- String[] columns = {
- "id","title","completed"
- };
- @SerializedName("where")
- Where where;
- }
- class Where {
- @SerializedName("user_id")
- Integer userId;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement