/src/main/java/com/intrans/timeli/middleware/entities/InrixData.java

https://bitbucket.org/rbyna/timeli-middleware · Java · 125 lines · 98 code · 26 blank · 1 comment · 0 complexity · 9560db0ceff1e0e31db25748657ff23f MD5 · raw file

  1. package com.intrans.timeli.middleware.entities;
  2. import com.querydsl.core.annotations.QueryEntity;
  3. import org.springframework.data.mongodb.core.mapping.Document;
  4. import java.io.Serializable;
  5. @QueryEntity
  6. @Document(collection="testinrixdata")
  7. public class InrixData implements Serializable{
  8. private String code;
  9. private String cvalue;
  10. private String reference;
  11. private String score;
  12. private String speed;
  13. private String average;
  14. private String type;
  15. private String travelTimeMinutes;
  16. private String timestamp;
  17. //For serialization
  18. public InrixData() {
  19. }
  20. public InrixData(String code, String cvalue, String reference, String score, String speed, String average, String type, String travelTimeMinutes, String timestamp) {
  21. this.code = code;
  22. this.cvalue = cvalue;
  23. this.reference = reference;
  24. this.score = score;
  25. this.speed = speed;
  26. this.average = average;
  27. this.type = type;
  28. this.travelTimeMinutes = travelTimeMinutes;
  29. this.timestamp = timestamp;
  30. }
  31. public String getCode() {
  32. return code;
  33. }
  34. public void setCode(String code) {
  35. this.code = code;
  36. }
  37. public String getCvalue() {
  38. return cvalue;
  39. }
  40. public void setCvalue(String cvalue) {
  41. this.cvalue = cvalue;
  42. }
  43. public String getReference() {
  44. return reference;
  45. }
  46. public void setReference(String reference) {
  47. this.reference = reference;
  48. }
  49. public String getScore() {
  50. return score;
  51. }
  52. public void setScore(String score) {
  53. this.score = score;
  54. }
  55. public String getSpeed() {
  56. return speed;
  57. }
  58. public void setSpeed(String speed) {
  59. this.speed = speed;
  60. }
  61. public String getAverage() {
  62. return average;
  63. }
  64. public void setAverage(String average) {
  65. this.average = average;
  66. }
  67. public String getType() {
  68. return type;
  69. }
  70. public void setType(String type) {
  71. this.type = type;
  72. }
  73. public String getTravelTimeMinutes() {
  74. return travelTimeMinutes;
  75. }
  76. public void setTravelTimeMinutes(String travelTimeMinutes) {
  77. this.travelTimeMinutes = travelTimeMinutes;
  78. }
  79. public String getTimestamp() {
  80. return timestamp;
  81. }
  82. public void setTimestamp(String timestamp) {
  83. this.timestamp = timestamp;
  84. }
  85. @Override
  86. public String toString() {
  87. return "InrixData{" +
  88. "code='" + code + '\'' +
  89. ", cvalue='" + cvalue + '\'' +
  90. ", reference='" + reference + '\'' +
  91. ", score='" + score + '\'' +
  92. ", speed='" + speed + '\'' +
  93. ", average='" + average + '\'' +
  94. ", type='" + type + '\'' +
  95. ", travelTimeMinutes='" + travelTimeMinutes + '\'' +
  96. ", timestamp='" + timestamp + '\'' +
  97. '}';
  98. }
  99. }