mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 18:44:45 +01:00
Some minor code cleanups
This commit is contained in:
parent
016590529f
commit
670a53258e
@@ -10,7 +10,7 @@ namespace MediaBrowser.Model.DTO
|
||||
/// This holds information about a BaseItem in a format that is convenient for the client.
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public class DTOBaseItem : IHasProviderIds
|
||||
public class DtoBaseItem : IHasProviderIds
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public string Name { get; set; }
|
||||
@@ -91,7 +91,7 @@ namespace MediaBrowser.Model.DTO
|
||||
public int BackdropCount { get; set; }
|
||||
|
||||
[ProtoMember(27)]
|
||||
public DTOBaseItem[] Children { get; set; }
|
||||
public DtoBaseItem[] Children { get; set; }
|
||||
|
||||
[ProtoMember(28)]
|
||||
public bool IsFolder { get; set; }
|
||||
@@ -136,7 +136,7 @@ namespace MediaBrowser.Model.DTO
|
||||
public int? ParentBackdropCount { get; set; }
|
||||
|
||||
[ProtoMember(38)]
|
||||
public DTOBaseItem[] LocalTrailers { get; set; }
|
||||
public DtoBaseItem[] LocalTrailers { get; set; }
|
||||
|
||||
[ProtoMember(39)]
|
||||
public int LocalTrailerCount { get; set; }
|
||||
@@ -145,7 +145,7 @@ namespace MediaBrowser.Model.DTO
|
||||
/// User data for this item based on the user it's being requested for
|
||||
/// </summary>
|
||||
[ProtoMember(40)]
|
||||
public DTOUserItemData UserData { get; set; }
|
||||
public DtoUserItemData UserData { get; set; }
|
||||
|
||||
[ProtoMember(41)]
|
||||
public ItemSpecialCounts SpecialCounts { get; set; }
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using ProtoBuf;
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.DTO
|
||||
{
|
||||
[ProtoContract]
|
||||
public class DTOUser
|
||||
public class DtoUser
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace MediaBrowser.Model.DTO
|
||||
{
|
||||
[ProtoContract]
|
||||
public class DTOUserItemData
|
||||
public class DtoUserItemData
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public float? Rating { get; set; }
|
||||
|
||||
@@ -9,12 +9,12 @@ namespace MediaBrowser.Model.DTO
|
||||
{
|
||||
Avi,
|
||||
Asf,
|
||||
M4v,
|
||||
M4V,
|
||||
Mkv,
|
||||
Mov,
|
||||
Mp4,
|
||||
Ogv,
|
||||
ThreeGP,
|
||||
ThreeGp,
|
||||
Ts,
|
||||
Webm,
|
||||
Wmv
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace MediaBrowser.Model.Entities
|
||||
Dictionary<string, string> ProviderIds { get; set; }
|
||||
}
|
||||
|
||||
public static class IProviderIdsExtensions
|
||||
public static class ProviderIdsExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a provider id
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
VideoFile,
|
||||
Iso,
|
||||
DVD,
|
||||
Dvd,
|
||||
BluRay
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
<Compile Include="Configuration\ServerConfiguration.cs" />
|
||||
<Compile Include="DTO\AudioInfo.cs" />
|
||||
<Compile Include="DTO\AudioOutputFormats.cs" />
|
||||
<Compile Include="DTO\DTOUserItemData.cs" />
|
||||
<Compile Include="DTO\DtoUserItemData.cs" />
|
||||
<Compile Include="DTO\MovieInfo.cs" />
|
||||
<Compile Include="DTO\SeriesInfo.cs" />
|
||||
<Compile Include="Authentication\AuthenticationResult.cs" />
|
||||
<Compile Include="DTO\DTOBaseItem.cs" />
|
||||
<Compile Include="DTO\DTOUser.cs" />
|
||||
<Compile Include="DTO\DtoBaseItem.cs" />
|
||||
<Compile Include="DTO\DtoUser.cs" />
|
||||
<Compile Include="DTO\VideoInfo.cs" />
|
||||
<Compile Include="DTO\VideoOutputFormats.cs" />
|
||||
<Compile Include="DTO\IBNItem.cs" />
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
|
||||
namespace MediaBrowser.Model.Plugins
|
||||
{
|
||||
public class BasePluginConfiguration
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System.Resources;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
|
||||
Reference in New Issue
Block a user