package cmcc.iot.onenet.javasdk.response.datastreams;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

public class DatastreamsResponse {
	@JsonProperty("id")
	private  String id;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonProperty("create_time")
	private  Date createTime;
	@JsonProperty("tags")
	private List<String> tags;
	@JsonProperty("unit")
	private String unit;
	@JsonProperty("unit_symbol")
	private  String unitSymbol;
	@JsonProperty("current_value")
	private Object currentValue;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonProperty("update_at")
	private Date updateAt;
	@JsonProperty("formula")
	private String formula;
	@JsonProperty("interval")
	private int interval;
	@JsonProperty("cmd")
	private String cmd;
	@JsonCreator
	public DatastreamsResponse(@JsonProperty("id")String id, @JsonProperty("create_time")Date createTime, @JsonProperty("tags")List<String> tags, @JsonProperty("unit")String unit, @JsonProperty("unit_symbol")String unitSymbol,
			@JsonProperty("current_value") Object currentValue,@JsonProperty("update_at")Date updateAt,@JsonProperty("formula")String formula,@JsonProperty("interval")int interval,@JsonProperty("cmd")String cmd) {
		super();
		this.id = id;
		this.createTime = createTime;
		this.tags = tags;
		this.unit = unit;
		this.unitSymbol = unitSymbol;
		this.currentValue = currentValue;
		this.updateAt = updateAt;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public List<String> getTags() {
		return tags;
	}
	public void setTags(List<String> tags) {
		this.tags = tags;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getUnitSymbol() {
		return unitSymbol;
	}
	public void setUnitSymbol(String unitSymbol) {
		this.unitSymbol = unitSymbol;
	}
	public Object getCurrentValue() {
		return currentValue;
	}
	public void setCurrentValue(Object currentValue) {
		this.currentValue = currentValue;
	}
	public Date getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}
	/*public static  class CurrentValue{
		@JsonProperty("index")
		private String index;

	
		public String getIndex() {
			return index;
		}


		public void setIndex(String index) {
			this.index = index;
		}


		@JsonCreator
		public CurrentValue(@JsonProperty("index")String index) {
			super();
			this.index = index;
		}
	}*/
	
}

@@ -894,16 +894,61 @@
 ng cmd;%0A
+%09@JsonProperty(%22uuid%22)%0A%09private String uuid;%0A
 %09@JsonCr
@@ -953,16 +953,16 @@
 Creator%0A
-
 %09public 
@@ -1378,16 +1378,49 @@
 ring cmd
+,@JsonProperty(%22uuid%22)String uuid
 ) %7B%0A%09%09su
@@ -1602,32 +1602,116 @@
 eAt = updateAt;%0A
+%09%09this.formula=formula;%0A%09%09this.interval=interval;%0A%09%09this.cmd=cmd;%0A%09%09this.uuid=uuid;%0A
 %09%7D%0A%09public Strin
@@ -2462,24 +2462,24 @@
 pdateAt() %7B%0A
-
 %09%09return upd
@@ -2484,24 +2484,470 @@
 pdateAt;%0A%09%7D%0A
+%09public String getFormula() %7B%0A%09%09return formula;%0A%09%7D%0A%09public void setFormula(String formula) %7B%0A%09%09this.formula = formula;%0A%09%7D%0A%09public int getInterval() %7B%0A%09%09return interval;%0A%09%7D%0A%09public void setInterval(int interval) %7B%0A%09%09this.interval = interval;%0A%09%7D%0A%09public String getCmd() %7B%0A%09%09return cmd;%0A%09%7D%0A%09public void setCmd(String cmd) %7B%0A%09%09this.cmd = cmd;%0A%09%7D%0A%09public String getUuid() %7B%0A%09%09return uuid;%0A%09%7D%0A%09public void setUuid(String uuid) %7B%0A%09%09this.uuid = uuid;%0A%09%7D%0A
 %09public void

Update DatastreamsResponse.java