mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Some hawt API changes so I can automate some stuff
This commit is contained in:
parent
13b21db8d9
commit
676eb3d7f9
@ -74,8 +74,11 @@ namespace BuildFeed.Controllers
|
||||
Number = nb.Number,
|
||||
Revision = nb.Revision,
|
||||
Lab = nb.Lab,
|
||||
BuildTime = nb.BuildTime,
|
||||
FlightLevel = nb.FlightLevel
|
||||
BuildTime = nb.BuildTime.HasValue ? DateTime.SpecifyKind(nb.BuildTime.Value, DateTimeKind.Utc) : null as DateTime?,
|
||||
Added = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc),
|
||||
Modified = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc),
|
||||
SourceType = TypeOfSource.PrivateLeak,
|
||||
FlightLevel = LevelOfFlight.None
|
||||
}));
|
||||
return true;
|
||||
}
|
||||
|
@ -21,6 +21,5 @@ namespace BuildFeed.Models.ApiModel
|
||||
public uint? Revision { get; set; }
|
||||
public string Lab { get; set; }
|
||||
public DateTime? BuildTime { get; set; }
|
||||
public LevelOfFlight FlightLevel { get; set; }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user