Added image for edge dashboard msg

This commit is contained in:
Volodymyr Babak 2023-08-29 13:40:06 +03:00
parent c408eb611a
commit ef29f52abd
3 changed files with 5 additions and 0 deletions

View File

@ -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();
}

View File

@ -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()) {

View File

@ -187,6 +187,7 @@ message DashboardUpdateMsg {
string title = 6;
string configuration = 7;
optional string assignedCustomers = 8;
optional string image = 9;
}
message DeviceUpdateMsg {