Some minor code cleanups

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-11 14:20:12 -04:00
parent 016590529f
commit 670a53258e
80 changed files with 318 additions and 1120 deletions

View File

@@ -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; }

View File

@@ -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; }

View File

@@ -3,7 +3,7 @@
namespace MediaBrowser.Model.DTO
{
[ProtoContract]
public class DTOUserItemData
public class DtoUserItemData
{
[ProtoMember(1)]
public float? Rating { get; set; }

View File

@@ -9,12 +9,12 @@ namespace MediaBrowser.Model.DTO
{
Avi,
Asf,
M4v,
M4V,
Mkv,
Mov,
Mp4,
Ogv,
ThreeGP,
ThreeGp,
Ts,
Webm,
Wmv

View File

@@ -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

View File

@@ -5,7 +5,7 @@ namespace MediaBrowser.Model.Entities
{
VideoFile,
Iso,
DVD,
Dvd,
BluRay
}
}

View File

@@ -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" />

View File

@@ -1,6 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace MediaBrowser.Model.Plugins
{
public class BasePluginConfiguration

View File

@@ -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