public RoachIssue(RoachRepoId repoId, Issue issue) : this( new RoachIssueId(repoId, issue.Number), issue.Assignee?.Login ?? TheBugsConstants.UnassignedName, new RoachMilestoneId(repoId, issue.Milestone), issue.Title, issue.State == ItemState.Open, issue.Labels.Select(x => x.Name).ToImmutableArray(), issue.UpdatedAt) { }
public RoachMilestone(RoachRepoId repoId, Milestone milestone) { if (milestone != null) { Id = new RoachMilestoneId(repoId, milestone.Number); Title = milestone.Title; IsOpen = milestone.State == ItemState.Open; } else { Id = RoachMilestoneId.CreateNone(repoId); Title = NoneTitle; IsOpen = true; } }
public RoachIssueId(RoachRepoId repoId, int number) { RepoId = repoId; Number = number; }
public RoachMilestone(RoachRepoId repoId, int number, string title, bool isOpen) : this(new RoachMilestoneId(repoId, number), title, isOpen) { }
public static RoachMilestoneId CreateNone(RoachRepoId repoId) => new RoachMilestoneId(repoId, NoneNumber);
public RoachMilestoneId(RoachRepoId repoId, Milestone milestone) { RepoId = repoId; Number = milestone?.Number ?? NoneNumber; }
public RoachMilestoneId(RoachRepoId repoId, int number) { RepoId = repoId; Number = number; }