Skip to content

Commit

Permalink
Add nullable Layer Id to all LayerId
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-mrq committed Apr 24, 2024
1 parent 79de7ad commit c1e7ce4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public List<LayerDto> InitLayers = new List<LayerDto>();

[Parameter]
public string LayerId { get; set; }
public string? LayerId { get; set; }

protected override async Task OnInitializedAsync()
{
Expand Down
2 changes: 1 addition & 1 deletion src/IoTHub.Portal.Shared/Models/v1.0/DeviceDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ public class DeviceDetails : IDeviceDetails
/// <summary>
/// The LayerId of the device.
/// </summary>
public string LayerId { get; set; }
public string? LayerId { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/IoTHub.Portal.Shared/Models/v1.0/DeviceListItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ public class DeviceListItem
/// <summary>
/// The LayerId of the device.
/// </summary>
public string LayerId { get; set; }
public string? LayerId { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class DeviceListFilter : PaginationFilter

public List<string> Labels { get; set; } = new();

public string LayerId { get; set; } = default!;
public string? LayerId { get; set; } = default!;
}
}
2 changes: 1 addition & 1 deletion src/IoTHub.Portal.Shared/Models/v1.0/IDeviceDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ public interface IDeviceDetails
/// <summary>
/// The LayerId of the device.
/// </summary>
public string LayerId { get; set; }
public string? LayerId { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public class LoRaDeviceDetails : LoRaDeviceBase, IDeviceDetails
/// <summary>
/// The LayerId of the device.
/// </summary>
public string LayerId { get; set; } = default!;
public string? LayerId { get; set; } = default!;

/// <summary>
/// A value indicating whether the downlinks are enabled (True if not provided)
Expand Down

0 comments on commit c1e7ce4

Please sign in to comment.