Merge pull request #4730 from crobibero/base-item-dto-guid-nullable

Don't serialize empty GUID to null

(cherry picked from commit b6ecaccf92)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Claus Vium
2020-12-08 18:22:18 +01:00
committed by Joshua M. Boniface
parent 11a37884f0
commit aae90a8480
4 changed files with 11 additions and 19 deletions

View File

@@ -152,7 +152,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the channel identifier.
/// </summary>
/// <value>The channel identifier.</value>
public Guid ChannelId { get; set; }
public Guid? ChannelId { get; set; }
public string ChannelName { get; set; }
@@ -270,7 +270,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the parent id.
/// </summary>
/// <value>The parent id.</value>
public Guid ParentId { get; set; }
public Guid? ParentId { get; set; }
/// <summary>
/// Gets or sets the type.
@@ -344,13 +344,13 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the series id.
/// </summary>
/// <value>The series id.</value>
public Guid SeriesId { get; set; }
public Guid? SeriesId { get; set; }
/// <summary>
/// Gets or sets the season identifier.
/// </summary>
/// <value>The season identifier.</value>
public Guid SeasonId { get; set; }
public Guid? SeasonId { get; set; }
/// <summary>
/// Gets or sets the special feature count.
@@ -428,7 +428,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the album id.
/// </summary>
/// <value>The album id.</value>
public Guid AlbumId { get; set; }
public Guid? AlbumId { get; set; }
/// <summary>
/// Gets or sets the album image tag.