2016-12-12 06:49:19 +01:00
|
|
|
|
using System;
|
|
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
|
|
|
{
|
|
|
|
|
public class AudioBook : Audio.Audio, IHasSeries
|
|
|
|
|
{
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool SupportsPositionTicksResume
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-09 18:05:34 +01:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool SupportsPlayedStatus
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-12 06:49:19 +01:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public string SeriesPresentationUniqueKey { get; set; }
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public string SeriesName { get; set; }
|
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public Guid? SeriesId { get; set; }
|
|
|
|
|
|
|
|
|
|
public string FindSeriesSortName()
|
|
|
|
|
{
|
2017-05-05 19:55:38 +02:00
|
|
|
|
return SeriesName;
|
2016-12-12 06:49:19 +01:00
|
|
|
|
}
|
|
|
|
|
public string FindSeriesName()
|
|
|
|
|
{
|
|
|
|
|
return SeriesName;
|
|
|
|
|
}
|
|
|
|
|
public string FindSeriesPresentationUniqueKey()
|
|
|
|
|
{
|
|
|
|
|
return SeriesPresentationUniqueKey;
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-10 21:06:52 +01:00
|
|
|
|
public override double? GetDefaultPrimaryImageAspectRatio()
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-12 06:49:19 +01:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool EnableRefreshOnDateModifiedChange
|
|
|
|
|
{
|
|
|
|
|
get { return true; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Guid? FindSeriesId()
|
|
|
|
|
{
|
|
|
|
|
return SeriesId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool CanDownload()
|
|
|
|
|
{
|
|
|
|
|
var locationType = LocationType;
|
|
|
|
|
return locationType != LocationType.Remote &&
|
|
|
|
|
locationType != LocationType.Virtual;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override UnratedItem GetBlockUnratedType()
|
|
|
|
|
{
|
|
|
|
|
return UnratedItem.Book;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|