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; }
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);