C# Class GitHub.Api.ApiClient

Inheritance: IApiClient
Datei anzeigen Open project: github/VisualStudio

Private Properties

Property Type Description
Configure void
GetFingerprint string
GetMachineIdentifier string
GetMachineNameSafe string
GetSha256Hash string
GetUserInternal Task

Public Methods

Method Description
ApiClient ( HostAddress hostAddress, IObservableGitHubClient gitHubClient ) : System
CreateGist ( NewGist newGist ) : IObservable
CreatePullRequest ( NewPullRequest pullRequest, string owner, string repo ) : IObservable
CreateRepository ( NewRepository repository, string login, bool isUser ) : IObservable
DeleteApplicationAuthorization ( int id, [ twoFactorAuthorizationCode ) : IObservable
GetBranches ( string owner, string repo ) : IObservable
GetFileContents ( string owner, string name, string reference, string path ) : IObservable
GetGitIgnoreTemplates ( ) : IObservable
GetLicenses ( ) : IObservable
GetOrCreateApplicationAuthenticationCode ( Func twoFactorChallengeHander, string authenticationCode = null, bool useOldScopes = false, bool useFingerPrint = true ) : IObservable
GetOrganizations ( ) : IObservable
GetPullRequest ( string owner, string name, int number ) : IObservable
GetPullRequestFiles ( string owner, string name, int number ) : IObservable
GetPullRequestsForRepository ( string owner, string name ) : IObservable
GetRepositories ( ) : IObservable
GetRepositoriesForOrganization ( string organization ) : IObservable
GetRepository ( string owner, string repo ) : IObservable
GetUser ( ) : IObservable
GetUserRepositories ( RepositoryType repositoryType ) : IObservable

Private Methods

Method Description
Configure ( ) : void
GetFingerprint ( ) : string
GetMachineIdentifier ( ) : string
GetMachineNameSafe ( ) : string
GetSha256Hash ( string input ) : string
GetUserInternal ( ) : Task

Method Details

ApiClient() public method

public ApiClient ( HostAddress hostAddress, IObservableGitHubClient gitHubClient ) : System
hostAddress GitHub.Primitives.HostAddress
gitHubClient IObservableGitHubClient
return System

CreateGist() public method

public CreateGist ( NewGist newGist ) : IObservable
newGist NewGist
return IObservable

CreatePullRequest() public method

public CreatePullRequest ( NewPullRequest pullRequest, string owner, string repo ) : IObservable
pullRequest NewPullRequest
owner string
repo string
return IObservable

CreateRepository() public method

public CreateRepository ( NewRepository repository, string login, bool isUser ) : IObservable
repository NewRepository
login string
isUser bool
return IObservable

DeleteApplicationAuthorization() public method

public DeleteApplicationAuthorization ( int id, [ twoFactorAuthorizationCode ) : IObservable
id int
twoFactorAuthorizationCode [
return IObservable

GetBranches() public method

public GetBranches ( string owner, string repo ) : IObservable
owner string
repo string
return IObservable

GetFileContents() public method

public GetFileContents ( string owner, string name, string reference, string path ) : IObservable
owner string
name string
reference string
path string
return IObservable

GetGitIgnoreTemplates() public method

public GetGitIgnoreTemplates ( ) : IObservable
return IObservable

GetLicenses() public method

public GetLicenses ( ) : IObservable
return IObservable

GetOrCreateApplicationAuthenticationCode() public method

public GetOrCreateApplicationAuthenticationCode ( Func twoFactorChallengeHander, string authenticationCode = null, bool useOldScopes = false, bool useFingerPrint = true ) : IObservable
twoFactorChallengeHander Func
authenticationCode string
useOldScopes bool
useFingerPrint bool
return IObservable

GetOrganizations() public method

public GetOrganizations ( ) : IObservable
return IObservable

GetPullRequest() public method

public GetPullRequest ( string owner, string name, int number ) : IObservable
owner string
name string
number int
return IObservable

GetPullRequestFiles() public method

public GetPullRequestFiles ( string owner, string name, int number ) : IObservable
owner string
name string
number int
return IObservable

GetPullRequestsForRepository() public method

public GetPullRequestsForRepository ( string owner, string name ) : IObservable
owner string
name string
return IObservable

GetRepositories() public method

public GetRepositories ( ) : IObservable
return IObservable

GetRepositoriesForOrganization() public method

public GetRepositoriesForOrganization ( string organization ) : IObservable
organization string
return IObservable

GetRepository() public method

public GetRepository ( string owner, string repo ) : IObservable
owner string
repo string
return IObservable

GetUser() public method

public GetUser ( ) : IObservable
return IObservable

GetUserRepositories() public method

public GetUserRepositories ( RepositoryType repositoryType ) : IObservable
repositoryType RepositoryType
return IObservable