C# Class YukiYume.GitHub.Json.JsonObjectService

JSON implementation of IObjectService
Inheritance: BaseService, IObjectService
ファイルを表示 Open project: yukiyume/YukiYume.GitHub

Public Methods

Method Description
GetBlob ( User user, Repository repository, string blobSha ) : byte[]
GetBlob ( string userName, string repositoryName, string blobSha ) : byte[]
GetBlobMeta ( User user, Repository repository, string treeSha, string path ) : Blob
GetBlobMeta ( string userName, string repositoryName, string treeSha, string path ) : Blob
JsonObjectService ( ) : System
JsonObjectService ( string gitHubUserName, string gitHubApiToken ) : System
TreeList ( User user, Repository repository, string treeSha ) : IEnumerable
TreeList ( string userName, string repositoryName, string treeSha ) : IEnumerable

Protected Methods

Method Description
ValidateGetBlobArguments ( string userName, string repositoryName, string blobSha ) : void
ValidateGetBlobMetaArguments ( string userName, string repositoryName, string treeSha, string path ) : void
ValidateTreeListArguments ( string userName, string repositoryName, string treeSha ) : void

Method Details

GetBlob() public method

public GetBlob ( User user, Repository repository, string blobSha ) : byte[]
user User
repository Repository
blobSha string
return byte[]

GetBlob() public method

public GetBlob ( string userName, string repositoryName, string blobSha ) : byte[]
userName string
repositoryName string
blobSha string
return byte[]

GetBlobMeta() public method

public GetBlobMeta ( User user, Repository repository, string treeSha, string path ) : Blob
user User
repository Repository
treeSha string
path string
return Blob

GetBlobMeta() public method

public GetBlobMeta ( string userName, string repositoryName, string treeSha, string path ) : Blob
userName string
repositoryName string
treeSha string
path string
return Blob

JsonObjectService() public method

public JsonObjectService ( ) : System
return System

JsonObjectService() public method

public JsonObjectService ( string gitHubUserName, string gitHubApiToken ) : System
gitHubUserName string
gitHubApiToken string
return System

TreeList() public method

public TreeList ( User user, Repository repository, string treeSha ) : IEnumerable
user User
repository Repository
treeSha string
return IEnumerable

TreeList() public method

public TreeList ( string userName, string repositoryName, string treeSha ) : IEnumerable
userName string
repositoryName string
treeSha string
return IEnumerable

ValidateGetBlobArguments() protected static method

protected static ValidateGetBlobArguments ( string userName, string repositoryName, string blobSha ) : void
userName string
repositoryName string
blobSha string
return void

ValidateGetBlobMetaArguments() protected static method

protected static ValidateGetBlobMetaArguments ( string userName, string repositoryName, string treeSha, string path ) : void
userName string
repositoryName string
treeSha string
path string
return void

ValidateTreeListArguments() protected static method

protected static ValidateTreeListArguments ( string userName, string repositoryName, string treeSha ) : void
userName string
repositoryName string
treeSha string
return void