C# Class YouScribe.Rest.ProductRequest

Inheritance: YouScribeRequest, IProductRequest
Show file Open project: Youscribe/YouscribeNet Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
DownloadFileToStreamAsync ( string url, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task

Private Methods

Method Description
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

Method Details

DownloadExtractAsync() public method

public DownloadExtractAsync ( int productId, int formatTypeId ) : Task
productId int
formatTypeId int
return Task

DownloadExtractAsync() public method

public DownloadExtractAsync ( int productId, string extension ) : Task
productId int
extension string
return Task

DownloadExtractToStreamAsync() public method

public DownloadExtractToStreamAsync ( int productId, int formatTypeId, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
formatTypeId int
writer Stream
progressReport IProgress
return System.Threading.Tasks.Task

DownloadExtractToStreamAsync() public method

public DownloadExtractToStreamAsync ( int productId, string extension, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
extension string
writer Stream
progressReport IProgress
return System.Threading.Tasks.Task

DownloadFileAsync() public method

public DownloadFileAsync ( int productId, int formatTypeId ) : Task
productId int
formatTypeId int
return Task

DownloadFileAsync() public method

public DownloadFileAsync ( int productId, string extension ) : Task
productId int
extension string
return Task

DownloadFileToStreamAsync() public method

public DownloadFileToStreamAsync ( int productId, int formatTypeId, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
formatTypeId int
writer Stream
progressReport IProgress
return System.Threading.Tasks.Task

DownloadFileToStreamAsync() public method

public DownloadFileToStreamAsync ( int productId, string extension, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
productId int
extension string
writer Stream
progressReport IProgress
return System.Threading.Tasks.Task

DownloadFileToStreamAsync() protected method

protected DownloadFileToStreamAsync ( string url, Stream writer, IProgress progressReport ) : System.Threading.Tasks.Task
url string
writer Stream
progressReport IProgress
return System.Threading.Tasks.Task

GetAsync() public method

public GetAsync ( IEnumerable ids ) : Task>
ids IEnumerable
return Task>

GetAsync() public method

public GetAsync ( int id ) : Task
id int
return Task

GetAsyncV2() public method

public GetAsyncV2 ( IEnumerable ids ) : Task>
ids IEnumerable
return Task>

GetAsyncV2() public method

public GetAsyncV2 ( int id ) : Task
id int
return Task

GetProductUrlsAsync() public method

public GetProductUrlsAsync ( IEnumerable ids ) : Task>
ids IEnumerable
return Task>

GetRightAsync() public method

public GetRightAsync ( IEnumerable productId ) : Task>
productId IEnumerable
return Task>

GetRightAsync() public method

public GetRightAsync ( int productId ) : Task
productId int
return Task

ProductRequest() public method

public ProductRequest ( Func clientFactory, ITokenProvider authorizeTokenProvider ) : System
clientFactory Func
authorizeTokenProvider ITokenProvider
return System

PublishDocumentAsync() public method

public PublishDocumentAsync ( ProductModel productInformation, IEnumerable files ) : Task
productInformation YouScribe.Rest.Models.Products.ProductModel
files IEnumerable
return Task

PublishDocumentAsync() public method

public PublishDocumentAsync ( ProductModel productInformation, IEnumerable filesUri ) : Task
productInformation YouScribe.Rest.Models.Products.ProductModel
filesUri IEnumerable
return Task

UpdateDocumentAsync() public method

public UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation ) : Task
productId int
productInformation YouScribe.Rest.Models.Products.ProductUpdateModel
return Task

UpdateDocumentAsync() public method

public UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation, IEnumerable files ) : Task
productId int
productInformation YouScribe.Rest.Models.Products.ProductUpdateModel
files IEnumerable
return Task

UpdateDocumentAsync() public method

public UpdateDocumentAsync ( int productId, ProductUpdateModel productInformation, IEnumerable filesUri ) : Task
productId int
productInformation YouScribe.Rest.Models.Products.ProductUpdateModel
filesUri IEnumerable
return Task

UpdateDocumentThumbnailAsync() public method

public UpdateDocumentThumbnailAsync ( int productId, FileModel image ) : Task
productId int
image YouScribe.Rest.Models.FileModel
return Task

UpdateDocumentThumbnailAsync() public method

public UpdateDocumentThumbnailAsync ( int productId, Uri imageUri ) : Task
productId int
imageUri System.Uri
return Task

UpdateDocumentThumbnailAsync() public method

public UpdateDocumentThumbnailAsync ( int productId, int page ) : Task
productId int
page int
return Task