All checks were successful
DCO / DCO (pull_request) Successful in 3m34s
Signed-off-by: Pavel Gross <p.gross@yando.com>
17 lines
No EOL
351 B
C#
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}";
|
|
}
|
|
} |