frostfs-sdk-csharp/src/FrostFS.SDK.ModelsV2/Version.cs
p.gross 816e1eb2f1
All checks were successful
DCO / DCO (pull_request) Successful in 3m34s
[#17] Models: Remove internal visibility
Signed-off-by: Pavel Gross <p.gross@yando.com>
2024-07-22 14:50:21 +03:00

17 lines
No EOL
351 B
C#

namespace FrostFS.SDK.ModelsV2;
public class Version(int major, int minor)
{
public int Major { get; set; } = major;
public int Minor { get; set; } = minor;
public bool IsSupported(Version version)
{
return Major == version.Major;
}
public override string ToString()
{
return $"v{Major}.{Minor}";
}
}