Beispiel #1
0
 public RoachIssue(RoachIssueId id, string assignee, RoachMilestoneId milestoneId, string title, bool isOpen, IEnumerable <string> labels, DateTimeOffset?updatedAt)
 {
     Id          = id;
     Assignee    = assignee;
     MilestoneId = milestoneId;
     Title       = title;
     IsOpen      = isOpen;
     Labels      = labels.ToImmutableArray();
     UpdatedAt   = updatedAt;
 }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 public RoachMilestone(RoachMilestoneId id, string title, bool isOpen)
 {
     Id     = id;
     Title  = title;
     IsOpen = isOpen;
 }