Some hawt API changes so I can automate some stuff

This commit is contained in:
Thomas Hounsell 2016-05-02 12:02:35 +01:00
parent 13b21db8d9
commit 676eb3d7f9
2 changed files with 5 additions and 3 deletions

View File

@ -74,8 +74,11 @@ public async Task<bool> AddWin10Builds(NewBuild apiModel)
Number = nb.Number, Number = nb.Number,
Revision = nb.Revision, Revision = nb.Revision,
Lab = nb.Lab, Lab = nb.Lab,
BuildTime = nb.BuildTime, BuildTime = nb.BuildTime.HasValue ? DateTime.SpecifyKind(nb.BuildTime.Value, DateTimeKind.Utc) : null as DateTime?,
FlightLevel = nb.FlightLevel Added = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc),
Modified = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc),
SourceType = TypeOfSource.PrivateLeak,
FlightLevel = LevelOfFlight.None
})); }));
return true; return true;
} }

View File

@ -21,6 +21,5 @@ public class NewBuildObject
public uint? Revision { get; set; } public uint? Revision { get; set; }
public string Lab { get; set; } public string Lab { get; set; }
public DateTime? BuildTime { get; set; } public DateTime? BuildTime { get; set; }
public LevelOfFlight FlightLevel { get; set; }
} }
} }