EntityDynamicData.java 808 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.persagy.entity;
  2. import com.alibaba.fastjson.JSON;
  3. import com.alibaba.fastjson.JSONObject;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.zillion.util.json.FastJsonUtil;
  6. import javax.xml.bind.annotation.XmlRootElement;
  7. @Slf4j
  8. @XmlRootElement(name = "EntityDynamicData")
  9. public class EntityDynamicData {
  10. public EntityDynamicData() {
  11. }
  12. public EntityDynamicData(String str) {
  13. try {
  14. JSONObject json = (JSONObject) JSON.parse(str);
  15. FastJsonUtil.Set_JavaObject(json, this);
  16. } catch (Exception e) {
  17. log.error(e.getMessage(),e);
  18. }
  19. }
  20. String time;
  21. Double value;
  22. public String getTime() {
  23. return time;
  24. }
  25. public void setTime(String time) {
  26. this.time = time;
  27. }
  28. public Double getValue() {
  29. return value;
  30. }
  31. public void setValue(Double value) {
  32. this.value = value;
  33. }
  34. }