Interface IMediaVersionService
MediaVersion service interface for core plugins
Namespace: ImageVault.Core.Common.Services
Assembly: ImageVault.Core.dll
Syntax
public interface IMediaVersionService
Methods
AddState(Int32, MediaItemStates)
Adds the supplied state to the version
Declaration
void AddState(int versionId, MediaItemStates state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | versionId | |
MediaItemStates | state |
GetMediaVersion(Int32)
Gets the MediaVersion
Declaration
DbMediaVersion GetMediaVersion(int versionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | versionId | The id of the version to get |
Returns
Type | Description |
---|---|
DbMediaVersion |
GetMediaVersions(List<Int32>)
Gets a list of media versions
Declaration
IList<DbMediaVersion> GetMediaVersions(List<int> versionId)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Int32> | versionId |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<DbMediaVersion> |
RemoveState(Int32, MediaItemStates)
Removes the supplied state to the version
Declaration
void RemoveState(int versionId, MediaItemStates state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | versionId | |
MediaItemStates | state |
SetState(Int32, MediaItemStates)
Sets the state for the supplied version
Declaration
[Obsolete("Use AddState or IMediaVersionRepository.RemoveState instead")]
void SetState(int versionId, MediaItemStates state)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | versionId | |
MediaItemStates | state |