Пример #1
0
 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, bool hasIssues, bool hasWiki, bool hasDownloads, 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;
     HasIssues = hasIssues;
     HasWiki = hasWiki;
     HasDownloads = hasDownloads;
     AllowRebaseMerge = allowRebaseMerge;
     AllowSquashMerge = allowSquashMerge;
     AllowMergeCommit = allowMergeCommit;
 }
Пример #2
0
 public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, int 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, bool hasIssues, bool hasWiki, bool hasDownloads)
 {
     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;
     HasIssues       = hasIssues;
     HasWiki         = hasWiki;
     HasDownloads    = hasDownloads;
 }
Пример #3
0
 public User(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool?hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, RepositoryPermissions permissions, bool siteAdmin, string ldapDistinguishedName, DateTimeOffset?suspendedAt)
     : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.User, url)
 {
     Permissions           = permissions;
     SiteAdmin             = siteAdmin;
     LdapDistinguishedName = ldapDistinguishedName;
     SuspendedAt           = suspendedAt;
 }
Пример #4
0
 public User(string avatarUrl, string bio, string blog, int collaborators, string company, DateTimeOffset createdAt, int diskUsage, string email, int followers, int following, bool? hireable, string htmlUrl, int totalPrivateRepos, int id, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, RepositoryPermissions permissions, bool siteAdmin, string ldapDistinguishedName, DateTimeOffset? suspendedAt)
     : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.User, url)
 {
     Permissions = permissions;
     SiteAdmin = siteAdmin;
     LdapDistinguishedName = ldapDistinguishedName;
     SuspendedAt = suspendedAt;
 }
Пример #5
0
 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;
 }
Пример #6
0
        public Repository(string url, string htmlUrl, string cloneUrl, string gitUrl, string sshUrl, string svnUrl, string mirrorUrl, int id, User owner, string name, string fullName, string description, string homepage, string language, bool @private, bool fork, int forksCount, int stargazersCount, int subscribersCount, string defaultBranch, int openIssuesCount, DateTimeOffset? pushedAt, DateTimeOffset createdAt, DateTimeOffset updatedAt, RepositoryPermissions permissions, User organization, Repository parent, Repository source, bool hasIssues, bool hasWiki, bool hasDownloads)
        {
            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;
#pragma warning disable 612,618
            SubscribersCount = subscribersCount;
#pragma warning restore 612,618
            DefaultBranch = defaultBranch;
            OpenIssuesCount = openIssuesCount;
            PushedAt = pushedAt;
            CreatedAt = createdAt;
            UpdatedAt = updatedAt;
            Permissions = permissions;
#pragma warning disable 612, 618
            Organization = organization;
#pragma warning restore 612, 618
            Parent = parent;
            Source = source;
            HasIssues = hasIssues;
            HasWiki = hasWiki;
            HasDownloads = hasDownloads;
        }
 private Repository CreateRepository(string url = null, string htmlUrl = null, string cloneUrl = null, string gitUrl = null, string sshUrl = null, string svnUrl = null, string mirrorUrl = null, int id = 0, User owner = null, string name = null, string fullName = null, string description = null, string homepage = null, string language = null, bool @private = false, bool fork = false, int forksCount = 0, int stargazersCount = 0, int subscribersCount = 0, string defaultBranch = null, int openIssuesCount = 0, DateTimeOffset? pushedAt = null, DateTimeOffset? createdAt = null, DateTimeOffset? updatedAt = null, RepositoryPermissions permissions = null, User organization = null, Repository parent = null, Repository source = null, bool hasIssues = false, bool hasWiki = false, bool hasDownloads = false)
 {
     return new Repository(url, htmlUrl, cloneUrl, gitUrl, sshUrl, svnUrl, mirrorUrl, id, owner, name, fullName, description, homepage, language, @private, fork, forksCount, stargazersCount, subscribersCount, defaultBranch, openIssuesCount, pushedAt, createdAt ?? DateTimeOffset.UtcNow, updatedAt ?? DateTimeOffset.UtcNow, permissions, organization, parent, source, hasIssues, hasWiki, hasDownloads);
 }