C# Класс Bukimedia.PrestaSharp.Factories.ImageFactory

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

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

Метод Описание
AddCategoryImage ( long CategoryId, byte CategoryImage ) : void
AddCategoryImage ( long CategoryId, string CategoryImagePath ) : void
AddManufacturerImage ( long ManufacturerId, byte ManufacturerImage ) : void
AddManufacturerImage ( long ManufacturerId, string ManufacturerImagePath ) : void
AddProductImage ( long ProductId, byte ProductImage ) : void
AddProductImage ( long ProductId, string ProductImagePath ) : void
DeleteCategoryImage ( long CategoryID ) : void
DeleteManufacturerImage ( long ManufacturerId ) : void
DeleteProductImage ( long ProductId, long ImageId ) : void
GetAllCategoryImages ( ) : List
GetAllManufacturerImages ( ) : List
GetAllProductImages ( ) : List
GetCategoryImage ( long CategoryId, long ImageId ) : byte[]
GetManufacturerImage ( long ManufacturerId, long ImageId ) : byte[]
GetProductImage ( long ProductId, long ImageId ) : byte[]
GetProductImages ( long ProductId ) : List
ImageFactory ( string BaseUrl, string Account, string SecretKey ) : System
UpdateCategoryImage ( long CategoryId, string CategoryImagePath ) : void
UpdateManufacturerImage ( long ManufacturerId, string ManufacturerImagePath ) : void
UpdateProductImage ( long ProductId, long ImageId, string ProductImagePath ) : void

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

Метод Описание
AddImage ( string Resource, long Id, byte Image ) : void
AddImage ( string Resource, long Id, string ImagePath ) : void
DeleteImage ( string Resource, long ResourceId, long ImageId ) : void
GetAllImages ( string Resource ) : List
GetImagesByInstance ( string Resource, long Id ) : List
UpdateImage ( string Resource, long ResourceId, long ImageId, string ImagePath ) : void

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

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

public AddCategoryImage ( long CategoryId, byte CategoryImage ) : void
CategoryId long
CategoryImage byte
Результат void

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

public AddCategoryImage ( long CategoryId, string CategoryImagePath ) : void
CategoryId long
CategoryImagePath string
Результат void

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

protected AddImage ( string Resource, long Id, byte Image ) : void
Resource string
Id long
Image byte
Результат void

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

protected AddImage ( string Resource, long Id, string ImagePath ) : void
Resource string
Id long
ImagePath string
Результат void

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

public AddManufacturerImage ( long ManufacturerId, byte ManufacturerImage ) : void
ManufacturerId long
ManufacturerImage byte
Результат void

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

public AddManufacturerImage ( long ManufacturerId, string ManufacturerImagePath ) : void
ManufacturerId long
ManufacturerImagePath string
Результат void

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

public AddProductImage ( long ProductId, byte ProductImage ) : void
ProductId long
ProductImage byte
Результат void

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

public AddProductImage ( long ProductId, string ProductImagePath ) : void
ProductId long
ProductImagePath string
Результат void

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

public DeleteCategoryImage ( long CategoryID ) : void
CategoryID long
Результат void

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

protected DeleteImage ( string Resource, long ResourceId, long ImageId ) : void
Resource string
ResourceId long
ImageId long
Результат void

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

public DeleteManufacturerImage ( long ManufacturerId ) : void
ManufacturerId long
Результат void

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

public DeleteProductImage ( long ProductId, long ImageId ) : void
ProductId long
ImageId long
Результат void

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

public GetAllCategoryImages ( ) : List
Результат List

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

protected GetAllImages ( string Resource ) : List
Resource string
Результат List

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

public GetAllManufacturerImages ( ) : List
Результат List

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

public GetAllProductImages ( ) : List
Результат List

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

public GetCategoryImage ( long CategoryId, long ImageId ) : byte[]
CategoryId long
ImageId long
Результат byte[]

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

protected GetImagesByInstance ( string Resource, long Id ) : List
Resource string
Id long
Результат List

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

public GetManufacturerImage ( long ManufacturerId, long ImageId ) : byte[]
ManufacturerId long
ImageId long
Результат byte[]

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

public GetProductImage ( long ProductId, long ImageId ) : byte[]
ProductId long
ImageId long
Результат byte[]

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

public GetProductImages ( long ProductId ) : List
ProductId long
Результат List

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

public ImageFactory ( string BaseUrl, string Account, string SecretKey ) : System
BaseUrl string
Account string
SecretKey string
Результат System

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

public UpdateCategoryImage ( long CategoryId, string CategoryImagePath ) : void
CategoryId long
CategoryImagePath string
Результат void

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

protected UpdateImage ( string Resource, long ResourceId, long ImageId, string ImagePath ) : void
Resource string
ResourceId long
ImageId long
ImagePath string
Результат void

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

public UpdateManufacturerImage ( long ManufacturerId, string ManufacturerImagePath ) : void
ManufacturerId long
ManufacturerImagePath string
Результат void

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

public UpdateProductImage ( long ProductId, long ImageId, string ProductImagePath ) : void
ProductId long
ImageId long
ProductImagePath string
Результат void