Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public class SelectTodoQuery {
  2.  
  3. @SerializedName("type")
  4. String type = "select";
  5.  
  6. @SerializedName("args")
  7. Args args;
  8.  
  9. public SelectTodoQuery(Integer userId) {
  10. args = new Args();
  11. args.where = new Where();
  12. args.where.userId = userId;
  13. }
  14.  
  15. class Args {
  16.  
  17. @SerializedName("table")
  18. String table = "todo";
  19.  
  20. @SerializedName("columns")
  21. String[] columns = {
  22. "id","title","completed"
  23. };
  24.  
  25. @SerializedName("where")
  26. Where where;
  27.  
  28. }
  29.  
  30. class Where {
  31. @SerializedName("user_id")
  32. Integer userId;
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement