aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
authorGreenback <jimcartlidge@yahoo.co.uk>2020-12-18 20:37:35 +0000
committerGreenback <jimcartlidge@yahoo.co.uk>2020-12-18 20:37:35 +0000
commitce19f2be55c7484488bebfd29bd42c1f082ae888 (patch)
treeeb66e00c31286106b4533462767839c65dd7b8ba /MediaBrowser.Model
parent486148dd6b18ec336ca076b8ec0a23d257789683 (diff)
Renamed Guid property to Id
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Plugins/PluginPageInfo.cs34
-rw-r--r--MediaBrowser.Model/Updates/InstallationInfo.cs8
-rw-r--r--MediaBrowser.Model/Updates/PackageInfo.cs6
3 files changed, 34 insertions, 14 deletions
diff --git a/MediaBrowser.Model/Plugins/PluginPageInfo.cs b/MediaBrowser.Model/Plugins/PluginPageInfo.cs
index ca72e19ee..85c0aa204 100644
--- a/MediaBrowser.Model/Plugins/PluginPageInfo.cs
+++ b/MediaBrowser.Model/Plugins/PluginPageInfo.cs
@@ -1,20 +1,40 @@
-#nullable disable
-#pragma warning disable CS1591
+#nullable enable
namespace MediaBrowser.Model.Plugins
{
+ /// <summary>
+ /// Defines the <see cref="PluginPageInfo" />.
+ /// </summary>
public class PluginPageInfo
{
- public string Name { get; set; }
+ /// <summary>
+ /// Gets or sets the name.
+ /// </summary>
+ public string Name { get; set; } = string.Empty;
- public string DisplayName { get; set; }
+ /// <summary>
+ /// Gets or sets the display name.
+ /// </summary>
+ public string? DisplayName { get; set; }
- public string EmbeddedResourcePath { get; set; }
+ /// <summary>
+ /// Gets or sets the resource path.
+ /// </summary>
+ public string EmbeddedResourcePath { get; set; } = string.Empty;
+ /// <summary>
+ /// Gets or sets a value indicating whether this plugin should appear in the main menu.
+ /// </summary>
public bool EnableInMainMenu { get; set; }
- public string MenuSection { get; set; }
+ /// <summary>
+ /// Gets or sets the menu section.
+ /// </summary>
+ public string? MenuSection { get; set; }
- public string MenuIcon { get; set; }
+ /// <summary>
+ /// Gets or sets the menu icon.
+ /// </summary>
+ public string? MenuIcon { get; set; }
}
}
diff --git a/MediaBrowser.Model/Updates/InstallationInfo.cs b/MediaBrowser.Model/Updates/InstallationInfo.cs
index a6d80dba6..eebe1a903 100644
--- a/MediaBrowser.Model/Updates/InstallationInfo.cs
+++ b/MediaBrowser.Model/Updates/InstallationInfo.cs
@@ -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.
diff --git a/MediaBrowser.Model/Updates/PackageInfo.cs b/MediaBrowser.Model/Updates/PackageInfo.cs
index 63fd71742..2d05ed636 100644
--- a/MediaBrowser.Model/Updates/PackageInfo.cs
+++ b/MediaBrowser.Model/Updates/PackageInfo.cs
@@ -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.