private ReleaseMilestone MapMilestone(GithubMilestone milestone) { var result = new ReleaseMilestone(); if (milestone != null) { result.ClosedIssues = milestone.Closed_Issues; result.CreatedAt = milestone.Created_At; result.Description = milestone.Description; result.DueOn = milestone.Due_On; result.Number = milestone.Number; result.OpenIssues = milestone.Open_Issues; result.State = milestone.State; result.Title = milestone.Title; result.Url = milestone.Url; } return(result); }
private ReleaseMilestone MapMilestone(GithubMilestone milestone) { var result = new ReleaseMilestone(); if (milestone != null) { result.ClosedIssues = milestone.Closed_Issues; result.CreatedAt = milestone.Created_At; result.Description = milestone.Description; result.DueOn = milestone.Due_On; result.Number = milestone.Number; result.OpenIssues = milestone.Open_Issues; result.State = milestone.State; result.Title = milestone.Title; result.Url = milestone.Url; } return result; }