diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-09-03 10:59:40 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2021-09-03 10:59:40 -0600 |
| commit | 47be1bf69f62d72ecf81cc95347f3c8c5a6a5174 (patch) | |
| tree | a295e94fb27871908efee659115f341e87ca2a90 /Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs | |
| parent | 79e51b7fa20dbcb013ddd335fa829f83802dae71 (diff) | |
Enable nullable for SchedulesDirect
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs index fb7a31ac85..0cd05709b3 100644 --- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs +++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirectDtos/RequestScheduleForChannelDto.cs @@ -1,5 +1,4 @@ -#nullable disable - +using System; using System.Collections.Generic; using System.Text.Json.Serialization; @@ -14,12 +13,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos /// Gets or sets the station id. /// </summary> [JsonPropertyName("stationID")] - public string StationId { get; set; } + public string? StationId { get; set; } /// <summary> /// Gets or sets the list of dates. /// </summary> [JsonPropertyName("date")] - public List<string> Date { get; set; } + public IReadOnlyList<string> Date { get; set; } = Array.Empty<string>(); } } |
