Greenback 4 anni fa
parent
commit
c761cbff0e
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      MediaBrowser.Model/Plugins/PluginInfo.cs

+ 4 - 4
MediaBrowser.Model/Plugins/PluginInfo.cs

@@ -20,9 +20,9 @@ namespace MediaBrowser.Model.Plugins
         public PluginInfo(string name, Version version, string description, Guid id, bool canUninstall)
         public PluginInfo(string name, Version version, string description, Guid id, bool canUninstall)
         {
         {
             Name = name;
             Name = name;
-            Version = version?.ToString() ?? throw new ArgumentNullException(nameof(version));
+            Version = version;
             Description = description;
             Description = description;
-            Id = id.ToString();
+            Id = id;
             CanUninstall = canUninstall;
             CanUninstall = canUninstall;
         }
         }
 
 
@@ -34,7 +34,7 @@ namespace MediaBrowser.Model.Plugins
         /// <summary>
         /// <summary>
         /// Gets or sets the version.
         /// Gets or sets the version.
         /// </summary>
         /// </summary>
-        public string Version { get; set; }
+        public Version Version { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets the name of the configuration file.
         /// Gets or sets the name of the configuration file.
@@ -49,7 +49,7 @@ namespace MediaBrowser.Model.Plugins
         /// <summary>
         /// <summary>
         /// Gets or sets the unique id.
         /// Gets or sets the unique id.
         /// </summary>
         /// </summary>
-        public string Id { get; set; }
+        public Guid Id { get; set; }
 
 
         /// <summary>
         /// <summary>
         /// Gets or sets a value indicating whether the plugin can be uninstalled.
         /// Gets or sets a value indicating whether the plugin can be uninstalled.