1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- package com.persagy.entity;
- import com.alibaba.fastjson.JSON;
- import com.alibaba.fastjson.JSONObject;
- import lombok.extern.slf4j.Slf4j;
- import org.zillion.util.json.FastJsonUtil;
- import javax.xml.bind.annotation.XmlRootElement;
- @Slf4j
- @XmlRootElement(name = "EntityDynamicData")
- public class EntityDynamicData {
- public EntityDynamicData() {
- }
- public EntityDynamicData(String str) {
- try {
- JSONObject json = (JSONObject) JSON.parse(str);
- FastJsonUtil.Set_JavaObject(json, this);
- } catch (Exception e) {
- log.error(e.getMessage(),e);
- }
- }
- String time;
- Double value;
- public String getTime() {
- return time;
- }
- public void setTime(String time) {
- this.time = time;
- }
- public Double getValue() {
- return value;
- }
- public void setValue(Double value) {
- this.value = value;
- }
- }
|