Exemple #1
0
 protected Account(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, AccountType type, string url)
 {
     AvatarUrl = avatarUrl;
     Bio = bio;
     Blog = blog;
     Collaborators = collaborators;
     Company = company;
     CreatedAt = createdAt;
     DiskUsage = diskUsage;
     Email = email;
     Followers = followers;
     Following = following;
     Hireable = hireable;
     HtmlUrl = htmlUrl;
     TotalPrivateRepos = totalPrivateRepos;
     Id = id;
     Location = location;
     Login = login;
     Name = name;
     OwnedPrivateRepos = ownedPrivateRepos;
     Plan = plan;
     PrivateGists = privateGists;
     PublicGists = publicGists;
     PublicRepos = publicRepos;
     Type = type;
     Url = url;
 }
Exemple #2
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;
 }
 public Organization(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, string billingAddress)
     : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.Organization, url)
 {
     BillingAddress = billingAddress;
 }
 private User CreateUser(string avatarUrl = null, string bio = null, string blog = null, int collaborators = 0, string company = null, DateTimeOffset? createdAt = null, int diskUsage = 0, string email = null, int followers = 0, int following = 0, bool? hireable = null, string htmlUrl = null, int totalPrivateRepos = 0, int id = 0, string location = null, string login = null, string name = null, int ownedPrivateRepos = 0, Plan plan = null, int privateGists = 0, int publicGists = 0, int publicRepos = 0, string url = null, bool siteAdmin = false)
 {
     return new User(avatarUrl, bio, blog, collaborators, company, createdAt ?? DateTimeOffset.UtcNow, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, url, siteAdmin);
 }
 public Organization(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 nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress)
     : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, nodeId, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.Organization, url)
 {
     BillingAddress = billingAddress;
 }
Exemple #6
0
 public Organization(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 nodeId, string location, string login, string name, int ownedPrivateRepos, Plan plan, int privateGists, int publicGists, int publicRepos, string url, string billingAddress, string reposUrl, string eventsUrl, string hooksUrl, string issuesUrl, string membersUrl, string publicMembersUrl, string description, bool isVerified, bool hasOrganizationProjects, bool hasRepositoryProjects, DateTimeOffset updatedAt)
     : base(avatarUrl, bio, blog, collaborators, company, createdAt, diskUsage, email, followers, following, hireable, htmlUrl, totalPrivateRepos, id, location, login, name, nodeId, ownedPrivateRepos, plan, privateGists, publicGists, publicRepos, AccountType.Organization, url)
 {
     BillingAddress          = billingAddress;
     ReposUrl                = reposUrl;
     EventsUrl               = eventsUrl;
     HooksUrl                = hooksUrl;
     IssuesUrl               = issuesUrl;
     MembersUrl              = membersUrl;
     PublicMembersUrl        = publicMembersUrl;
     Description             = description;
     IsVerified              = isVerified;
     HasOrganizationProjects = hasOrganizationProjects;
     HasRepositoryProjects   = hasRepositoryProjects;
     UpdatedAt               = updatedAt;
 }
Exemple #7
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, 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)
 {
     SiteAdmin             = siteAdmin;
     LdapDistinguishedName = ldapDistinguishedName;
     SuspendedAt           = suspendedAt;
 }
Exemple #8
0
 protected Account(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, AccountType type, string url)
 {
     AvatarUrl = avatarUrl;
     Bio = bio;
     Blog = blog;
     Collaborators = collaborators;
     Company = company;
     CreatedAt = createdAt;
     DiskUsage = diskUsage;
     Email = email;
     Followers = followers;
     Following = following;
     Hireable = hireable;
     HtmlUrl = htmlUrl;
     TotalPrivateRepos = totalPrivateRepos;
     Id = id;
     Location = location;
     Login = login;
     Name = name;
     OwnedPrivateRepos = ownedPrivateRepos;
     Plan = plan;
     PrivateGists = privateGists;
     PublicGists = publicGists;
     PublicRepos = publicRepos;
     Type = type;
     Url = url;
 }