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.

RoutesDbo.java 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package com.rthoni.stssaguenay.dbo;
  2. import com.luticate.utils.dbo.LuDbo;
  3. import com.luticate.utils.dbo.LuPaginatedDbo;
  4. import org.json.JSONException;
  5. import org.json.JSONObject;
  6. import java.util.HashMap;
  7. /**
  8. * Created by robin on 9/30/16.
  9. */
  10. public class RoutesDbo extends LuDbo {
  11. public static class PaginatedRoutesDbo extends LuPaginatedDbo<RoutesDbo>
  12. {
  13. }
  14. protected String _id;
  15. protected String _name;
  16. protected String _bgColor;
  17. protected String _fgColor;
  18. // @Override
  19. // public void fromJson(JSONObject json) throws JSONException {
  20. // _id = json.getString("id");
  21. // _name = json.getString("name");
  22. // _bgColor = json.getString("bgColor");
  23. // _fgColor = json.getString("fgColor");
  24. // }
  25. //
  26. // @Override
  27. // public HashMap<String, Object> toArray() {
  28. // HashMap<String, Object> map = new HashMap<>();
  29. // map.put("id", _id);
  30. // map.put("name", _name);
  31. // map.put("bgColor", _bgColor);
  32. // map.put("fgColor", _fgColor);
  33. // return map;
  34. // }
  35. public String getId() {
  36. return _id;
  37. }
  38. public void setId(String id) {
  39. _id = id;
  40. }
  41. public String getFullName()
  42. {
  43. return String.format("%s - %s", _id, _name);
  44. }
  45. public String getName() {
  46. return _name;
  47. }
  48. public void setName(String name) {
  49. _name = name;
  50. }
  51. public String getBgColor() {
  52. return _bgColor;
  53. }
  54. public void setBgColor(String bgColor) {
  55. _bgColor = bgColor;
  56. }
  57. public String getFgColor() {
  58. return _fgColor;
  59. }
  60. public void setFgColor(String fgColor) {
  61. _fgColor = fgColor;
  62. }
  63. }