added LockedFields to BaseItem

This commit is contained in:
Luke Pulverenti 2013-06-09 10:15:59 -04:00
parent 7ceb377cde
commit f651d981ea
7 changed files with 69 additions and 0 deletions

View File

@ -233,6 +233,12 @@ namespace MediaBrowser.Controller.Dto
dto.DisplayMediaType = item.DisplayMediaType;
}
if (fields.Contains(ItemFields.LockedFields))
{
dto.LockedFields = item.LockedFields;
dto.LockedImages = item.LockedImages;
}
if (fields.Contains(ItemFields.Budget))
{
dto.Budget = item.Budget;

View File

@ -157,6 +157,18 @@ namespace MediaBrowser.Controller.Entities
/// <value><c>true</c> if [dont fetch meta]; otherwise, <c>false</c>.</value>
public bool DontFetchMeta { get; set; }
/// <summary>
/// Gets or sets the locked fields.
/// </summary>
/// <value>The locked fields.</value>
public List<MetadataFields> LockedFields { get; set; }
/// <summary>
/// Gets or sets the locked images.
/// </summary>
/// <value>The locked images.</value>
public List<ImageType> LockedImages { get; set; }
/// <summary>
/// Determines whether the item has a saved local image of the specified name (jpg or png).
/// </summary>

View File

@ -136,6 +136,9 @@
<Compile Include="..\MediaBrowser.Model\Entities\MediaType.cs">
<Link>Entities\MediaType.cs</Link>
</Compile>
<Compile Include="..\MediaBrowser.Model\Entities\MetadataFields.cs">
<Link>Entities\MetadataFields.cs</Link>
</Compile>
<Compile Include="..\MediaBrowser.Model\Entities\MetadataProviders.cs">
<Link>Entities\MetadataProviders.cs</Link>
</Compile>

View File

@ -458,6 +458,18 @@ namespace MediaBrowser.Model.Dto
/// <value>The revenue.</value>
public double? Revenue { get; set; }
/// <summary>
/// Gets or sets the locked fields.
/// </summary>
/// <value>The locked fields.</value>
public List<MetadataFields> LockedFields { get; set; }
/// <summary>
/// Gets or sets the locked images.
/// </summary>
/// <value>The locked images.</value>
public List<ImageType> LockedImages { get; set; }
/// <summary>
/// Gets a value indicating whether this instance can resume.
/// </summary>

View File

@ -0,0 +1,30 @@

namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum MetadataFields
/// </summary>
public enum MetadataFields
{
/// <summary>
/// The cast
/// </summary>
Cast,
/// <summary>
/// The genres
/// </summary>
Genres,
/// <summary>
/// The production locations
/// </summary>
ProductionLocations,
/// <summary>
/// The studios
/// </summary>
Studios,
/// <summary>
/// The tags
/// </summary>
Tags
}
}

View File

@ -53,6 +53,7 @@
<Compile Include="Dto\StudioDto.cs" />
<Compile Include="Entities\IByReferenceItem.cs" />
<Compile Include="Entities\ItemReview.cs" />
<Compile Include="Entities\MetadataFields.cs" />
<Compile Include="Net\WebSocketMessage.cs" />
<Compile Include="Net\WebSocketMessageType.cs" />
<Compile Include="Net\WebSocketState.cs" />

View File

@ -66,6 +66,11 @@ namespace MediaBrowser.Model.Querying
/// </summary>
IndexOptions,
/// <summary>
/// The locked fields
/// </summary>
LockedFields,
/// <summary>
/// The item overview
/// </summary>