| | | 1 | | #nullable disable |
| | | 2 | | |
| | | 3 | | #pragma warning disable CA1724, CS1591 |
| | | 4 | | |
| | | 5 | | using System; |
| | | 6 | | using System.Text.Json.Serialization; |
| | | 7 | | using Jellyfin.Data.Enums; |
| | | 8 | | using MediaBrowser.Controller.Providers; |
| | | 9 | | |
| | | 10 | | namespace MediaBrowser.Controller.Entities |
| | | 11 | | { |
| | | 12 | | [Common.RequiresSourceSerialisation] |
| | | 13 | | public class AudioBook : Audio.Audio, IHasSeries, IHasLookupInfo<SongInfo> |
| | | 14 | | { |
| | | 15 | | [JsonIgnore] |
| | 0 | 16 | | public override bool SupportsPositionTicksResume => true; |
| | | 17 | | |
| | | 18 | | [JsonIgnore] |
| | 0 | 19 | | public override bool SupportsPlayedStatus => true; |
| | | 20 | | |
| | | 21 | | [JsonIgnore] |
| | | 22 | | public string SeriesPresentationUniqueKey { get; set; } |
| | | 23 | | |
| | | 24 | | [JsonIgnore] |
| | | 25 | | public string SeriesName { get; set; } |
| | | 26 | | |
| | | 27 | | [JsonIgnore] |
| | | 28 | | public Guid SeriesId { get; set; } |
| | | 29 | | |
| | | 30 | | public string FindSeriesSortName() |
| | | 31 | | { |
| | 0 | 32 | | return SeriesName; |
| | | 33 | | } |
| | | 34 | | |
| | | 35 | | public string FindSeriesName() |
| | | 36 | | { |
| | 0 | 37 | | return SeriesName; |
| | | 38 | | } |
| | | 39 | | |
| | | 40 | | public string FindSeriesPresentationUniqueKey() |
| | | 41 | | { |
| | 0 | 42 | | return SeriesPresentationUniqueKey; |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | public override double GetDefaultPrimaryImageAspectRatio() |
| | | 46 | | { |
| | 0 | 47 | | return 0; |
| | | 48 | | } |
| | | 49 | | |
| | | 50 | | public Guid FindSeriesId() |
| | | 51 | | { |
| | 0 | 52 | | return SeriesId; |
| | | 53 | | } |
| | | 54 | | |
| | | 55 | | public override bool CanDownload() |
| | | 56 | | { |
| | 0 | 57 | | return IsFileProtocol; |
| | | 58 | | } |
| | | 59 | | |
| | | 60 | | public override UnratedItem GetBlockUnratedType() |
| | | 61 | | { |
| | 0 | 62 | | return UnratedItem.Book; |
| | | 63 | | } |
| | | 64 | | } |
| | | 65 | | } |