aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Entities')
-rw-r--r--MediaBrowser.Model/Entities/ChapterInfo.cs2
-rw-r--r--MediaBrowser.Model/Entities/CollectionType.cs4
-rw-r--r--MediaBrowser.Model/Entities/DisplayPreferences.cs2
-rw-r--r--MediaBrowser.Model/Entities/EmptyRequestResult.cs1
-rw-r--r--MediaBrowser.Model/Entities/ExtraType.cs1
-rw-r--r--MediaBrowser.Model/Entities/IHasProviderIds.cs2
-rw-r--r--MediaBrowser.Model/Entities/ImageType.cs1
-rw-r--r--MediaBrowser.Model/Entities/IsoType.cs2
-rw-r--r--MediaBrowser.Model/Entities/LibraryUpdateInfo.cs10
-rw-r--r--MediaBrowser.Model/Entities/LocationType.cs1
-rw-r--r--MediaBrowser.Model/Entities/MediaStream.cs11
-rw-r--r--MediaBrowser.Model/Entities/MediaStreamType.cs2
-rw-r--r--MediaBrowser.Model/Entities/MediaType.cs1
-rw-r--r--MediaBrowser.Model/Entities/MediaUrl.cs1
-rw-r--r--MediaBrowser.Model/Entities/MetadataFields.cs1
-rw-r--r--MediaBrowser.Model/Entities/MetadataProviders.cs1
-rw-r--r--MediaBrowser.Model/Entities/PackageReviewInfo.cs2
-rw-r--r--MediaBrowser.Model/Entities/ParentalRating.cs1
-rw-r--r--MediaBrowser.Model/Entities/PersonType.cs1
-rw-r--r--MediaBrowser.Model/Entities/ProviderIdsExtensions.cs5
-rw-r--r--MediaBrowser.Model/Entities/ScrollDirection.cs2
-rw-r--r--MediaBrowser.Model/Entities/SeriesStatus.cs1
-rw-r--r--MediaBrowser.Model/Entities/SortOrder.cs2
-rw-r--r--MediaBrowser.Model/Entities/TrailerType.cs2
-rw-r--r--MediaBrowser.Model/Entities/UserDataSaveReason.cs1
-rw-r--r--MediaBrowser.Model/Entities/Video3DFormat.cs1
-rw-r--r--MediaBrowser.Model/Entities/VideoType.cs1
-rw-r--r--MediaBrowser.Model/Entities/VirtualFolderInfo.cs3
28 files changed, 20 insertions, 45 deletions
diff --git a/MediaBrowser.Model/Entities/ChapterInfo.cs b/MediaBrowser.Model/Entities/ChapterInfo.cs
index c24ca553b..dfd6fdf4a 100644
--- a/MediaBrowser.Model/Entities/ChapterInfo.cs
+++ b/MediaBrowser.Model/Entities/ChapterInfo.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace MediaBrowser.Model.Entities
{
diff --git a/MediaBrowser.Model/Entities/CollectionType.cs b/MediaBrowser.Model/Entities/CollectionType.cs
index f49e73c16..bda166118 100644
--- a/MediaBrowser.Model/Entities/CollectionType.cs
+++ b/MediaBrowser.Model/Entities/CollectionType.cs
@@ -1,4 +1,4 @@
-namespace MediaBrowser.Model.Entities
+namespace MediaBrowser.Model.Entities
{
public static class CollectionType
{
@@ -55,4 +55,4 @@
public const string MusicFavoriteAlbums = "MusicFavoriteAlbums";
public const string MusicFavoriteSongs = "MusicFavoriteSongs";
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/DisplayPreferences.cs b/MediaBrowser.Model/Entities/DisplayPreferences.cs
index dc386f775..f9b3ac7b3 100644
--- a/MediaBrowser.Model/Entities/DisplayPreferences.cs
+++ b/MediaBrowser.Model/Entities/DisplayPreferences.cs
@@ -1,5 +1,3 @@
-using MediaBrowser.Model.Drawing;
-using System;
using System.Collections.Generic;
namespace MediaBrowser.Model.Entities
diff --git a/MediaBrowser.Model/Entities/EmptyRequestResult.cs b/MediaBrowser.Model/Entities/EmptyRequestResult.cs
index 5c9a725fd..5d29218e3 100644
--- a/MediaBrowser.Model/Entities/EmptyRequestResult.cs
+++ b/MediaBrowser.Model/Entities/EmptyRequestResult.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
public class EmptyRequestResult
diff --git a/MediaBrowser.Model/Entities/ExtraType.cs b/MediaBrowser.Model/Entities/ExtraType.cs
index ab8da58c0..97350b955 100644
--- a/MediaBrowser.Model/Entities/ExtraType.cs
+++ b/MediaBrowser.Model/Entities/ExtraType.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
public enum ExtraType
diff --git a/MediaBrowser.Model/Entities/IHasProviderIds.cs b/MediaBrowser.Model/Entities/IHasProviderIds.cs
index 796850dbd..3b8d74cb4 100644
--- a/MediaBrowser.Model/Entities/IHasProviderIds.cs
+++ b/MediaBrowser.Model/Entities/IHasProviderIds.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
namespace MediaBrowser.Model.Entities
{
diff --git a/MediaBrowser.Model/Entities/ImageType.cs b/MediaBrowser.Model/Entities/ImageType.cs
index 6e0ba717f..ce3560e78 100644
--- a/MediaBrowser.Model/Entities/ImageType.cs
+++ b/MediaBrowser.Model/Entities/ImageType.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/IsoType.cs b/MediaBrowser.Model/Entities/IsoType.cs
index 567b98ab9..8e4f0d63a 100644
--- a/MediaBrowser.Model/Entities/IsoType.cs
+++ b/MediaBrowser.Model/Entities/IsoType.cs
@@ -14,4 +14,4 @@ namespace MediaBrowser.Model.Entities
/// </summary>
BluRay
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs b/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs
index 2ae7bead2..b83df87e2 100644
--- a/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs
+++ b/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace MediaBrowser.Model.Entities
{
@@ -38,13 +38,7 @@ namespace MediaBrowser.Model.Entities
public string[] CollectionFolders { get; set; }
- public bool IsEmpty
- {
- get
- {
- return FoldersAddedTo.Length == 0 && FoldersRemovedFrom.Length == 0 && ItemsAdded.Length == 0 && ItemsRemoved.Length == 0 && ItemsUpdated.Length == 0 && CollectionFolders.Length == 0;
- }
- }
+ public bool IsEmpty => FoldersAddedTo.Length == 0 && FoldersRemovedFrom.Length == 0 && ItemsAdded.Length == 0 && ItemsRemoved.Length == 0 && ItemsUpdated.Length == 0 && CollectionFolders.Length == 0;
/// <summary>
/// Initializes a new instance of the <see cref="LibraryUpdateInfo"/> class.
diff --git a/MediaBrowser.Model/Entities/LocationType.cs b/MediaBrowser.Model/Entities/LocationType.cs
index 84de803aa..52c08b28b 100644
--- a/MediaBrowser.Model/Entities/LocationType.cs
+++ b/MediaBrowser.Model/Entities/LocationType.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs
index 454e6ff16..e0c3bead1 100644
--- a/MediaBrowser.Model/Entities/MediaStream.cs
+++ b/MediaBrowser.Model/Entities/MediaStream.cs
@@ -1,10 +1,9 @@
-using System;
-using System.Linq;
+using System;
using System.Collections.Generic;
+using System.Globalization;
using MediaBrowser.Model.Dlna;
using MediaBrowser.Model.Extensions;
using MediaBrowser.Model.MediaInfo;
-using System.Globalization;
namespace MediaBrowser.Model.Entities
{
@@ -77,7 +76,7 @@ namespace MediaBrowser.Model.Entities
// return AddLanguageIfNeeded(Title);
//}
- List<string> attributes = new List<string>();
+ var attributes = new List<string>();
if (!string.IsNullOrEmpty(Language))
{
@@ -110,7 +109,7 @@ namespace MediaBrowser.Model.Entities
if (Type == MediaStreamType.Video)
{
- List<string> attributes = new List<string>();
+ var attributes = new List<string>();
var resolutionText = GetResolutionText();
@@ -134,7 +133,7 @@ namespace MediaBrowser.Model.Entities
// return AddLanguageIfNeeded(Title);
//}
- List<string> attributes = new List<string>();
+ var attributes = new List<string>();
if (!string.IsNullOrEmpty(Language))
{
diff --git a/MediaBrowser.Model/Entities/MediaStreamType.cs b/MediaBrowser.Model/Entities/MediaStreamType.cs
index 084a411f9..4fc1e5372 100644
--- a/MediaBrowser.Model/Entities/MediaStreamType.cs
+++ b/MediaBrowser.Model/Entities/MediaStreamType.cs
@@ -22,4 +22,4 @@ namespace MediaBrowser.Model.Entities
/// </summary>
EmbeddedImage
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/MediaType.cs b/MediaBrowser.Model/Entities/MediaType.cs
index 0c9bde6fb..af233e61e 100644
--- a/MediaBrowser.Model/Entities/MediaType.cs
+++ b/MediaBrowser.Model/Entities/MediaType.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/MediaUrl.cs b/MediaBrowser.Model/Entities/MediaUrl.cs
index 2e17bba8a..428c895b6 100644
--- a/MediaBrowser.Model/Entities/MediaUrl.cs
+++ b/MediaBrowser.Model/Entities/MediaUrl.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
public class MediaUrl
diff --git a/MediaBrowser.Model/Entities/MetadataFields.cs b/MediaBrowser.Model/Entities/MetadataFields.cs
index 85f2da31e..a7947a933 100644
--- a/MediaBrowser.Model/Entities/MetadataFields.cs
+++ b/MediaBrowser.Model/Entities/MetadataFields.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/MetadataProviders.cs b/MediaBrowser.Model/Entities/MetadataProviders.cs
index efd4339d5..399961603 100644
--- a/MediaBrowser.Model/Entities/MetadataProviders.cs
+++ b/MediaBrowser.Model/Entities/MetadataProviders.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/PackageReviewInfo.cs b/MediaBrowser.Model/Entities/PackageReviewInfo.cs
index 52500a41e..b73ba8dd0 100644
--- a/MediaBrowser.Model/Entities/PackageReviewInfo.cs
+++ b/MediaBrowser.Model/Entities/PackageReviewInfo.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
namespace MediaBrowser.Model.Entities
{
diff --git a/MediaBrowser.Model/Entities/ParentalRating.cs b/MediaBrowser.Model/Entities/ParentalRating.cs
index 302c1e299..a22e119fa 100644
--- a/MediaBrowser.Model/Entities/ParentalRating.cs
+++ b/MediaBrowser.Model/Entities/ParentalRating.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/PersonType.cs b/MediaBrowser.Model/Entities/PersonType.cs
index bc274972d..72e3538fc 100644
--- a/MediaBrowser.Model/Entities/PersonType.cs
+++ b/MediaBrowser.Model/Entities/PersonType.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
index 3f8873798..a151bb3bb 100644
--- a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
+++ b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
@@ -48,8 +48,7 @@ namespace MediaBrowser.Model.Entities
return null;
}
- string id;
- instance.ProviderIds.TryGetValue(name, out id);
+ instance.ProviderIds.TryGetValue(name, out string id);
return id;
}
@@ -100,4 +99,4 @@ namespace MediaBrowser.Model.Entities
instance.SetProviderId(provider.ToString(), value);
}
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/ScrollDirection.cs b/MediaBrowser.Model/Entities/ScrollDirection.cs
index ed2210300..bc66364f7 100644
--- a/MediaBrowser.Model/Entities/ScrollDirection.cs
+++ b/MediaBrowser.Model/Entities/ScrollDirection.cs
@@ -14,4 +14,4 @@ namespace MediaBrowser.Model.Entities
/// </summary>
Vertical
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/SeriesStatus.cs b/MediaBrowser.Model/Entities/SeriesStatus.cs
index d04a2856c..cab6a83e8 100644
--- a/MediaBrowser.Model/Entities/SeriesStatus.cs
+++ b/MediaBrowser.Model/Entities/SeriesStatus.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/SortOrder.cs b/MediaBrowser.Model/Entities/SortOrder.cs
index 5130449ba..558ebeac2 100644
--- a/MediaBrowser.Model/Entities/SortOrder.cs
+++ b/MediaBrowser.Model/Entities/SortOrder.cs
@@ -14,4 +14,4 @@ namespace MediaBrowser.Model.Entities
/// </summary>
Descending
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/TrailerType.cs b/MediaBrowser.Model/Entities/TrailerType.cs
index 085f461cf..73be5d7ca 100644
--- a/MediaBrowser.Model/Entities/TrailerType.cs
+++ b/MediaBrowser.Model/Entities/TrailerType.cs
@@ -8,4 +8,4 @@ namespace MediaBrowser.Model.Entities
Archive = 4,
LocalTrailer = 5
}
-} \ No newline at end of file
+}
diff --git a/MediaBrowser.Model/Entities/UserDataSaveReason.cs b/MediaBrowser.Model/Entities/UserDataSaveReason.cs
index d9691f395..bd7471682 100644
--- a/MediaBrowser.Model/Entities/UserDataSaveReason.cs
+++ b/MediaBrowser.Model/Entities/UserDataSaveReason.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/Video3DFormat.cs b/MediaBrowser.Model/Entities/Video3DFormat.cs
index 722df4281..89923ae52 100644
--- a/MediaBrowser.Model/Entities/Video3DFormat.cs
+++ b/MediaBrowser.Model/Entities/Video3DFormat.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
public enum Video3DFormat
diff --git a/MediaBrowser.Model/Entities/VideoType.cs b/MediaBrowser.Model/Entities/VideoType.cs
index 05c2fa32c..95d69fb7b 100644
--- a/MediaBrowser.Model/Entities/VideoType.cs
+++ b/MediaBrowser.Model/Entities/VideoType.cs
@@ -1,4 +1,3 @@
-
namespace MediaBrowser.Model.Entities
{
/// <summary>
diff --git a/MediaBrowser.Model/Entities/VirtualFolderInfo.cs b/MediaBrowser.Model/Entities/VirtualFolderInfo.cs
index c8374f620..6bdbdb489 100644
--- a/MediaBrowser.Model/Entities/VirtualFolderInfo.cs
+++ b/MediaBrowser.Model/Entities/VirtualFolderInfo.cs
@@ -1,6 +1,5 @@
-using System.Collections.Generic;
-using MediaBrowser.Model.Configuration;
using System;
+using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Model.Entities
{