|
|
|
@ -15,6 +15,7 @@ |
|
|
|
*/ |
|
|
|
package org.thingsboard.server.service.ws.telemetry.sub; |
|
|
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.thingsboard.server.common.data.kv.TsKvEntry; |
|
|
|
import org.thingsboard.server.service.subscription.SubscriptionErrorCode; |
|
|
|
|
|
|
|
@ -26,8 +27,8 @@ import java.util.Map; |
|
|
|
import java.util.TreeMap; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@AllArgsConstructor |
|
|
|
public class TelemetrySubscriptionUpdate { |
|
|
|
|
|
|
|
private final int subscriptionId; |
|
|
|
private int errorCode; |
|
|
|
private String errorMsg; |
|
|
|
@ -93,6 +94,10 @@ public class TelemetrySubscriptionUpdate { |
|
|
|
return errorMsg; |
|
|
|
} |
|
|
|
|
|
|
|
public TelemetrySubscriptionUpdate copyWithNewSubscriptionId(int subscriptionId){ |
|
|
|
return new TelemetrySubscriptionUpdate(subscriptionId, errorCode, errorMsg, data); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
StringBuilder result = new StringBuilder("TelemetrySubscriptionUpdate [subscriptionId=" + subscriptionId + ", errorCode=" + errorCode + ", errorMsg=" + errorMsg + ", data="); |
|
|
|
|