Renamed Guid property to Id

This commit is contained in:
Greenback
2020-12-18 20:37:35 +00:00
parent 486148dd6b
commit ce19f2be55
11 changed files with 65 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
#nullable disable
using System;
using System.Text.Json.Serialization;
namespace MediaBrowser.Model.Updates
{
@@ -9,10 +10,11 @@ namespace MediaBrowser.Model.Updates
public class InstallationInfo
{
/// <summary>
/// Gets or sets the guid.
/// Gets or sets the Id.
/// </summary>
/// <value>The guid.</value>
public Guid Guid { get; set; }
/// <value>The Id.</value>
[JsonPropertyName("Guid")]
public Guid Id { get; set; }
/// <summary>
/// Gets or sets the name.

View File

@@ -16,7 +16,7 @@ namespace MediaBrowser.Model.Updates
public PackageInfo()
{
Versions = Array.Empty<VersionInfo>();
Guid = string.Empty;
Id = string.Empty;
Category = string.Empty;
Name = string.Empty;
Overview = string.Empty;
@@ -65,9 +65,7 @@ namespace MediaBrowser.Model.Updates
/// </summary>
/// <value>The name.</value>
[JsonPropertyName("guid")]
#pragma warning disable CA1720 // Identifier contains type name
public string Guid { get; set; }
#pragma warning restore CA1720 // Identifier contains type name
public string Id { get; set; }
/// <summary>
/// Gets or sets the versions.