Added image for edge dashboard msg
This commit is contained in:
parent
c408eb611a
commit
ef29f52abd
@ -37,6 +37,9 @@ public class DashboardMsgConstructor {
|
||||
if (dashboard.getAssignedCustomers() != null) {
|
||||
builder.setAssignedCustomers(JacksonUtil.toString(dashboard.getAssignedCustomers()));
|
||||
}
|
||||
if (dashboard.getImage() != null) {
|
||||
builder.setImage(dashboard.getImage());
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
|
||||
@ -42,6 +42,7 @@ public abstract class BaseDashboardProcessor extends BaseEdgeProcessor {
|
||||
dashboard.setCreatedTime(Uuids.unixTimestamp(dashboardId.getId()));
|
||||
}
|
||||
dashboard.setTitle(dashboardUpdateMsg.getTitle());
|
||||
dashboard.setImage(dashboardUpdateMsg.hasImage() ? dashboardUpdateMsg.getImage() : null);
|
||||
dashboard.setConfiguration(JacksonUtil.toJsonNode(dashboardUpdateMsg.getConfiguration()));
|
||||
Set<ShortCustomerInfo> assignedCustomers = null;
|
||||
if (dashboardUpdateMsg.hasAssignedCustomers()) {
|
||||
|
||||
@ -187,6 +187,7 @@ message DashboardUpdateMsg {
|
||||
string title = 6;
|
||||
string configuration = 7;
|
||||
optional string assignedCustomers = 8;
|
||||
optional string image = 9;
|
||||
}
|
||||
|
||||
message DeviceUpdateMsg {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user