C# Класс Spontaneous.WebApp.Services.ImageServices

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

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

Метод Описание
ConvertToImageData ( MongoDB.Driver.GridFS.MongoGridFSFileInfo gridFsInfo ) : ImageData
DownloadImageOfDish ( string restId, int menuPartId, int dishId, string imgId, string &contentType ) : Stream
GetImageData ( ImageData imageData ) : Stream
GetImageData ( string imageId ) : Stream
GetImageDataById ( string id ) : ImageData
ImageServices ( ) : System
UploadImageToDish ( Dish dish, string restId, int menuPartId, string imageUrl ) : bool
UploadImageToDish ( string restId, int menuPartId, int dishId ) : bool
UploadImageToDish ( string restId, int menuPartId, int dishId, System file ) : void
UploadImageToRestaurant ( RestaurantBasicData rest, string imageUrl ) : bool
UploadImageToRestaurant ( string restId, System file ) : void
UploadRestaurantDishesImages ( string restId ) : bool
getUrlContentType ( string url ) : string
urlToStream ( string imageUrl ) : Stream

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

ConvertToImageData() публичный статический Метод

public static ConvertToImageData ( MongoDB.Driver.GridFS.MongoGridFSFileInfo gridFsInfo ) : ImageData
gridFsInfo MongoDB.Driver.GridFS.MongoGridFSFileInfo
Результат Spontaneous.DataModel.ImageData

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

public DownloadImageOfDish ( string restId, int menuPartId, int dishId, string imgId, string &contentType ) : Stream
restId string
menuPartId int
dishId int
imgId string
contentType string
Результат Stream

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

public GetImageData ( ImageData imageData ) : Stream
imageData Spontaneous.DataModel.ImageData
Результат Stream

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

public GetImageData ( string imageId ) : Stream
imageId string
Результат Stream

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

public GetImageDataById ( string id ) : ImageData
id string
Результат Spontaneous.DataModel.ImageData

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

public ImageServices ( ) : System
Результат System

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

public UploadImageToDish ( Dish dish, string restId, int menuPartId, string imageUrl ) : bool
dish Spontaneous.DataModel.Dish
restId string
menuPartId int
imageUrl string
Результат bool

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

public UploadImageToDish ( string restId, int menuPartId, int dishId ) : bool
restId string
menuPartId int
dishId int
Результат bool

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

public UploadImageToDish ( string restId, int menuPartId, int dishId, System file ) : void
restId string
menuPartId int
dishId int
file System
Результат void

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

public UploadImageToRestaurant ( RestaurantBasicData rest, string imageUrl ) : bool
rest Spontaneous.DataModel.RestaurantBasicData
imageUrl string
Результат bool

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

public UploadImageToRestaurant ( string restId, System file ) : void
restId string
file System
Результат void

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

public UploadRestaurantDishesImages ( string restId ) : bool
restId string
Результат bool

getUrlContentType() публичный статический Метод

public static getUrlContentType ( string url ) : string
url string
Результат string

urlToStream() публичный статический Метод

public static urlToStream ( string imageUrl ) : Stream
imageUrl string
Результат Stream