private DeployResult GetResult(string id, string activeDeploymentId, bool isDeploying)
{
var file = VerifyDeployment(id, isDeploying);
if (file == null)
{
return null;
}
return new DeployResult
{
Id = file.Id,
Author = file.Author,
Deployer = file.Deployer,
AuthorEmail = file.AuthorEmail,
Message = file.Message,
Progress = file.Progress,
StartTime = file.StartTime,
EndTime = file.EndTime,
Status = file.Status,
StatusText = file.StatusText,
Complete = file.Complete,
IsTemporary = file.IsTemporary,
IsReadOnly = file.IsReadOnly,
Current = file.Id == activeDeploymentId,
ReceivedTime = file.ReceivedTime,
LastSuccessEndTime = file.LastSuccessEndTime,
SiteName = file.SiteName
};
}