pschelpdesk/Vendor/Prise/Core/PluginPlatformVersion.cs
2024-11-04 20:45:34 +01:00

19 lines
572 B
C#

using System;
namespace Prise
{
public class PluginPlatformVersion
{
public string Version { get; private set; }
public RuntimeType Runtime { get; private set; }
public bool IsSpecified => !String.IsNullOrEmpty(Version);
public static PluginPlatformVersion Create(string version, RuntimeType runtime = RuntimeType.UnSpecified) => new PluginPlatformVersion
{
Version = version,
Runtime = runtime
};
public static PluginPlatformVersion Empty() => new PluginPlatformVersion();
}
}