C# Class Spontaneous.WebApp.Services.ImageServices

Show file Open project: pashkov/Spontaneous Class Usage Examples

Public Methods

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

Method Details

ConvertToImageData() public static method

public static ConvertToImageData ( MongoDB.Driver.GridFS.MongoGridFSFileInfo gridFsInfo ) : ImageData
gridFsInfo MongoDB.Driver.GridFS.MongoGridFSFileInfo
return Spontaneous.DataModel.ImageData

DownloadImageOfDish() public method

public DownloadImageOfDish ( string restId, int menuPartId, int dishId, string imgId, string &contentType ) : Stream
restId string
menuPartId int
dishId int
imgId string
contentType string
return Stream

GetImageData() public method

public GetImageData ( ImageData imageData ) : Stream
imageData Spontaneous.DataModel.ImageData
return Stream

GetImageData() public method

public GetImageData ( string imageId ) : Stream
imageId string
return Stream

GetImageDataById() public method

public GetImageDataById ( string id ) : ImageData
id string
return Spontaneous.DataModel.ImageData

ImageServices() public method

public ImageServices ( ) : System
return System

UploadImageToDish() public method

public UploadImageToDish ( Dish dish, string restId, int menuPartId, string imageUrl ) : bool
dish Spontaneous.DataModel.Dish
restId string
menuPartId int
imageUrl string
return bool

UploadImageToDish() public method

public UploadImageToDish ( string restId, int menuPartId, int dishId ) : bool
restId string
menuPartId int
dishId int
return bool

UploadImageToDish() public method

public UploadImageToDish ( string restId, int menuPartId, int dishId, System file ) : void
restId string
menuPartId int
dishId int
file System
return void

UploadImageToRestaurant() public method

public UploadImageToRestaurant ( RestaurantBasicData rest, string imageUrl ) : bool
rest Spontaneous.DataModel.RestaurantBasicData
imageUrl string
return bool

UploadImageToRestaurant() public method

public UploadImageToRestaurant ( string restId, System file ) : void
restId string
file System
return void

UploadRestaurantDishesImages() public method

public UploadRestaurantDishesImages ( string restId ) : bool
restId string
return bool

getUrlContentType() public static method

public static getUrlContentType ( string url ) : string
url string
return string

urlToStream() public static method

public static urlToStream ( string imageUrl ) : Stream
imageUrl string
return Stream