mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-24 23:25:37 +01:00
35 lines
802 B
C#
35 lines
802 B
C#
|
namespace Giants.DataContract
|
|||
|
{
|
|||
|
using System;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
|||
|
public class VersionInfo
|
|||
|
{
|
|||
|
[Required]
|
|||
|
public int Build { get; set; }
|
|||
|
|
|||
|
[Required]
|
|||
|
public int Major { get; set; }
|
|||
|
|
|||
|
[Required]
|
|||
|
public int Minor { get; set; }
|
|||
|
|
|||
|
[Required]
|
|||
|
public int Revision { get; set; }
|
|||
|
|
|||
|
public override bool Equals(object obj)
|
|||
|
{
|
|||
|
return obj is VersionInfo info &&
|
|||
|
Build == info.Build &&
|
|||
|
Major == info.Major &&
|
|||
|
Minor == info.Minor &&
|
|||
|
Revision == info.Revision;
|
|||
|
}
|
|||
|
|
|||
|
public override int GetHashCode()
|
|||
|
{
|
|||
|
return HashCode.Combine(Build, Major, Minor, Revision);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|