示例#1
0
 public IEnumerable <Project> this[string name]
 {
     get
     {
         return(_api.Get().GetAll <Project>(Project.Url + "?search=" + name));
     }
 }
示例#2
0
 public Project this[int id]
 {
     get
     {
         return(_api.Get().To <Project>(Project.Url + "/" + id));
     }
 }
示例#3
0
 public User this[int id]
 {
     get
     {
         return(_api.Get().To <User>(User.Url + "/" + id));
     }
 }
示例#4
0
 public Namespace this[int id]
 {
     get
     {
         return(_api.Get().To <Namespace>(Namespace.Url + "/" + id));
     }
 }
示例#5
0
 public void GetRawBlob(string sha, Action <Stream> parser)
 {
     _api.Get().Stream(_repoPath + "/raw_blobs/" + sha, parser);
 }
示例#6
0
 public IEnumerable <Build> GetBuildsForCommit(Sha1 sha)
 {
     return(_api.Get().GetAll <Build>(_buildsFromCommitPath + "/" + sha.ToString().ToLowerInvariant() + Build.Url));
 }
示例#7
0
 public Branch this[string name] {
     get { return(_api.Get().To <Branch>(_repoPath + "/branches/" + name)); }
 }
示例#8
0
 public ProjectHook this[int hookId]
 {
     get { return(_api.Get().To <ProjectHook>(_path + "/" + hookId)); }
 }
示例#9
0
 public IEnumerable <Issue> ForProject(int projectId)
 {
     return(_api.Get().GetAll <Issue>(string.Format(ProjectIssuesUrl, projectId)));
 }
示例#10
0
 public FileData Get(FileGet file)
 {
     return(_api.Get().To <FileData>(_repoPath + string.Format(FilesUrl, file.Path, file.Ref)));
 }
示例#11
0
 public IEnumerable <MergeRequest> AllInState(MergeRequestState state)
 {
     return(_api.Get().GetAll <MergeRequest>(_projectPath + "/merge_requests?state=" + state));
 }
示例#12
0
 public ProjectHook this[int hookId] => _api.Get().To <ProjectHook>(_path + "/" + hookId);
示例#13
0
 public IEnumerable <Label> ForProject(int projectId)
 {
     return(_api.Get().GetAll <Label>(string.Format(ProjectLabelUrl, projectId)));
 }