IGitHubGateway
Assembly: ServiceStack.Common.dll
Declaration
public interface IGitHubGateway : IGistGateway
Methods
FindRepo(String[], String, Boolean)
Declaration
Tuple<string, string> FindRepo(string[] orgs, string name, bool useFork = false)
Returns
System.Tuple<System.String,System.String>
Parameters
Type | Name |
---|
System.String[] | orgs |
System.String | name |
System.Boolean | useFork |
GetSourceZipUrl(String, String)
Declaration
string GetSourceZipUrl(string user, string repo)
Returns
System.String
Parameters
Type | Name |
---|
System.String | user |
System.String | repo |
GetSourceZipUrlAsync(String, String)
Declaration
Task<string> GetSourceZipUrlAsync(string user, string repo)
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|
System.String | user |
System.String | repo |
GetSourceReposAsync(String)
Declaration
Task<List<GithubRepo>> GetSourceReposAsync(string orgName)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>
Parameters
Type | Name |
---|
System.String | orgName |
GetUserAndOrgReposAsync(String)
Declaration
Task<List<GithubRepo>> GetUserAndOrgReposAsync(string githubOrgOrUser)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>
Parameters
Type | Name |
---|
System.String | githubOrgOrUser |
GetRepo(String, String)
Declaration
GithubRepo GetRepo(string userOrOrg, string repo)
Returns
ServiceStack.GithubRepo
Parameters
Type | Name |
---|
System.String | userOrOrg |
System.String | repo |
GetRepoAsync(String, String)
Declaration
Task<GithubRepo> GetRepoAsync(string userOrOrg, string repo)
Returns
System.Threading.Tasks.Task<ServiceStack.GithubRepo>
Parameters
Type | Name |
---|
System.String | userOrOrg |
System.String | repo |
GetUserRepos(String)
Declaration
List<GithubRepo> GetUserRepos(string githubUser)
Returns
System.Collections.Generic.List<ServiceStack.GithubRepo>
Parameters
Type | Name |
---|
System.String | githubUser |
GetUserReposAsync(String)
Declaration
Task<List<GithubRepo>> GetUserReposAsync(string githubUser)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>
Parameters
Type | Name |
---|
System.String | githubUser |
GetOrgRepos(String)
Declaration
List<GithubRepo> GetOrgRepos(string githubOrg)
Returns
System.Collections.Generic.List<ServiceStack.GithubRepo>
Parameters
Type | Name |
---|
System.String | githubOrg |
GetOrgReposAsync(String)
Declaration
Task<List<GithubRepo>> GetOrgReposAsync(string githubOrg)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<ServiceStack.GithubRepo>>
Parameters
Type | Name |
---|
System.String | githubOrg |
GetJson(String)
Declaration
string GetJson(string route)
Returns
System.String
Parameters
Type | Name |
---|
System.String | route |
GetJson<T>(String)
Declaration
T GetJson<T>(string route)
Returns
<T>
Parameters
Type | Name |
---|
System.String | route |
Type Parameters
GetJsonAsync(String)
Declaration
Task<string> GetJsonAsync(string route)
Returns
System.Threading.Tasks.Task<System.String>
Parameters
Type | Name |
---|
System.String | route |
GetJsonAsync<T>(String)
Declaration
Task<T> GetJsonAsync<T>(string route)
Returns
System.Threading.Tasks.Task<<T>>
Parameters
Type | Name |
---|
System.String | route |
Type Parameters
StreamJsonCollection<T>(String)
Declaration
IEnumerable<T> StreamJsonCollection<T>(string route)
Returns
System.Collections.Generic.IEnumerable<<T>>
Parameters
Type | Name |
---|
System.String | route |
Type Parameters
GetJsonCollectionAsync<T>(String)
Declaration
Task<List<T>> GetJsonCollectionAsync<T>(string route)
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|
System.String | route |
Type Parameters
DownloadFile(String, String)
Declaration
void DownloadFile(string downloadUrl, string fileName)
Parameters
Type | Name |
---|
System.String | downloadUrl |
System.String | fileName |