mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Enable TreatWarningsAsErrors for MediaBrowser.Model
This commit is contained in:
@@ -7,6 +7,7 @@ namespace MediaBrowser.Model.Session
|
||||
public class BrowseRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the item type.
|
||||
/// Artist, Genre, Studio, Person, or any kind of BaseItem.
|
||||
/// </summary>
|
||||
/// <value>The type of the item.</value>
|
||||
|
||||
@@ -9,6 +9,13 @@ namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class ClientCapabilities
|
||||
{
|
||||
public ClientCapabilities()
|
||||
{
|
||||
PlayableMediaTypes = Array.Empty<string>();
|
||||
SupportedCommands = Array.Empty<GeneralCommandType>();
|
||||
SupportsPersistentIdentifier = true;
|
||||
}
|
||||
|
||||
public IReadOnlyList<string> PlayableMediaTypes { get; set; }
|
||||
|
||||
public IReadOnlyList<GeneralCommandType> SupportedCommands { get; set; }
|
||||
@@ -28,12 +35,5 @@ namespace MediaBrowser.Model.Session
|
||||
public string AppStoreUrl { get; set; }
|
||||
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
public ClientCapabilities()
|
||||
{
|
||||
PlayableMediaTypes = Array.Empty<string>();
|
||||
SupportedCommands = Array.Empty<GeneralCommandType>();
|
||||
SupportsPersistentIdentifier = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -8,15 +7,15 @@ namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class GeneralCommand
|
||||
{
|
||||
public GeneralCommandType Name { get; set; }
|
||||
|
||||
public Guid ControllingUserId { get; set; }
|
||||
|
||||
public Dictionary<string, string> Arguments { get; set; }
|
||||
|
||||
public GeneralCommand()
|
||||
{
|
||||
Arguments = new Dictionary<string, string>();
|
||||
}
|
||||
|
||||
public GeneralCommandType Name { get; set; }
|
||||
|
||||
public Guid ControllingUserId { get; set; }
|
||||
|
||||
public Dictionary<string, string> Arguments { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,18 +111,4 @@ namespace MediaBrowser.Model.Session
|
||||
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
|
||||
public enum RepeatMode
|
||||
{
|
||||
RepeatNone = 0,
|
||||
RepeatAll = 1,
|
||||
RepeatOne = 2
|
||||
}
|
||||
|
||||
public class QueueItem
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
/// <summary>
|
||||
@@ -46,6 +44,10 @@ namespace MediaBrowser.Model.Session
|
||||
/// The fast forward.
|
||||
/// </summary>
|
||||
FastForward,
|
||||
|
||||
/// <summary>
|
||||
/// The play pause.
|
||||
/// </summary>
|
||||
PlayPause
|
||||
}
|
||||
}
|
||||
|
||||
14
MediaBrowser.Model/Session/QueueItem.cs
Normal file
14
MediaBrowser.Model/Session/QueueItem.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class QueueItem
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string PlaylistItemId { get; set; }
|
||||
}
|
||||
}
|
||||
11
MediaBrowser.Model/Session/RepeatMode.cs
Normal file
11
MediaBrowser.Model/Session/RepeatMode.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public enum RepeatMode
|
||||
{
|
||||
RepeatNone = 0,
|
||||
RepeatAll = 1,
|
||||
RepeatOne = 2
|
||||
}
|
||||
}
|
||||
31
MediaBrowser.Model/Session/TranscodeReason.cs
Normal file
31
MediaBrowser.Model/Session/TranscodeReason.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public enum TranscodeReason
|
||||
{
|
||||
ContainerNotSupported = 0,
|
||||
VideoCodecNotSupported = 1,
|
||||
AudioCodecNotSupported = 2,
|
||||
ContainerBitrateExceedsLimit = 3,
|
||||
AudioBitrateNotSupported = 4,
|
||||
AudioChannelsNotSupported = 5,
|
||||
VideoResolutionNotSupported = 6,
|
||||
UnknownVideoStreamInfo = 7,
|
||||
UnknownAudioStreamInfo = 8,
|
||||
AudioProfileNotSupported = 9,
|
||||
AudioSampleRateNotSupported = 10,
|
||||
AnamorphicVideoNotSupported = 11,
|
||||
InterlacedVideoNotSupported = 12,
|
||||
SecondaryAudioNotSupported = 13,
|
||||
RefFramesNotSupported = 14,
|
||||
VideoBitDepthNotSupported = 15,
|
||||
VideoBitrateNotSupported = 16,
|
||||
VideoFramerateNotSupported = 17,
|
||||
VideoLevelNotSupported = 18,
|
||||
VideoProfileNotSupported = 19,
|
||||
AudioBitDepthNotSupported = 20,
|
||||
SubtitleCodecNotSupported = 21,
|
||||
DirectPlayError = 22
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,11 @@ namespace MediaBrowser.Model.Session
|
||||
{
|
||||
public class TranscodingInfo
|
||||
{
|
||||
public TranscodingInfo()
|
||||
{
|
||||
TranscodeReasons = Array.Empty<TranscodeReason>();
|
||||
}
|
||||
|
||||
public string AudioCodec { get; set; }
|
||||
|
||||
public string VideoCodec { get; set; }
|
||||
@@ -30,37 +35,5 @@ namespace MediaBrowser.Model.Session
|
||||
public int? AudioChannels { get; set; }
|
||||
|
||||
public TranscodeReason[] TranscodeReasons { get; set; }
|
||||
|
||||
public TranscodingInfo()
|
||||
{
|
||||
TranscodeReasons = Array.Empty<TranscodeReason>();
|
||||
}
|
||||
}
|
||||
|
||||
public enum TranscodeReason
|
||||
{
|
||||
ContainerNotSupported = 0,
|
||||
VideoCodecNotSupported = 1,
|
||||
AudioCodecNotSupported = 2,
|
||||
ContainerBitrateExceedsLimit = 3,
|
||||
AudioBitrateNotSupported = 4,
|
||||
AudioChannelsNotSupported = 5,
|
||||
VideoResolutionNotSupported = 6,
|
||||
UnknownVideoStreamInfo = 7,
|
||||
UnknownAudioStreamInfo = 8,
|
||||
AudioProfileNotSupported = 9,
|
||||
AudioSampleRateNotSupported = 10,
|
||||
AnamorphicVideoNotSupported = 11,
|
||||
InterlacedVideoNotSupported = 12,
|
||||
SecondaryAudioNotSupported = 13,
|
||||
RefFramesNotSupported = 14,
|
||||
VideoBitDepthNotSupported = 15,
|
||||
VideoBitrateNotSupported = 16,
|
||||
VideoFramerateNotSupported = 17,
|
||||
VideoLevelNotSupported = 18,
|
||||
VideoProfileNotSupported = 19,
|
||||
AudioBitDepthNotSupported = 20,
|
||||
SubtitleCodecNotSupported = 21,
|
||||
DirectPlayError = 22
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user