C# Class YukiYume.GitHub.GithubClient

显示文件 Open project: yukiyume/YukiYume.GitHub Class Usage Examples

Public Methods

Method Description
Download ( string action ) : string
Download ( string action, bool isAuthenticating ) : string
Download ( string action, bool isAuthenticating, NameValueCollection values ) : string
Download ( string action, bool isAuthenticating, NameValueCollection values, string url ) : string
DownloadData ( string action ) : byte[]
DownloadData ( string action, bool isAuthenticating ) : byte[]
DownloadData ( string action, bool isAuthenticating, NameValueCollection values ) : byte[]
DownloadData ( string action, bool isAuthenticating, NameValueCollection values, string url ) : byte[]
DownloadNetwork ( string action ) : string
GithubClient ( FormatType formatType ) : System
GithubClient ( FormatType formatType, string gitHubUserName, string gitHubApiToken ) : System

Private Methods

Method Description
GetClient ( ) : WebClient
GetParameters ( bool isAuthenticating, NameValueCollection values ) : NameValueCollection
GithubClient ( ) : System
ReleaseClient ( WebClient client ) : void

Method Details

Download() public method

public Download ( string action ) : string
action string
return string

Download() public method

public Download ( string action, bool isAuthenticating ) : string
action string
isAuthenticating bool
return string

Download() public method

public Download ( string action, bool isAuthenticating, NameValueCollection values ) : string
action string
isAuthenticating bool
values System.Collections.Specialized.NameValueCollection
return string

Download() public method

public Download ( string action, bool isAuthenticating, NameValueCollection values, string url ) : string
action string
isAuthenticating bool
values System.Collections.Specialized.NameValueCollection
url string
return string

DownloadData() public method

public DownloadData ( string action ) : byte[]
action string
return byte[]

DownloadData() public method

public DownloadData ( string action, bool isAuthenticating ) : byte[]
action string
isAuthenticating bool
return byte[]

DownloadData() public method

public DownloadData ( string action, bool isAuthenticating, NameValueCollection values ) : byte[]
action string
isAuthenticating bool
values System.Collections.Specialized.NameValueCollection
return byte[]

DownloadData() public method

public DownloadData ( string action, bool isAuthenticating, NameValueCollection values, string url ) : byte[]
action string
isAuthenticating bool
values System.Collections.Specialized.NameValueCollection
url string
return byte[]

DownloadNetwork() public method

public DownloadNetwork ( string action ) : string
action string
return string

GithubClient() public method

public GithubClient ( FormatType formatType ) : System
formatType FormatType
return System

GithubClient() public method

public GithubClient ( FormatType formatType, string gitHubUserName, string gitHubApiToken ) : System
formatType FormatType
gitHubUserName string
gitHubApiToken string
return System