LocationInfo.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package com.ruoyi.bd.domain;
  2. import com.alibaba.fastjson2.JSONObject;
  3. public class LocationInfo {
  4. double latitude;
  5. double longitude;
  6. long srcTimestamp; // 时间戳,单位毫秒
  7. long handleTimestamp;
  8. long evtTimestamp;
  9. String bizId;
  10. String key;
  11. JSONObject msg;
  12. public LocationInfo(double latitude, double longitude, long srcTimestamp) {
  13. this.latitude = latitude;
  14. this.longitude = longitude;
  15. this.srcTimestamp = srcTimestamp;
  16. }
  17. public double getLatitude() {
  18. return latitude;
  19. }
  20. public void setLatitude(double latitude) {
  21. this.latitude = latitude;
  22. }
  23. public double getLongitude() {
  24. return longitude;
  25. }
  26. public void setLongitude(double longitude) {
  27. this.longitude = longitude;
  28. }
  29. public long getSrcTimestamp() {
  30. return srcTimestamp;
  31. }
  32. public void setSrcTimestamp(long srcTimestamp) {
  33. this.srcTimestamp = srcTimestamp;
  34. }
  35. public long getHandleTimestamp() {
  36. return handleTimestamp;
  37. }
  38. public void setHandleTimestamp(long handleTimestamp) {
  39. this.handleTimestamp = handleTimestamp;
  40. }
  41. public long getEvtTimestamp() {
  42. return evtTimestamp;
  43. }
  44. public void setEvtTimestamp(long evtTimestamp) {
  45. this.evtTimestamp = evtTimestamp;
  46. }
  47. public JSONObject getMsg() {
  48. return msg;
  49. }
  50. public void setMsg(JSONObject msg) {
  51. this.msg = msg;
  52. }
  53. public String getBizId() {
  54. return bizId;
  55. }
  56. public void setBizId(String bizId) {
  57. this.bizId = bizId;
  58. }
  59. public String getKey() {
  60. return key;
  61. }
  62. public void setKey(String key) {
  63. this.key = key;
  64. }
  65. }