예제 #1
0
 public RepositoryConnectionNode(string name, string description, long forkCount, Uri url, RepositoryOwner owner, bool isFork, IssuesConnection issues)
 {
     DataDownloadedAt = DateTimeOffset.UtcNow;
     Name             = name;
     Description      = description;
     ForkCount        = forkCount;
     Url    = url;
     Owner  = owner;
     IsFork = isFork;
     Issues = issues;
 }
예제 #2
0
 public Repository(string name, string description, long forkCount, RepositoryOwner owner, IssuesConnection issues, Uri url, StarGazers stargazers) =>
 (Name, Description, ForkCount, OwnerLogin, OwnerAvatarUrl, IssuesCount, Uri, StarCount) = (name, description, forkCount, owner.Login, owner.AvatarUrl, issues?.IssuesCount ?? 0, url, stargazers.TotalCount);