Commit 2aaa51fe8670284e7e7c30e574e76a4c11a2d854

Authored by Igor Kulikov
1 parent f1e91d1d

Data query serialization improvements

@@ -15,10 +15,12 @@ @@ -15,10 +15,12 @@
15 */ 15 */
16 package org.thingsboard.server.service.telemetry.cmd.v2; 16 package org.thingsboard.server.service.telemetry.cmd.v2;
17 17
  18 +import lombok.Data;
18 import org.thingsboard.server.common.data.query.EntityKey; 19 import org.thingsboard.server.common.data.query.EntityKey;
19 20
20 import java.util.List; 21 import java.util.List;
21 22
  23 +@Data
22 public class LatestValueCmd { 24 public class LatestValueCmd {
23 25
24 private List<EntityKey> keys; 26 private List<EntityKey> keys;
@@ -15,8 +15,11 @@ @@ -15,8 +15,11 @@
15 */ 15 */
16 package org.thingsboard.server.service.telemetry.cmd.v2; 16 package org.thingsboard.server.service.telemetry.cmd.v2;
17 17
  18 +import lombok.Data;
  19 +
18 import java.util.List; 20 import java.util.List;
19 21
  22 +@Data
20 public class TimeSeriesCmd { 23 public class TimeSeriesCmd {
21 24
22 private List<String> keys; 25 private List<String> keys;
@@ -16,9 +16,11 @@ @@ -16,9 +16,11 @@
16 package org.thingsboard.server.common.data.query; 16 package org.thingsboard.server.common.data.query;
17 17
18 import com.fasterxml.jackson.annotation.JsonIgnore; 18 import com.fasterxml.jackson.annotation.JsonIgnore;
  19 +import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
19 import com.fasterxml.jackson.annotation.JsonSubTypes; 20 import com.fasterxml.jackson.annotation.JsonSubTypes;
20 import com.fasterxml.jackson.annotation.JsonTypeInfo; 21 import com.fasterxml.jackson.annotation.JsonTypeInfo;
21 22
  23 +@JsonIgnoreProperties(ignoreUnknown = true)
22 @JsonTypeInfo( 24 @JsonTypeInfo(
23 use = JsonTypeInfo.Id.NAME, 25 use = JsonTypeInfo.Id.NAME,
24 include = JsonTypeInfo.As.PROPERTY, 26 include = JsonTypeInfo.As.PROPERTY,