2017-05-17 18:48:39 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using BuildFeed.Local;
|
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace BuildFeed.Model.View
|
2016-07-11 01:53:23 +08:00
|
|
|
|
{
|
2017-01-23 06:50:19 +08:00
|
|
|
|
public class FrontPage
|
|
|
|
|
{
|
2017-05-17 18:48:39 +08:00
|
|
|
|
public FrontPageBuild CurrentCanary { get; set; }
|
|
|
|
|
public FrontPageBuild CurrentInsider { get; set; }
|
|
|
|
|
public FrontPageBuild CurrentRelease { get; set; }
|
|
|
|
|
public FrontPageBuild CurrentXbox { get; set; }
|
2018-04-12 22:58:59 +08:00
|
|
|
|
public FrontPageBuild CurrentAnalog { get; set; }
|
2017-05-17 18:48:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class FrontPageBuild
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[BsonId]
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Model_MajorVersion))]
|
|
|
|
|
public uint MajorVersion { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Model_MinorVersion))]
|
|
|
|
|
public uint MinorVersion { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required]
|
|
|
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Model_BuildNumber))]
|
|
|
|
|
public uint Number { get; set; }
|
|
|
|
|
|
|
|
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Model_Revision))]
|
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = true)]
|
|
|
|
|
public uint? Revision { get; set; }
|
|
|
|
|
|
|
|
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Model_LabString))]
|
|
|
|
|
public string Lab { get; set; }
|
|
|
|
|
|
|
|
|
|
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Model_BuildTime))]
|
|
|
|
|
[DisplayFormat(ConvertEmptyStringToNull = true,
|
|
|
|
|
ApplyFormatInEditMode = true,
|
|
|
|
|
DataFormatString = "{0:yyMMdd-HHmm}")]
|
|
|
|
|
public DateTime? BuildTime { get; set; }
|
2017-01-23 06:50:19 +08:00
|
|
|
|
}
|
2016-07-11 01:53:23 +08:00
|
|
|
|
}
|