Edge dashboard msg - added isMobileHide and mobileOrder
This commit is contained in:
		
							parent
							
								
									87ab3e255e
								
							
						
					
					
						commit
						bc7ef38ee6
					
				@ -33,13 +33,17 @@ public class DashboardMsgConstructor {
 | 
			
		||||
                .setIdMSB(dashboard.getId().getId().getMostSignificantBits())
 | 
			
		||||
                .setIdLSB(dashboard.getId().getId().getLeastSignificantBits())
 | 
			
		||||
                .setTitle(dashboard.getTitle())
 | 
			
		||||
                .setConfiguration(JacksonUtil.toString(dashboard.getConfiguration()));
 | 
			
		||||
                .setConfiguration(JacksonUtil.toString(dashboard.getConfiguration()))
 | 
			
		||||
                .setMobileHide(dashboard.isMobileHide());
 | 
			
		||||
        if (dashboard.getAssignedCustomers() != null) {
 | 
			
		||||
            builder.setAssignedCustomers(JacksonUtil.toString(dashboard.getAssignedCustomers()));
 | 
			
		||||
        }
 | 
			
		||||
        if (dashboard.getImage() != null) {
 | 
			
		||||
            builder.setImage(dashboard.getImage());
 | 
			
		||||
        }
 | 
			
		||||
        if (dashboard.getMobileOrder() != null) {
 | 
			
		||||
            builder.setMobileOrder(dashboard.getMobileOrder());
 | 
			
		||||
        }
 | 
			
		||||
        return builder.build();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -52,6 +52,9 @@ public abstract class BaseDashboardProcessor extends BaseEdgeProcessor {
 | 
			
		||||
            dashboard.setAssignedCustomers(assignedCustomers);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        dashboard.setMobileOrder(dashboardUpdateMsg.hasMobileOrder() ? dashboardUpdateMsg.getMobileOrder() : null);
 | 
			
		||||
        dashboard.setMobileHide(dashboardUpdateMsg.getMobileHide());
 | 
			
		||||
 | 
			
		||||
        dashboardValidator.validate(dashboard, Dashboard::getTenantId);
 | 
			
		||||
        if (created) {
 | 
			
		||||
            dashboard.setId(dashboardId);
 | 
			
		||||
 | 
			
		||||
@ -188,6 +188,8 @@ message DashboardUpdateMsg {
 | 
			
		||||
  string configuration = 7;
 | 
			
		||||
  optional string assignedCustomers = 8;
 | 
			
		||||
  optional string image = 9;
 | 
			
		||||
  optional int32 mobileOrder = 10;
 | 
			
		||||
  bool mobileHide = 11;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message DeviceUpdateMsg {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user