Enable nullable for SchedulesDirect

This commit is contained in:
Cody Robibero 2021-09-03 10:59:40 -06:00
parent 79e51b7fa2
commit 47be1bf69f
34 changed files with 153 additions and 213 deletions

View File

@ -16,7 +16,6 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos; using Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos;
using Jellyfin.Extensions.Json; using Jellyfin.Extensions.Json;
using MediaBrowser.Common;
using MediaBrowser.Common.Net; using MediaBrowser.Common.Net;
using MediaBrowser.Controller.LiveTv; using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Model.Cryptography; using MediaBrowser.Model.Cryptography;
@ -34,7 +33,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings
private readonly ILogger<SchedulesDirect> _logger; private readonly ILogger<SchedulesDirect> _logger;
private readonly IHttpClientFactory _httpClientFactory; private readonly IHttpClientFactory _httpClientFactory;
private readonly SemaphoreSlim _tokenSemaphore = new SemaphoreSlim(1, 1); private readonly SemaphoreSlim _tokenSemaphore = new SemaphoreSlim(1, 1);
private readonly IApplicationHost _appHost;
private readonly ICryptoProvider _cryptoProvider; private readonly ICryptoProvider _cryptoProvider;
private readonly ConcurrentDictionary<string, NameValuePair> _tokens = new ConcurrentDictionary<string, NameValuePair>(); private readonly ConcurrentDictionary<string, NameValuePair> _tokens = new ConcurrentDictionary<string, NameValuePair>();
@ -44,12 +42,10 @@ namespace Emby.Server.Implementations.LiveTv.Listings
public SchedulesDirect( public SchedulesDirect(
ILogger<SchedulesDirect> logger, ILogger<SchedulesDirect> logger,
IHttpClientFactory httpClientFactory, IHttpClientFactory httpClientFactory,
IApplicationHost appHost,
ICryptoProvider cryptoProvider) ICryptoProvider cryptoProvider)
{ {
_logger = logger; _logger = logger;
_httpClientFactory = httpClientFactory; _httpClientFactory = httpClientFactory;
_appHost = appHost;
_cryptoProvider = cryptoProvider; _cryptoProvider = cryptoProvider;
} }
@ -120,8 +116,8 @@ namespace Emby.Server.Implementations.LiveTv.Listings
using var programRequestOptions = new HttpRequestMessage(HttpMethod.Post, ApiUrl + "/programs"); using var programRequestOptions = new HttpRequestMessage(HttpMethod.Post, ApiUrl + "/programs");
programRequestOptions.Headers.TryAddWithoutValidation("token", token); programRequestOptions.Headers.TryAddWithoutValidation("token", token);
var programsID = dailySchedules.SelectMany(d => d.Programs.Select(s => s.ProgramId)).Distinct(); var programIds = dailySchedules.SelectMany(d => d.Programs.Select(s => s.ProgramId)).Distinct();
programRequestOptions.Content = new StringContent("[\"" + string.Join("\", \"", programsID) + "\"]", Encoding.UTF8, MediaTypeNames.Application.Json); programRequestOptions.Content = new StringContent("[\"" + string.Join("\", \"", programIds) + "\"]", Encoding.UTF8, MediaTypeNames.Application.Json);
using var innerResponse = await Send(programRequestOptions, true, info, cancellationToken).ConfigureAwait(false); using var innerResponse = await Send(programRequestOptions, true, info, cancellationToken).ConfigureAwait(false);
await using var innerResponseStream = await innerResponse.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); await using var innerResponseStream = await innerResponse.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
@ -225,21 +221,21 @@ namespace Emby.Server.Implementations.LiveTv.Listings
string newID = programId + "T" + startAt.Ticks + "C" + channelId; string newID = programId + "T" + startAt.Ticks + "C" + channelId;
if (programInfo.AudioProperties != null) if (programInfo.AudioProperties.Count != 0)
{ {
if (programInfo.AudioProperties.Exists(item => string.Equals(item, "atmos", StringComparison.OrdinalIgnoreCase))) if (programInfo.AudioProperties.Contains("atmos", StringComparer.OrdinalIgnoreCase))
{ {
audioType = ProgramAudio.Atmos; audioType = ProgramAudio.Atmos;
} }
else if (programInfo.AudioProperties.Exists(item => string.Equals(item, "dd 5.1", StringComparison.OrdinalIgnoreCase))) else if (programInfo.AudioProperties.Contains("dd 5.1", StringComparer.OrdinalIgnoreCase))
{ {
audioType = ProgramAudio.DolbyDigital; audioType = ProgramAudio.DolbyDigital;
} }
else if (programInfo.AudioProperties.Exists(item => string.Equals(item, "dd", StringComparison.OrdinalIgnoreCase))) else if (programInfo.AudioProperties.Contains("dd", StringComparer.OrdinalIgnoreCase))
{ {
audioType = ProgramAudio.DolbyDigital; audioType = ProgramAudio.DolbyDigital;
} }
else if (programInfo.AudioProperties.Exists(item => string.Equals(item, "stereo", StringComparison.OrdinalIgnoreCase))) else if (programInfo.AudioProperties.Contains("stereo", StringComparer.OrdinalIgnoreCase))
{ {
audioType = ProgramAudio.Stereo; audioType = ProgramAudio.Stereo;
} }
@ -520,7 +516,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
lineups.Add(new NameIdPair lineups.Add(new NameIdPair
{ {
Name = string.IsNullOrWhiteSpace(lineup.Name) ? lineup.Lineup : lineup.Name, Name = string.IsNullOrWhiteSpace(lineup.Name) ? lineup.Lineup : lineup.Name,
Id = lineup.Uri[18..] Id = lineup.Uri?[18..]
}); });
} }
} }
@ -790,7 +786,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
{ {
var channelNumber = GetChannelNumber(channel); var channelNumber = GetChannelNumber(channel);
var station = allStations.Find(item => string.Equals(item.StationId, channel.StationId, StringComparison.OrdinalIgnoreCase)) var station = allStations.FirstOrDefault(item => string.Equals(item.StationId, channel.StationId, StringComparison.OrdinalIgnoreCase))
?? new StationDto ?? new StationDto
{ {
StationId = channel.StationId StationId = channel.StationId

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,24 +11,24 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the city. /// Gets or sets the city.
/// </summary> /// </summary>
[JsonPropertyName("city")] [JsonPropertyName("city")]
public string City { get; set; } public string? City { get; set; }
/// <summary> /// <summary>
/// Gets or sets the state. /// Gets or sets the state.
/// </summary> /// </summary>
[JsonPropertyName("state")] [JsonPropertyName("state")]
public string State { get; set; } public string? State { get; set; }
/// <summary> /// <summary>
/// Gets or sets the postal code. /// Gets or sets the postal code.
/// </summary> /// </summary>
[JsonPropertyName("postalCode")] [JsonPropertyName("postalCode")]
public string Postalcode { get; set; } public string? Postalcode { get; set; }
/// <summary> /// <summary>
/// Gets or sets the country. /// Gets or sets the country.
/// </summary> /// </summary>
[JsonPropertyName("country")] [JsonPropertyName("country")]
public string Country { get; set; } public string? Country { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,12 +11,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the content. /// Gets or sets the content.
/// </summary> /// </summary>
[JsonPropertyName("content")] [JsonPropertyName("content")]
public string Content { get; set; } public string? Content { get; set; }
/// <summary> /// <summary>
/// Gets or sets the lang. /// Gets or sets the lang.
/// </summary> /// </summary>
[JsonPropertyName("lang")] [JsonPropertyName("lang")]
public string Lang { get; set; } public string? Lang { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,36 +11,36 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the billing order. /// Gets or sets the billing order.
/// </summary> /// </summary>
[JsonPropertyName("billingOrder")] [JsonPropertyName("billingOrder")]
public string BillingOrder { get; set; } public string? BillingOrder { get; set; }
/// <summary> /// <summary>
/// Gets or sets the role. /// Gets or sets the role.
/// </summary> /// </summary>
[JsonPropertyName("role")] [JsonPropertyName("role")]
public string Role { get; set; } public string? Role { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name id. /// Gets or sets the name id.
/// </summary> /// </summary>
[JsonPropertyName("nameId")] [JsonPropertyName("nameId")]
public string NameId { get; set; } public string? NameId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the person id. /// Gets or sets the person id.
/// </summary> /// </summary>
[JsonPropertyName("personId")] [JsonPropertyName("personId")]
public string PersonId { get; set; } public string? PersonId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string? Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the character name. /// Gets or sets the character name.
/// </summary> /// </summary>
[JsonPropertyName("characterName")] [JsonPropertyName("characterName")]
public string CharacterName { get; set; } public string? CharacterName { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,18 +13,18 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the list of maps. /// Gets or sets the list of maps.
/// </summary> /// </summary>
[JsonPropertyName("map")] [JsonPropertyName("map")]
public List<MapDto> Map { get; set; } public IReadOnlyList<MapDto> Map { get; set; } = Array.Empty<MapDto>();
/// <summary> /// <summary>
/// Gets or sets the list of stations. /// Gets or sets the list of stations.
/// </summary> /// </summary>
[JsonPropertyName("stations")] [JsonPropertyName("stations")]
public List<StationDto> Stations { get; set; } public IReadOnlyList<StationDto> Stations { get; set; } = Array.Empty<StationDto>();
/// <summary> /// <summary>
/// Gets or sets the metadata. /// Gets or sets the metadata.
/// </summary> /// </summary>
[JsonPropertyName("metadata")] [JsonPropertyName("metadata")]
public MetadataDto Metadata { get; set; } public MetadataDto? Metadata { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,12 +11,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the body. /// Gets or sets the body.
/// </summary> /// </summary>
[JsonPropertyName("body")] [JsonPropertyName("body")]
public string Body { get; set; } public string? Body { get; set; }
/// <summary> /// <summary>
/// Gets or sets the code. /// Gets or sets the code.
/// </summary> /// </summary>
[JsonPropertyName("code")] [JsonPropertyName("code")]
public string Code { get; set; } public string? Code { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,30 +11,30 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the billing order. /// Gets or sets the billing order.
/// </summary> /// </summary>
[JsonPropertyName("billingOrder")] [JsonPropertyName("billingOrder")]
public string BillingOrder { get; set; } public string? BillingOrder { get; set; }
/// <summary> /// <summary>
/// Gets or sets the role. /// Gets or sets the role.
/// </summary> /// </summary>
[JsonPropertyName("role")] [JsonPropertyName("role")]
public string Role { get; set; } public string? Role { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name id. /// Gets or sets the name id.
/// </summary> /// </summary>
[JsonPropertyName("nameId")] [JsonPropertyName("nameId")]
public string NameId { get; set; } public string? NameId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the person id. /// Gets or sets the person id.
/// </summary> /// </summary>
[JsonPropertyName("personId")] [JsonPropertyName("personId")]
public string PersonId { get; set; } public string? PersonId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string? Name { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -10,30 +9,22 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// </summary> /// </summary>
public class DayDto public class DayDto
{ {
/// <summary>
/// Initializes a new instance of the <see cref="DayDto"/> class.
/// </summary>
public DayDto()
{
Programs = new List<ProgramDto>();
}
/// <summary> /// <summary>
/// Gets or sets the station id. /// Gets or sets the station id.
/// </summary> /// </summary>
[JsonPropertyName("stationID")] [JsonPropertyName("stationID")]
public string StationId { get; set; } public string? StationId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of programs. /// Gets or sets the list of programs.
/// </summary> /// </summary>
[JsonPropertyName("programs")] [JsonPropertyName("programs")]
public List<ProgramDto> Programs { get; set; } public IReadOnlyList<ProgramDto> Programs { get; set; } = Array.Empty<ProgramDto>();
/// <summary> /// <summary>
/// Gets or sets the metadata schedule. /// Gets or sets the metadata schedule.
/// </summary> /// </summary>
[JsonPropertyName("metadata")] [JsonPropertyName("metadata")]
public MetadataScheduleDto Metadata { get; set; } public MetadataScheduleDto? Metadata { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,12 +11,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the description language. /// Gets or sets the description language.
/// </summary> /// </summary>
[JsonPropertyName("descriptionLanguage")] [JsonPropertyName("descriptionLanguage")]
public string DescriptionLanguage { get; set; } public string? DescriptionLanguage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the description. /// Gets or sets the description.
/// </summary> /// </summary>
[JsonPropertyName("description")] [JsonPropertyName("description")]
public string Description { get; set; } public string? Description { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,12 +11,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the description language. /// Gets or sets the description language.
/// </summary> /// </summary>
[JsonPropertyName("descriptionLanguage")] [JsonPropertyName("descriptionLanguage")]
public string DescriptionLanguage { get; set; } public string? DescriptionLanguage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the description. /// Gets or sets the description.
/// </summary> /// </summary>
[JsonPropertyName("description")] [JsonPropertyName("description")]
public string Description { get; set; } public string? Description { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,12 +13,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the list of description 100. /// Gets or sets the list of description 100.
/// </summary> /// </summary>
[JsonPropertyName("description100")] [JsonPropertyName("description100")]
public List<Description100Dto> Description100 { get; set; } public IReadOnlyList<Description100Dto> Description100 { get; set; } = Array.Empty<Description100Dto>();
/// <summary> /// <summary>
/// Gets or sets the list of description1000. /// Gets or sets the list of description1000.
/// </summary> /// </summary>
[JsonPropertyName("description1000")] [JsonPropertyName("description1000")]
public List<Description1000Dto> Description1000 { get; set; } public IReadOnlyList<Description1000Dto> Description1000 { get; set; } = Array.Empty<Description1000Dto>();
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,6 +11,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the sub type. /// Gets or sets the sub type.
/// </summary> /// </summary>
[JsonPropertyName("subType")] [JsonPropertyName("subType")]
public string SubType { get; set; } public string? SubType { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,24 +13,24 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the headend. /// Gets or sets the headend.
/// </summary> /// </summary>
[JsonPropertyName("headend")] [JsonPropertyName("headend")]
public string Headend { get; set; } public string? Headend { get; set; }
/// <summary> /// <summary>
/// Gets or sets the transport. /// Gets or sets the transport.
/// </summary> /// </summary>
[JsonPropertyName("transport")] [JsonPropertyName("transport")]
public string Transport { get; set; } public string? Transport { get; set; }
/// <summary> /// <summary>
/// Gets or sets the location. /// Gets or sets the location.
/// </summary> /// </summary>
[JsonPropertyName("location")] [JsonPropertyName("location")]
public string Location { get; set; } public string? Location { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of lineups. /// Gets or sets the list of lineups.
/// </summary> /// </summary>
[JsonPropertyName("lineups")] [JsonPropertyName("lineups")]
public List<LineupDto> Lineups { get; set; } public IReadOnlyList<LineupDto> Lineups { get; set; } = Array.Empty<LineupDto>();
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,60 +11,60 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the width. /// Gets or sets the width.
/// </summary> /// </summary>
[JsonPropertyName("width")] [JsonPropertyName("width")]
public string Width { get; set; } public string? Width { get; set; }
/// <summary> /// <summary>
/// Gets or sets the height. /// Gets or sets the height.
/// </summary> /// </summary>
[JsonPropertyName("height")] [JsonPropertyName("height")]
public string Height { get; set; } public string? Height { get; set; }
/// <summary> /// <summary>
/// Gets or sets the uri. /// Gets or sets the uri.
/// </summary> /// </summary>
[JsonPropertyName("uri")] [JsonPropertyName("uri")]
public string Uri { get; set; } public string? Uri { get; set; }
/// <summary> /// <summary>
/// Gets or sets the size. /// Gets or sets the size.
/// </summary> /// </summary>
[JsonPropertyName("size")] [JsonPropertyName("size")]
public string Size { get; set; } public string? Size { get; set; }
/// <summary> /// <summary>
/// Gets or sets the aspect. /// Gets or sets the aspect.
/// </summary> /// </summary>
[JsonPropertyName("aspect")] [JsonPropertyName("aspect")]
public string aspect { get; set; } public string? aspect { get; set; }
/// <summary> /// <summary>
/// Gets or sets the category. /// Gets or sets the category.
/// </summary> /// </summary>
[JsonPropertyName("category")] [JsonPropertyName("category")]
public string Category { get; set; } public string? Category { get; set; }
/// <summary> /// <summary>
/// Gets or sets the text. /// Gets or sets the text.
/// </summary> /// </summary>
[JsonPropertyName("text")] [JsonPropertyName("text")]
public string Text { get; set; } public string? Text { get; set; }
/// <summary> /// <summary>
/// Gets or sets the primary. /// Gets or sets the primary.
/// </summary> /// </summary>
[JsonPropertyName("primary")] [JsonPropertyName("primary")]
public string Primary { get; set; } public string? Primary { get; set; }
/// <summary> /// <summary>
/// Gets or sets the tier. /// Gets or sets the tier.
/// </summary> /// </summary>
[JsonPropertyName("tier")] [JsonPropertyName("tier")]
public string Tier { get; set; } public string? Tier { get; set; }
/// <summary> /// <summary>
/// Gets or sets the caption. /// Gets or sets the caption.
/// </summary> /// </summary>
[JsonPropertyName("caption")] [JsonPropertyName("caption")]
public CaptionDto Caption { get; set; } public CaptionDto? Caption { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,30 +11,30 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the linup. /// Gets or sets the linup.
/// </summary> /// </summary>
[JsonPropertyName("lineup")] [JsonPropertyName("lineup")]
public string Lineup { get; set; } public string? Lineup { get; set; }
/// <summary> /// <summary>
/// Gets or sets the lineup name. /// Gets or sets the lineup name.
/// </summary> /// </summary>
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string? Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the transport. /// Gets or sets the transport.
/// </summary> /// </summary>
[JsonPropertyName("transport")] [JsonPropertyName("transport")]
public string Transport { get; set; } public string? Transport { get; set; }
/// <summary> /// <summary>
/// Gets or sets the location. /// Gets or sets the location.
/// </summary> /// </summary>
[JsonPropertyName("location")] [JsonPropertyName("location")]
public string Location { get; set; } public string? Location { get; set; }
/// <summary> /// <summary>
/// Gets or sets the uri. /// Gets or sets the uri.
/// </summary> /// </summary>
[JsonPropertyName("uri")] [JsonPropertyName("uri")]
public string Uri { get; set; } public string? Uri { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -20,18 +19,18 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the server id. /// Gets or sets the server id.
/// </summary> /// </summary>
[JsonPropertyName("serverID")] [JsonPropertyName("serverID")]
public string ServerId { get; set; } public string? ServerId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the datetime. /// Gets or sets the datetime.
/// </summary> /// </summary>
[JsonPropertyName("datetime")] [JsonPropertyName("datetime")]
public string Datetime { get; set; } public string? Datetime { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of lineups. /// Gets or sets the list of lineups.
/// </summary> /// </summary>
[JsonPropertyName("lineups")] [JsonPropertyName("lineups")]
public List<LineupDto> Lineups { get; set; } public IReadOnlyList<LineupDto> Lineups { get; set; } = Array.Empty<LineupDto>();
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,7 +11,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the url. /// Gets or sets the url.
/// </summary> /// </summary>
[JsonPropertyName("URL")] [JsonPropertyName("URL")]
public string Url { get; set; } public string? Url { get; set; }
/// <summary> /// <summary>
/// Gets or sets the height. /// Gets or sets the height.
@ -31,6 +29,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the md5. /// Gets or sets the md5.
/// </summary> /// </summary>
[JsonPropertyName("md5")] [JsonPropertyName("md5")]
public string Md5 { get; set; } public string? Md5 { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,19 +11,19 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the station id. /// Gets or sets the station id.
/// </summary> /// </summary>
[JsonPropertyName("stationID")] [JsonPropertyName("stationID")]
public string StationId { get; set; } public string? StationId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the channel. /// Gets or sets the channel.
/// </summary> /// </summary>
[JsonPropertyName("channel")] [JsonPropertyName("channel")]
public string Channel { get; set; } public string? Channel { get; set; }
/// <summary> /// <summary>
/// Gets or sets the logical channel number. /// Gets or sets the logical channel number.
/// </summary> /// </summary>
[JsonPropertyName("logicalChannelNumber")] [JsonPropertyName("logicalChannelNumber")]
public string LogicalChannelNumber { get; set; } public string? LogicalChannelNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets the uhfvhf. /// Gets or sets the uhfvhf.

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,18 +11,18 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the linup. /// Gets or sets the linup.
/// </summary> /// </summary>
[JsonPropertyName("lineup")] [JsonPropertyName("lineup")]
public string Lineup { get; set; } public string? Lineup { get; set; }
/// <summary> /// <summary>
/// Gets or sets the modified timestamp. /// Gets or sets the modified timestamp.
/// </summary> /// </summary>
[JsonPropertyName("modified")] [JsonPropertyName("modified")]
public string Modified { get; set; } public string? Modified { get; set; }
/// <summary> /// <summary>
/// Gets or sets the transport. /// Gets or sets the transport.
/// </summary> /// </summary>
[JsonPropertyName("transport")] [JsonPropertyName("transport")]
public string Transport { get; set; } public string? Transport { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,6 +11,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the gracenote object. /// Gets or sets the gracenote object.
/// </summary> /// </summary>
[JsonPropertyName("gracenote")] [JsonPropertyName("gracenote")]
public GracenoteDto Gracenote { get; set; } public GracenoteDto? Gracenote { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,25 +11,25 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the modified timestamp. /// Gets or sets the modified timestamp.
/// </summary> /// </summary>
[JsonPropertyName("modified")] [JsonPropertyName("modified")]
public string Modified { get; set; } public string? Modified { get; set; }
/// <summary> /// <summary>
/// Gets or sets the md5. /// Gets or sets the md5.
/// </summary> /// </summary>
[JsonPropertyName("md5")] [JsonPropertyName("md5")]
public string Md5 { get; set; } public string? Md5 { get; set; }
/// <summary> /// <summary>
/// Gets or sets the start date. /// Gets or sets the start date.
/// </summary> /// </summary>
[JsonPropertyName("startDate")] [JsonPropertyName("startDate")]
public string StartDate { get; set; } public string? StartDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the end date. /// Gets or sets the end date.
/// </summary> /// </summary>
[JsonPropertyName("endDate")] [JsonPropertyName("endDate")]
public string EndDate { get; set; } public string? EndDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the days count. /// Gets or sets the days count.

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,7 +13,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the year. /// Gets or sets the year.
/// </summary> /// </summary>
[JsonPropertyName("year")] [JsonPropertyName("year")]
public string Year { get; set; } public string? Year { get; set; }
/// <summary> /// <summary>
/// Gets or sets the duration. /// Gets or sets the duration.
@ -26,6 +25,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the list of quality rating. /// Gets or sets the list of quality rating.
/// </summary> /// </summary>
[JsonPropertyName("qualityRating")] [JsonPropertyName("qualityRating")]
public List<QualityRatingDto> QualityRating { get; set; } public IReadOnlyList<QualityRatingDto> QualityRating { get; set; } = Array.Empty<QualityRatingDto>();
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,85 +13,85 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the audience. /// Gets or sets the audience.
/// </summary> /// </summary>
[JsonPropertyName("audience")] [JsonPropertyName("audience")]
public string Audience { get; set; } public string? Audience { get; set; }
/// <summary> /// <summary>
/// Gets or sets the program id. /// Gets or sets the program id.
/// </summary> /// </summary>
[JsonPropertyName("programID")] [JsonPropertyName("programID")]
public string ProgramId { get; set; } public string? ProgramId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of titles. /// Gets or sets the list of titles.
/// </summary> /// </summary>
[JsonPropertyName("titles")] [JsonPropertyName("titles")]
public List<TitleDto> Titles { get; set; } public IReadOnlyList<TitleDto> Titles { get; set; } = Array.Empty<TitleDto>();
/// <summary> /// <summary>
/// Gets or sets the event details object. /// Gets or sets the event details object.
/// </summary> /// </summary>
[JsonPropertyName("eventDetails")] [JsonPropertyName("eventDetails")]
public EventDetailsDto EventDetails { get; set; } public EventDetailsDto? EventDetails { get; set; }
/// <summary> /// <summary>
/// Gets or sets the descriptions. /// Gets or sets the descriptions.
/// </summary> /// </summary>
[JsonPropertyName("descriptions")] [JsonPropertyName("descriptions")]
public DescriptionsProgramDto Descriptions { get; set; } public DescriptionsProgramDto? Descriptions { get; set; }
/// <summary> /// <summary>
/// Gets or sets the original air date. /// Gets or sets the original air date.
/// </summary> /// </summary>
[JsonPropertyName("originalAirDate")] [JsonPropertyName("originalAirDate")]
public string OriginalAirDate { get; set; } public string? OriginalAirDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of genres. /// Gets or sets the list of genres.
/// </summary> /// </summary>
[JsonPropertyName("genres")] [JsonPropertyName("genres")]
public List<string> Genres { get; set; } public IReadOnlyList<string> Genres { get; set; } = Array.Empty<string>();
/// <summary> /// <summary>
/// Gets or sets the episode title. /// Gets or sets the episode title.
/// </summary> /// </summary>
[JsonPropertyName("episodeTitle150")] [JsonPropertyName("episodeTitle150")]
public string EpisodeTitle150 { get; set; } public string? EpisodeTitle150 { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of metadata. /// Gets or sets the list of metadata.
/// </summary> /// </summary>
[JsonPropertyName("metadata")] [JsonPropertyName("metadata")]
public List<MetadataProgramsDto> Metadata { get; set; } public IReadOnlyList<MetadataProgramsDto> Metadata { get; set; } = Array.Empty<MetadataProgramsDto>();
/// <summary> /// <summary>
/// Gets or sets the list of content raitings. /// Gets or sets the list of content raitings.
/// </summary> /// </summary>
[JsonPropertyName("contentRating")] [JsonPropertyName("contentRating")]
public List<ContentRatingDto> ContentRating { get; set; } public IReadOnlyList<ContentRatingDto> ContentRating { get; set; } = Array.Empty<ContentRatingDto>();
/// <summary> /// <summary>
/// Gets or sets the list of cast. /// Gets or sets the list of cast.
/// </summary> /// </summary>
[JsonPropertyName("cast")] [JsonPropertyName("cast")]
public List<CastDto> Cast { get; set; } public IReadOnlyList<CastDto> Cast { get; set; } = Array.Empty<CastDto>();
/// <summary> /// <summary>
/// Gets or sets the list of crew. /// Gets or sets the list of crew.
/// </summary> /// </summary>
[JsonPropertyName("crew")] [JsonPropertyName("crew")]
public List<CrewDto> Crew { get; set; } public IReadOnlyList<CrewDto> Crew { get; set; } = Array.Empty<CrewDto>();
/// <summary> /// <summary>
/// Gets or sets the entity type. /// Gets or sets the entity type.
/// </summary> /// </summary>
[JsonPropertyName("entityType")] [JsonPropertyName("entityType")]
public string EntityType { get; set; } public string? EntityType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the show type. /// Gets or sets the show type.
/// </summary> /// </summary>
[JsonPropertyName("showType")] [JsonPropertyName("showType")]
public string ShowType { get; set; } public string? ShowType { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether there is image artwork. /// Gets or sets a value indicating whether there is image artwork.
@ -104,54 +103,54 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the primary image. /// Gets or sets the primary image.
/// </summary> /// </summary>
[JsonPropertyName("primaryImage")] [JsonPropertyName("primaryImage")]
public string PrimaryImage { get; set; } public string? PrimaryImage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the thumb image. /// Gets or sets the thumb image.
/// </summary> /// </summary>
[JsonPropertyName("thumbImage")] [JsonPropertyName("thumbImage")]
public string ThumbImage { get; set; } public string? ThumbImage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the backdrop image. /// Gets or sets the backdrop image.
/// </summary> /// </summary>
[JsonPropertyName("backdropImage")] [JsonPropertyName("backdropImage")]
public string BackdropImage { get; set; } public string? BackdropImage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the banner image. /// Gets or sets the banner image.
/// </summary> /// </summary>
[JsonPropertyName("bannerImage")] [JsonPropertyName("bannerImage")]
public string BannerImage { get; set; } public string? BannerImage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the image id. /// Gets or sets the image id.
/// </summary> /// </summary>
[JsonPropertyName("imageID")] [JsonPropertyName("imageID")]
public string ImageId { get; set; } public string? ImageId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the md5. /// Gets or sets the md5.
/// </summary> /// </summary>
[JsonPropertyName("md5")] [JsonPropertyName("md5")]
public string Md5 { get; set; } public string? Md5 { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of content advisory. /// Gets or sets the list of content advisory.
/// </summary> /// </summary>
[JsonPropertyName("contentAdvisory")] [JsonPropertyName("contentAdvisory")]
public List<string> ContentAdvisory { get; set; } public IReadOnlyList<string> ContentAdvisory { get; set; } = Array.Empty<string>();
/// <summary> /// <summary>
/// Gets or sets the movie object. /// Gets or sets the movie object.
/// </summary> /// </summary>
[JsonPropertyName("movie")] [JsonPropertyName("movie")]
public MovieDto Movie { get; set; } public MovieDto? Movie { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of recommendations. /// Gets or sets the list of recommendations.
/// </summary> /// </summary>
[JsonPropertyName("recommendations")] [JsonPropertyName("recommendations")]
public List<RecommendationDto> Recommendations { get; set; } public IReadOnlyList<RecommendationDto> Recommendations { get; set; } = Array.Empty<RecommendationDto>();
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,13 +13,13 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the program id. /// Gets or sets the program id.
/// </summary> /// </summary>
[JsonPropertyName("programID")] [JsonPropertyName("programID")]
public string ProgramId { get; set; } public string? ProgramId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the air date time. /// Gets or sets the air date time.
/// </summary> /// </summary>
[JsonPropertyName("airDateTime")] [JsonPropertyName("airDateTime")]
public string AirDateTime { get; set; } public string? AirDateTime { get; set; }
/// <summary> /// <summary>
/// Gets or sets the duration. /// Gets or sets the duration.
@ -32,25 +31,25 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the md5. /// Gets or sets the md5.
/// </summary> /// </summary>
[JsonPropertyName("md5")] [JsonPropertyName("md5")]
public string Md5 { get; set; } public string? Md5 { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of audio properties. /// Gets or sets the list of audio properties.
/// </summary> /// </summary>
[JsonPropertyName("audioProperties")] [JsonPropertyName("audioProperties")]
public List<string> AudioProperties { get; set; } public IReadOnlyList<string> AudioProperties { get; set; } = Array.Empty<string>();
/// <summary> /// <summary>
/// Gets or sets the list of video properties. /// Gets or sets the list of video properties.
/// </summary> /// </summary>
[JsonPropertyName("videoProperties")] [JsonPropertyName("videoProperties")]
public List<string> VideoProperties { get; set; } public IReadOnlyList<string> VideoProperties { get; set; } = Array.Empty<string>();
/// <summary> /// <summary>
/// Gets or sets the list of ratings. /// Gets or sets the list of ratings.
/// </summary> /// </summary>
[JsonPropertyName("ratings")] [JsonPropertyName("ratings")]
public List<RatingDto> Ratings { get; set; } public IReadOnlyList<RatingDto> Ratings { get; set; } = Array.Empty<RatingDto>();
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this program is new. /// Gets or sets a value indicating whether this program is new.
@ -62,13 +61,13 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the multipart object. /// Gets or sets the multipart object.
/// </summary> /// </summary>
[JsonPropertyName("multipart")] [JsonPropertyName("multipart")]
public MultipartDto Multipart { get; set; } public MultipartDto? Multipart { get; set; }
/// <summary> /// <summary>
/// Gets or sets the live tape delay. /// Gets or sets the live tape delay.
/// </summary> /// </summary>
[JsonPropertyName("liveTapeDelay")] [JsonPropertyName("liveTapeDelay")]
public string LiveTapeDelay { get; set; } public string? LiveTapeDelay { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this is the premiere. /// Gets or sets a value indicating whether this is the premiere.
@ -86,6 +85,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the premiere or finale. /// Gets or sets the premiere or finale.
/// </summary> /// </summary>
[JsonPropertyName("isPremiereOrFinale")] [JsonPropertyName("isPremiereOrFinale")]
public string IsPremiereOrFinale { get; set; } public string? IsPremiereOrFinale { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,30 +11,30 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the ratings body. /// Gets or sets the ratings body.
/// </summary> /// </summary>
[JsonPropertyName("ratingsBody")] [JsonPropertyName("ratingsBody")]
public string RatingsBody { get; set; } public string? RatingsBody { get; set; }
/// <summary> /// <summary>
/// Gets or sets the rating. /// Gets or sets the rating.
/// </summary> /// </summary>
[JsonPropertyName("rating")] [JsonPropertyName("rating")]
public string Rating { get; set; } public string? Rating { get; set; }
/// <summary> /// <summary>
/// Gets or sets the min rating. /// Gets or sets the min rating.
/// </summary> /// </summary>
[JsonPropertyName("minRating")] [JsonPropertyName("minRating")]
public string MinRating { get; set; } public string? MinRating { get; set; }
/// <summary> /// <summary>
/// Gets or sets the max rating. /// Gets or sets the max rating.
/// </summary> /// </summary>
[JsonPropertyName("maxRating")] [JsonPropertyName("maxRating")]
public string MaxRating { get; set; } public string? MaxRating { get; set; }
/// <summary> /// <summary>
/// Gets or sets the increment. /// Gets or sets the increment.
/// </summary> /// </summary>
[JsonPropertyName("increment")] [JsonPropertyName("increment")]
public string Increment { get; set; } public string? Increment { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,12 +11,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the body. /// Gets or sets the body.
/// </summary> /// </summary>
[JsonPropertyName("body")] [JsonPropertyName("body")]
public string Body { get; set; } public string? Body { get; set; }
/// <summary> /// <summary>
/// Gets or sets the code. /// Gets or sets the code.
/// </summary> /// </summary>
[JsonPropertyName("code")] [JsonPropertyName("code")]
public string Code { get; set; } public string? Code { get; set; }
} }
} }

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,12 +11,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the program id. /// Gets or sets the program id.
/// </summary> /// </summary>
[JsonPropertyName("programID")] [JsonPropertyName("programID")]
public string ProgramId { get; set; } public string? ProgramId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the title. /// Gets or sets the title.
/// </summary> /// </summary>
[JsonPropertyName("title120")] [JsonPropertyName("title120")]
public string Title120 { get; set; } public string? Title120 { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,12 +13,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the station id. /// Gets or sets the station id.
/// </summary> /// </summary>
[JsonPropertyName("stationID")] [JsonPropertyName("stationID")]
public string StationId { get; set; } public string? StationId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of dates. /// Gets or sets the list of dates.
/// </summary> /// </summary>
[JsonPropertyName("date")] [JsonPropertyName("date")]
public List<string> Date { get; set; } public IReadOnlyList<string> Date { get; set; } = Array.Empty<string>();
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,12 +13,12 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the program id. /// Gets or sets the program id.
/// </summary> /// </summary>
[JsonPropertyName("programID")] [JsonPropertyName("programID")]
public string ProgramId { get; set; } public string? ProgramId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the list of data. /// Gets or sets the list of data.
/// </summary> /// </summary>
[JsonPropertyName("data")] [JsonPropertyName("data")]
public List<ImageDataDto> Data { get; set; } public IReadOnlyList<ImageDataDto> Data { get; set; } = Array.Empty<ImageDataDto>();
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -14,49 +13,49 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the station id. /// Gets or sets the station id.
/// </summary> /// </summary>
[JsonPropertyName("stationID")] [JsonPropertyName("stationID")]
public string StationId { get; set; } public string? StationId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string? Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the callsign. /// Gets or sets the callsign.
/// </summary> /// </summary>
[JsonPropertyName("callsign")] [JsonPropertyName("callsign")]
public string Callsign { get; set; } public string? Callsign { get; set; }
/// <summary> /// <summary>
/// Gets or sets the broadcast language. /// Gets or sets the broadcast language.
/// </summary> /// </summary>
[JsonPropertyName("broadcastLanguage")] [JsonPropertyName("broadcastLanguage")]
public List<string> BroadcastLanguage { get; set; } public IReadOnlyList<string> BroadcastLanguage { get; set; } = Array.Empty<string>();
/// <summary> /// <summary>
/// Gets or sets the description language. /// Gets or sets the description language.
/// </summary> /// </summary>
[JsonPropertyName("descriptionLanguage")] [JsonPropertyName("descriptionLanguage")]
public List<string> DescriptionLanguage { get; set; } public IReadOnlyList<string> DescriptionLanguage { get; set; } = Array.Empty<string>();
/// <summary> /// <summary>
/// Gets or sets the broadcaster. /// Gets or sets the broadcaster.
/// </summary> /// </summary>
[JsonPropertyName("broadcaster")] [JsonPropertyName("broadcaster")]
public BroadcasterDto Broadcaster { get; set; } public BroadcasterDto? Broadcaster { get; set; }
/// <summary> /// <summary>
/// Gets or sets the affiliate. /// Gets or sets the affiliate.
/// </summary> /// </summary>
[JsonPropertyName("affiliate")] [JsonPropertyName("affiliate")]
public string Affiliate { get; set; } public string? Affiliate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the logo. /// Gets or sets the logo.
/// </summary> /// </summary>
[JsonPropertyName("logo")] [JsonPropertyName("logo")]
public LogoDto Logo { get; set; } public LogoDto? Logo { get; set; }
/// <summary> /// <summary>
/// Gets or set a value indicating whether it is commercial free. /// Gets or set a value indicating whether it is commercial free.

View File

@ -1,5 +1,3 @@
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -13,6 +11,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the title. /// Gets or sets the title.
/// </summary> /// </summary>
[JsonPropertyName("title120")] [JsonPropertyName("title120")]
public string Title120 { get; set; } public string? Title120 { get; set; }
} }
} }

View File

@ -1,5 +1,4 @@
#nullable disable using System;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
@ -19,18 +18,24 @@ namespace Emby.Server.Implementations.LiveTv.Listings.SchedulesDirectDtos
/// Gets or sets the response message. /// Gets or sets the response message.
/// </summary> /// </summary>
[JsonPropertyName("message")] [JsonPropertyName("message")]
public string Message { get; set; } public string? Message { get; set; }
/// <summary> /// <summary>
/// Gets or sets the server id. /// Gets or sets the server id.
/// </summary> /// </summary>
[JsonPropertyName("serverID")] [JsonPropertyName("serverID")]
public string ServerId { get; set; } public string? ServerId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the token. /// Gets or sets the token.
/// </summary> /// </summary>
[JsonPropertyName("token")] [JsonPropertyName("token")]
public string Token { get; set; } public string? Token { get; set; }
/// <summary>
/// Gets or sets the current datetime.
/// </summary>
[JsonPropertyName("datetime")]
public DateTime? DateTime { get; set; }
} }
} }