From c1e7ce4f8bdde9c24711a3187695c7bae2f0c568 Mon Sep 17 00:00:00 2001 From: lucas-mrq Date: Wed, 24 Apr 2024 09:15:42 +0200 Subject: [PATCH] Add nullable Layer Id to all LayerId --- src/IoTHub.Portal.Client/Pages/Layer/LayerDetailsPage.razor | 2 +- src/IoTHub.Portal.Shared/Models/v1.0/DeviceDetails.cs | 2 +- src/IoTHub.Portal.Shared/Models/v1.0/DeviceListItem.cs | 2 +- .../Models/v1.0/Filters/DeviceListFilter.cs | 2 +- src/IoTHub.Portal.Shared/Models/v1.0/IDeviceDetails.cs | 2 +- .../Models/v1.0/LoRaWAN/LoRaDeviceDetails.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/IoTHub.Portal.Client/Pages/Layer/LayerDetailsPage.razor b/src/IoTHub.Portal.Client/Pages/Layer/LayerDetailsPage.razor index 8e091bd09..868fe11d5 100644 --- a/src/IoTHub.Portal.Client/Pages/Layer/LayerDetailsPage.razor +++ b/src/IoTHub.Portal.Client/Pages/Layer/LayerDetailsPage.razor @@ -13,7 +13,7 @@ public List InitLayers = new List(); [Parameter] - public string LayerId { get; set; } + public string? LayerId { get; set; } protected override async Task OnInitializedAsync() { diff --git a/src/IoTHub.Portal.Shared/Models/v1.0/DeviceDetails.cs b/src/IoTHub.Portal.Shared/Models/v1.0/DeviceDetails.cs index d0a213f7b..e0ad39b13 100644 --- a/src/IoTHub.Portal.Shared/Models/v1.0/DeviceDetails.cs +++ b/src/IoTHub.Portal.Shared/Models/v1.0/DeviceDetails.cs @@ -77,6 +77,6 @@ public class DeviceDetails : IDeviceDetails /// /// The LayerId of the device. /// - public string LayerId { get; set; } + public string? LayerId { get; set; } } } diff --git a/src/IoTHub.Portal.Shared/Models/v1.0/DeviceListItem.cs b/src/IoTHub.Portal.Shared/Models/v1.0/DeviceListItem.cs index 6722d8798..22b5c95d9 100644 --- a/src/IoTHub.Portal.Shared/Models/v1.0/DeviceListItem.cs +++ b/src/IoTHub.Portal.Shared/Models/v1.0/DeviceListItem.cs @@ -65,6 +65,6 @@ public class DeviceListItem /// /// The LayerId of the device. /// - public string LayerId { get; set; } + public string? LayerId { get; set; } } } diff --git a/src/IoTHub.Portal.Shared/Models/v1.0/Filters/DeviceListFilter.cs b/src/IoTHub.Portal.Shared/Models/v1.0/Filters/DeviceListFilter.cs index 1cc7e953a..349e95f5a 100644 --- a/src/IoTHub.Portal.Shared/Models/v1.0/Filters/DeviceListFilter.cs +++ b/src/IoTHub.Portal.Shared/Models/v1.0/Filters/DeviceListFilter.cs @@ -19,6 +19,6 @@ public class DeviceListFilter : PaginationFilter public List Labels { get; set; } = new(); - public string LayerId { get; set; } = default!; + public string? LayerId { get; set; } = default!; } } diff --git a/src/IoTHub.Portal.Shared/Models/v1.0/IDeviceDetails.cs b/src/IoTHub.Portal.Shared/Models/v1.0/IDeviceDetails.cs index 9e4a3f762..688f4a1df 100644 --- a/src/IoTHub.Portal.Shared/Models/v1.0/IDeviceDetails.cs +++ b/src/IoTHub.Portal.Shared/Models/v1.0/IDeviceDetails.cs @@ -62,6 +62,6 @@ public interface IDeviceDetails /// /// The LayerId of the device. /// - public string LayerId { get; set; } + public string? LayerId { get; set; } } } diff --git a/src/IoTHub.Portal.Shared/Models/v1.0/LoRaWAN/LoRaDeviceDetails.cs b/src/IoTHub.Portal.Shared/Models/v1.0/LoRaWAN/LoRaDeviceDetails.cs index 7a9c16bda..dc67cf776 100644 --- a/src/IoTHub.Portal.Shared/Models/v1.0/LoRaWAN/LoRaDeviceDetails.cs +++ b/src/IoTHub.Portal.Shared/Models/v1.0/LoRaWAN/LoRaDeviceDetails.cs @@ -148,7 +148,7 @@ public class LoRaDeviceDetails : LoRaDeviceBase, IDeviceDetails /// /// The LayerId of the device. /// - public string LayerId { get; set; } = default!; + public string? LayerId { get; set; } = default!; /// /// A value indicating whether the downlinks are enabled (True if not provided)