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/MBRegistrationRecord.cs14
-rw-r--r--MediaBrowser.Model/Entities/MediaStream.cs15
-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/PluginSecurityInfo.cs21
-rw-r--r--MediaBrowser.Model/Entities/ProviderIdsExtensions.cs13
-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
30 files changed, 26 insertions, 86 deletions
diff --git a/MediaBrowser.Model/Entities/ChapterInfo.cs b/MediaBrowser.Model/Entities/ChapterInfo.cs
index c24ca553b5..dfd6fdf4a3 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 f49e73c168..bda1661184 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 dc386f7753..f9b3ac7b36 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 5c9a725fd9..5d29218e3c 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 ab8da58c07..97350b9554 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 796850dbd4..3b8d74cb45 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 6e0ba717f0..ce3560e78f 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 567b98ab9a..8e4f0d63a4 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 2ae7bead21..b83df87e23 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 84de803aa2..52c08b28b5 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/MBRegistrationRecord.cs b/MediaBrowser.Model/Entities/MBRegistrationRecord.cs
deleted file mode 100644
index 00176fb344..0000000000
--- a/MediaBrowser.Model/Entities/MBRegistrationRecord.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-
-namespace MediaBrowser.Model.Entities
-{
- public class MBRegistrationRecord
- {
- public DateTime ExpirationDate { get; set; }
- public bool IsRegistered { get; set; }
- public bool RegChecked { get; set; }
- public bool RegError { get; set; }
- public bool TrialVersion { get; set; }
- public bool IsValid { get; set; }
- }
-} \ No newline at end of file
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs
index 35369fbbb9..e0c3bead1d 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))
{
@@ -420,7 +419,7 @@ namespace MediaBrowser.Model.Entities
var fromCodec = Codec;
- // Can't convert from this
+ // Can't convert from this
if (StringHelper.EqualsIgnoreCase(fromCodec, "ass"))
{
return false;
@@ -430,7 +429,7 @@ namespace MediaBrowser.Model.Entities
return false;
}
- // Can't convert to this
+ // Can't convert to this
if (StringHelper.EqualsIgnoreCase(toCodec, "ass"))
{
return false;
diff --git a/MediaBrowser.Model/Entities/MediaStreamType.cs b/MediaBrowser.Model/Entities/MediaStreamType.cs
index 084a411f9c..4fc1e53727 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 0c9bde6fb6..af233e61ec 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 2e17bba8a8..428c895b6e 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 85f2da31e0..a7947a933b 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 efd4339d5c..3999616036 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 52500a41ea..b73ba8dd0e 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 302c1e2991..a22e119fa0 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 bc274972da..72e3538fcb 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/PluginSecurityInfo.cs b/MediaBrowser.Model/Entities/PluginSecurityInfo.cs
deleted file mode 100644
index 5cab55013e..0000000000
--- a/MediaBrowser.Model/Entities/PluginSecurityInfo.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-
-namespace MediaBrowser.Model.Entities
-{
- /// <summary>
- /// Class PluginSecurityInfo
- /// </summary>
- public class PluginSecurityInfo
- {
- /// <summary>
- /// Gets or sets the supporter key.
- /// </summary>
- /// <value>The supporter key.</value>
- public string SupporterKey { get; set; }
-
- /// <summary>
- /// Gets or sets a value indicating whether this instance is MB supporter.
- /// </summary>
- /// <value><c>true</c> if this instance is MB supporter; otherwise, <c>false</c>.</value>
- public bool IsMBSupporter { get; set; }
- }
-}
diff --git a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
index e10232baa9..a151bb3bb1 100644
--- a/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
+++ b/MediaBrowser.Model/Entities/ProviderIdsExtensions.cs
@@ -18,7 +18,7 @@ namespace MediaBrowser.Model.Entities
{
return !string.IsNullOrEmpty(instance.GetProviderId(provider.ToString()));
}
-
+
/// <summary>
/// Gets a provider id
/// </summary>
@@ -40,7 +40,7 @@ namespace MediaBrowser.Model.Entities
{
if (instance == null)
{
- throw new ArgumentNullException("instance");
+ throw new ArgumentNullException(nameof(instance));
}
if (instance.ProviderIds == null)
@@ -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;
}
@@ -63,9 +62,9 @@ namespace MediaBrowser.Model.Entities
{
if (instance == null)
{
- throw new ArgumentNullException("instance");
+ throw new ArgumentNullException(nameof(instance));
}
-
+
// If it's null remove the key from the dictionary
if (string.IsNullOrEmpty(value))
{
@@ -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 ed22103003..bc66364f7d 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 d04a2856cf..cab6a83e8b 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 5130449ba8..558ebeac2a 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 085f461cfb..73be5d7cae 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 d9691f3953..bd7471682f 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 722df42819..89923ae525 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 05c2fa32c6..95d69fb7bb 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 c8374f6203..6bdbdb489e 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
{