Interface IMediaService
Defines the DbMediaItem Service interface
Namespace: ImageVault.Core.Common.Services
Assembly: ImageVault.Core.dll
Syntax
public interface IMediaService
Methods
Create(DbMediaItem)
Creates the supplied media item
Declaration
void Create(DbMediaItem item)
Parameters
Type | Name | Description |
---|---|---|
DbMediaItem | item |
GetMediaItem(Int32)
Get a media item by id
Declaration
DbMediaItem GetMediaItem(int mediaItemId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | mediaItemId | the id of the media item |
Returns
Type | Description |
---|---|
DbMediaItem |
Save(MediaServiceSaveRequest)
Performs a save operation
Declaration
MediaServiceSaveResponse Save(MediaServiceSaveRequest request)
Parameters
Type | Name | Description |
---|---|---|
MediaServiceSaveRequest | request |
Returns
Type | Description |
---|---|
MediaServiceSaveResponse |
Update(DbMediaItem)
Updates the supplied mediaitem
Declaration
void Update(DbMediaItem mediaItem)
Parameters
Type | Name | Description |
---|---|---|
DbMediaItem | mediaItem |
UpdateMediaItem(DbMediaItem)
Update a media item. Will not update metadata och categories.
Declaration
[Obsolete("Use Update instead")]
void UpdateMediaItem(DbMediaItem mediaItem)
Parameters
Type | Name | Description |
---|---|---|
DbMediaItem | mediaItem |