2016-08-20 05:10:55 +08:00
|
|
|
|
namespace BuildFeed.Model
|
2015-11-10 00:43:05 +08:00
|
|
|
|
{
|
2016-11-07 05:22:11 +08:00
|
|
|
|
public struct BuildGroup
|
2015-11-10 00:43:05 +08:00
|
|
|
|
{
|
2015-12-21 07:53:44 +08:00
|
|
|
|
public uint Major { get; set; }
|
|
|
|
|
public uint Minor { get; set; }
|
|
|
|
|
public uint Build { get; set; }
|
|
|
|
|
public uint? Revision { get; set; }
|
2015-11-10 00:43:05 +08:00
|
|
|
|
|
2016-01-11 06:23:13 +08:00
|
|
|
|
public override string ToString() => Revision.HasValue
|
2016-08-19 20:45:52 +08:00
|
|
|
|
? $"{Major}.{Minor}.{Build}.{Revision.Value}"
|
|
|
|
|
: $"{Major}.{Minor}.{Build}";
|
2015-11-10 00:43:05 +08:00
|
|
|
|
}
|
|
|
|
|
}
|