add photo album

This commit is contained in:
Luke Pulverenti
2014-08-29 00:06:30 -04:00
parent 7e636a977a
commit 18a7ddc2fa
18 changed files with 462 additions and 27 deletions

View File

@@ -77,6 +77,7 @@ namespace MediaBrowser.Controller.Entities.Audio
}
}
[IgnoreDataMember]
public override Folder LatestItemsIndexContainer
{
get

View File

@@ -1,5 +1,8 @@
using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Drawing;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
namespace MediaBrowser.Controller.Entities
{
@@ -14,6 +17,14 @@ namespace MediaBrowser.Controller.Entities
Taglines = new List<string>();
}
public override bool SupportsLocalMetadata
{
get
{
return false;
}
}
public override string MediaType
{
get
@@ -22,6 +33,15 @@ namespace MediaBrowser.Controller.Entities
}
}
[IgnoreDataMember]
public override Folder LatestItemsIndexContainer
{
get
{
return Parents.OfType<PhotoAlbum>().FirstOrDefault();
}
}
public int? Width { get; set; }
public int? Height { get; set; }
public string CameraMake { get; set; }
@@ -32,5 +52,10 @@ namespace MediaBrowser.Controller.Entities
public ImageOrientation? Orientation { get; set; }
public double? Aperture { get; set; }
public double? ShutterSpeed { get; set; }
protected override bool GetBlockUnratedValue(UserConfiguration config)
{
return config.BlockUnratedItems.Contains(UnratedItem.Other);
}
}
}

View File

@@ -0,0 +1,21 @@
using MediaBrowser.Model.Configuration;
using System.Linq;
namespace MediaBrowser.Controller.Entities
{
public class PhotoAlbum : Folder
{
public override bool SupportsLocalMetadata
{
get
{
return false;
}
}
protected override bool GetBlockUnratedValue(UserConfiguration config)
{
return config.BlockUnratedItems.Contains(UnratedItem.Other);
}
}
}

View File

@@ -95,6 +95,7 @@ namespace MediaBrowser.Controller.Entities.TV
}
}
[IgnoreDataMember]
public override Folder LatestItemsIndexContainer
{
get

View File

@@ -156,6 +156,7 @@
<Compile Include="Entities\MusicVideo.cs" />
<Compile Include="Entities\IHasAwards.cs" />
<Compile Include="Entities\Photo.cs" />
<Compile Include="Entities\PhotoAlbum.cs" />
<Compile Include="Entities\UserView.cs" />
<Compile Include="FileOrganization\IFileOrganizationService.cs" />
<Compile Include="Library\DeleteOptions.cs" />