public RepositoryContentLicense(LicenseMetadata license, string name, string path, string sha, int size, ContentType type, string downloadUrl, string url, string gitUrl, string htmlUrl) : base(name, path, sha, size, type, downloadUrl, url, gitUrl, htmlUrl) { Ensure.ArgumentNotNull(license, "license"); License = license; }
public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, long id, string nodeId, User owner, string name, string fullName, bool isTemplate, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, string defaultBranch, int openIssuesCount, DateTimeOffset?pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, Repository parent, Repository source, LicenseMetadata license, bool hasIssues, bool hasWiki, bool hasDownloads, bool hasPages, int subscribersCount, long size, bool?allowRebaseMerge, bool?allowSquashMerge, bool?allowMergeCommit, bool archived, int watchersCount, bool?deleteBranchOnMerge, RepositoryVisibility visibility, IEnumerable <string> topics) { Url = url; HtmlUrl = htmlUrl; CloneUrl = cloneUrl; GitUrl = gitUrl; SshUrl = sshUrl; SvnUrl = svnUrl; MirrorUrl = mirrorUrl; Id = id; NodeId = nodeId; Owner = owner; Name = name; FullName = fullName; IsTemplate = isTemplate; Description = description; Homepage = homepage; Language = language; Private = @private; Fork = fork; ForksCount = forksCount; StargazersCount = stargazersCount; DefaultBranch = defaultBranch; OpenIssuesCount = openIssuesCount; PushedAt = pushedAt; CreatedAt = createdAt; UpdatedAt = updatedAt; Permissions = permissions; Parent = parent; Source = source; License = license; HasIssues = hasIssues; HasWiki = hasWiki; HasDownloads = hasDownloads; HasPages = hasPages; SubscribersCount = subscribersCount; Size = size; AllowRebaseMerge = allowRebaseMerge; AllowSquashMerge = allowSquashMerge; AllowMergeCommit = allowMergeCommit; Archived = archived; WatchersCount = watchersCount; Topics = topics.ToList(); DeleteBranchOnMerge = deleteBranchOnMerge; Visibility = visibility; }
public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, long id, User owner, string name, string fullName, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, string defaultBranch, int openIssuesCount, DateTimeOffset?pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, Repository parent, Repository source, LicenseMetadata license, bool hasIssues, bool hasWiki, bool hasDownloads, bool hasPages, int subscribersCount, long size, bool?allowRebaseMerge, bool?allowSquashMerge, bool?allowMergeCommit) { Url = url; HtmlUrl = htmlUrl; CloneUrl = cloneUrl; GitUrl = gitUrl; SshUrl = sshUrl; SvnUrl = svnUrl; MirrorUrl = mirrorUrl; Id = id; Owner = owner; Name = name; FullName = fullName; Description = description; Homepage = homepage; Language = language; Private = @private; Fork = fork; ForksCount = forksCount; StargazersCount = stargazersCount; DefaultBranch = defaultBranch; OpenIssuesCount = openIssuesCount; PushedAt = pushedAt; CreatedAt = createdAt; UpdatedAt = updatedAt; Permissions = permissions; Parent = parent; Source = source; License = license; HasIssues = hasIssues; HasWiki = hasWiki; HasDownloads = hasDownloads; HasPages = hasPages; SubscribersCount = subscribersCount; Size = size; AllowRebaseMerge = allowRebaseMerge; AllowSquashMerge = allowSquashMerge; AllowMergeCommit = allowMergeCommit; }
public static LicenseCacheItem Create(LicenseMetadata licenseMetadata) { return new LicenseCacheItem { Key = licenseMetadata.Key, Name = licenseMetadata.Name, Timestamp = DateTime.Now }; }
public static LicenseCacheItem Create(LicenseMetadata licenseMetadata) { return new LicenseCacheItem { Key = licenseMetadata.Key, Name = licenseMetadata.Name }; }