C# Класс YouScribe.Rest.ProductRequest

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

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

Метод Описание
DownloadExtractAsync ( int productId, int formatTypeId ) : Task
DownloadExtractAsync ( int productId, string extension ) : Task
DownloadExtractToStreamAsync ( int productId, int formatTypeId, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
DownloadExtractToStreamAsync ( int productId, string extension, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
DownloadFileAsync ( int productId, int formatTypeId ) : Task
DownloadFileAsync ( int productId, string extension ) : Task
DownloadFileToStreamAsync ( int productId, int formatTypeId, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
DownloadFileToStreamAsync ( int productId, string extension, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
GetAsync ( IEnumerable ids ) : Task>
GetAsync ( int id ) : Task
GetAsyncV2 ( IEnumerable ids ) : Task>
GetAsyncV2 ( int id ) : Task
GetProductUrlsAsync ( IEnumerable ids ) : Task>
GetRightAsync ( IEnumerable productId ) : Task>
GetRightAsync ( int productId ) : Task
ProductRequest ( Func clientFactory, ITokenProvider authorizeTokenProvider ) : System
PublishDocumentAsync ( ProductModel productInformation, IEnumerable files ) : Task
PublishDocumentAsync ( ProductModel productInformation, IEnumerable filesUri ) : Task
UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation ) : Task
UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation, IEnumerable files ) : Task
UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation, IEnumerable filesUri ) : Task
UpdateDocumentThumbnailAsync ( int productId, FileModel image ) : Task
UpdateDocumentThumbnailAsync ( int productId, Uri imageUri ) : Task
UpdateDocumentThumbnailAsync ( int productId, int page ) : Task

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

Метод Описание
DownloadFileToStreamAsync ( string url, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task

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

Метод Описание
GetAsync ( string url, IEnumerable ids ) : Task>
GetAsync ( string url, int id ) : Task
finalizeUdateAsync ( int productId ) : Task
publishDocumentAsync ( ProductModel productInformation, IEnumerable files ) : Task
updateDocumentAsync ( int productId, ProductUpdateModel productInformation ) : Task
uploadFilesAsync ( int productId, IEnumerable files ) : Task
uploadFilesAsync ( int productId, IEnumerable files ) : Task

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

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

public DownloadExtractAsync ( int productId, int formatTypeId ) : Task
productId int
formatTypeId int
Результат Task

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

public DownloadExtractAsync ( int productId, string extension ) : Task
productId int
extension string
Результат Task

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

public DownloadExtractToStreamAsync ( int productId, int formatTypeId, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
formatTypeId int
writer Stream
progressReport IProgress
Результат System.Threading.Tasks.Task

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

public DownloadExtractToStreamAsync ( int productId, string extension, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
extension string
writer Stream
progressReport IProgress
Результат System.Threading.Tasks.Task

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

public DownloadFileAsync ( int productId, int formatTypeId ) : Task
productId int
formatTypeId int
Результат Task

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

public DownloadFileAsync ( int productId, string extension ) : Task
productId int
extension string
Результат Task

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

public DownloadFileToStreamAsync ( int productId, int formatTypeId, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
formatTypeId int
writer Stream
progressReport IProgress
Результат System.Threading.Tasks.Task

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

public DownloadFileToStreamAsync ( int productId, string extension, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
extension string
writer Stream
progressReport IProgress
Результат System.Threading.Tasks.Task

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

protected DownloadFileToStreamAsync ( string url, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
url string
writer Stream
progressReport IProgress
Результат System.Threading.Tasks.Task

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

public GetAsync ( IEnumerable ids ) : Task>
ids IEnumerable
Результат Task>

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

public GetAsync ( int id ) : Task
id int
Результат Task

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

public GetAsyncV2 ( IEnumerable ids ) : Task>
ids IEnumerable
Результат Task>

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

public GetAsyncV2 ( int id ) : Task
id int
Результат Task

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

public GetProductUrlsAsync ( IEnumerable ids ) : Task>
ids IEnumerable
Результат Task>

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

public GetRightAsync ( IEnumerable productId ) : Task>
productId IEnumerable
Результат Task>

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

public GetRightAsync ( int productId ) : Task
productId int
Результат Task

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

public ProductRequest ( Func clientFactory, ITokenProvider authorizeTokenProvider ) : System
clientFactory Func
authorizeTokenProvider ITokenProvider
Результат System

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

public PublishDocumentAsync ( ProductModel productInformation, IEnumerable files ) : Task
productInformation YouScribe.Rest.Models.Products.ProductModel
files IEnumerable
Результат Task

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

public PublishDocumentAsync ( ProductModel productInformation, IEnumerable filesUri ) : Task
productInformation YouScribe.Rest.Models.Products.ProductModel
filesUri IEnumerable
Результат Task

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

public UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation ) : Task
productId int
productInformation YouScribe.Rest.Models.Products.ProductUpdateModel
Результат Task

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

public UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation, IEnumerable files ) : Task
productId int
productInformation YouScribe.Rest.Models.Products.ProductUpdateModel
files IEnumerable
Результат Task

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

public UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation, IEnumerable filesUri ) : Task
productId int
productInformation YouScribe.Rest.Models.Products.ProductUpdateModel
filesUri IEnumerable
Результат Task

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

public UpdateDocumentThumbnailAsync ( int productId, FileModel image ) : Task
productId int
image YouScribe.Rest.Models.FileModel
Результат Task

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

public UpdateDocumentThumbnailAsync ( int productId, Uri imageUri ) : Task
productId int
imageUri System.Uri
Результат Task

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

public UpdateDocumentThumbnailAsync ( int productId, int page ) : Task
productId int
page int
Результат Task