C# Класс GitHub.Services.ModelService

Наследование: IModelService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreatePullRequest ( ILocalRepositoryModel sourceRepository, IRepositoryModel targetRepository, IBranch sourceBranch, IBranch targetBranch, string title, string body ) : IObservable
Dispose ( ) : void
GetAccounts ( ) : IObservable>
GetBranches ( IRepositoryModel repo ) : IObservable
GetFileContents ( IRepositoryModel repo, string commitSha, string path, string fileSha ) : IObservable
GetGitIgnoreTemplates ( ) : IObservable
GetLicenses ( ) : IObservable
GetPullRequest ( ILocalRepositoryModel repo, int number ) : IObservable
GetPullRequests ( ILocalRepositoryModel repo, ITrackingCollection collection ) : ITrackingCollection

Gets a collection of Pull Requests. If you want to refresh existing data, pass a collection in

GetRepositories ( ) : IObservable>
GetRepositories ( ITrackingCollection collection ) : ITrackingCollection
GetUserFromCache ( ) : IObservable
InsertUser ( AccountCacheItem user ) : IObservable
InvalidateAll ( ) : IObservable
ModelService ( IApiClient apiClient, IBlobCache hostCache, IAvatarProvider avatarProvider ) : System

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
Create ( GitIgnoreCacheItem item ) : GitHub.Models.GitIgnoreItem
Create ( GitReferenceCacheItem item ) : GitReferenceModel
Create ( AccountCacheItem accountCacheItem ) : IAccount
Create ( PullRequestCacheItem prCacheItem ) : IPullRequestModel
Create ( RepositoryCacheItem item ) : IRemoteRepositoryModel
Create ( LicenseCacheItem licenseCacheItem ) : GitHub.Models.LicenseItem
GetAllRepositoriesForAllOrganizations ( ) : IObservable>
GetGitIgnoreTemplatesFromApi ( ) : IObservable
GetLicensesFromApi ( ) : IObservable
GetOrganizationRepositories ( string organization ) : IObservable>
GetUser ( ) : IObservable>
GetUserOrganizations ( ) : IObservable>
GetUserRepositories ( RepositoryType repositoryType ) : IObservable>
GetUserRepositoriesFromApi ( RepositoryType repositoryType ) : IObservable>

Описание методов

CreatePullRequest() публичный Метод

public CreatePullRequest ( ILocalRepositoryModel sourceRepository, IRepositoryModel targetRepository, IBranch sourceBranch, IBranch targetBranch, string title, string body ) : IObservable
sourceRepository ILocalRepositoryModel
targetRepository IRepositoryModel
sourceBranch IBranch
targetBranch IBranch
title string
body string
Результат IObservable

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetAccounts() публичный Метод

public GetAccounts ( ) : IObservable>
Результат IObservable>

GetBranches() публичный Метод

public GetBranches ( IRepositoryModel repo ) : IObservable
repo IRepositoryModel
Результат IObservable

GetFileContents() публичный Метод

public GetFileContents ( IRepositoryModel repo, string commitSha, string path, string fileSha ) : IObservable
repo IRepositoryModel
commitSha string
path string
fileSha string
Результат IObservable

GetGitIgnoreTemplates() публичный Метод

public GetGitIgnoreTemplates ( ) : IObservable
Результат IObservable

GetLicenses() публичный Метод

public GetLicenses ( ) : IObservable
Результат IObservable

GetPullRequest() публичный Метод

public GetPullRequest ( ILocalRepositoryModel repo, int number ) : IObservable
repo ILocalRepositoryModel
number int
Результат IObservable

GetPullRequests() публичный Метод

Gets a collection of Pull Requests. If you want to refresh existing data, pass a collection in
public GetPullRequests ( ILocalRepositoryModel repo, ITrackingCollection collection ) : ITrackingCollection
repo ILocalRepositoryModel
collection ITrackingCollection
Результат ITrackingCollection

GetRepositories() публичный Метод

public GetRepositories ( ) : IObservable>
Результат IObservable>

GetRepositories() публичный Метод

public GetRepositories ( ITrackingCollection collection ) : ITrackingCollection
collection ITrackingCollection
Результат ITrackingCollection

GetUserFromCache() публичный Метод

public GetUserFromCache ( ) : IObservable
Результат IObservable

InsertUser() публичный Метод

public InsertUser ( AccountCacheItem user ) : IObservable
user GitHub.Caches.AccountCacheItem
Результат IObservable

InvalidateAll() публичный Метод

public InvalidateAll ( ) : IObservable
Результат IObservable

ModelService() публичный Метод

public ModelService ( IApiClient apiClient, IBlobCache hostCache, IAvatarProvider avatarProvider ) : System
apiClient IApiClient
hostCache IBlobCache
avatarProvider IAvatarProvider
Результат System