Refactor: standardize namespace and using directive style

Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
This commit is contained in:
2026-02-20 16:26:53 -05:00
parent 44ab9e1d6d
commit af1152b001
1436 changed files with 36615 additions and 15508 deletions
+25 -27
View File
@@ -4,35 +4,33 @@
#pragma warning disable CS1591
using System;
using global::System;
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Class ChapterInfo.
/// </summary>
public class ChapterInfo
{
/// <summary>
/// Gets or sets the start position ticks.
/// </summary>
/// <value>The start position ticks.</value>
public long StartPositionTicks { get; set; }
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Class ChapterInfo.
/// </summary>
public class ChapterInfo
{
/// <summary>
/// Gets or sets the start position ticks.
/// </summary>
/// <value>The start position ticks.</value>
public long StartPositionTicks { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string? Name { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string? Name { get; set; }
/// <summary>
/// Gets or sets the image path.
/// </summary>
/// <value>The image path.</value>
public string? ImagePath { get; set; }
/// <summary>
/// Gets or sets the image path.
/// </summary>
/// <value>The image path.</value>
public string? ImagePath { get; set; }
public DateTime ImageDateModified { get; set; }
public DateTime ImageDateModified { get; set; }
public string? ImageTag { get; set; }
}
}
public string? ImageTag { get; set; }
}
@@ -49,5 +49,5 @@ public enum CollectionTypeOptions
/// <summary>
/// Mixed Movies and TV Shows.
/// </summary>
mixed = 7
mixed = 7,
}
@@ -19,5 +19,5 @@ public enum DeinterlaceMethod
/// <summary>
/// BWDIF.
/// </summary>
bwdif = 1
bwdif = 1,
}
@@ -35,5 +35,5 @@ public enum DownMixStereoAlgorithms
/// AC-4 standard algorithm with its default gain values.
/// Defined in ETSI TS 103 190 Section 6.2.17.
/// </summary>
Ac4 = 4
Ac4 = 4,
}
+1 -1
View File
@@ -64,5 +64,5 @@ public enum EncoderPreset
/// <summary>
/// Ultrafast preset.
/// </summary>
ultrafast = 10
ultrafast = 10,
}
+16 -18
View File
@@ -4,21 +4,19 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Entities
{
public enum ExtraType
{
Unknown = 0,
Clip = 1,
Trailer = 2,
BehindTheScenes = 3,
DeletedScene = 4,
Interview = 5,
Scene = 6,
Sample = 7,
ThemeSong = 8,
ThemeVideo = 9,
Featurette = 10,
Short = 11
}
}
namespace MediaBrowser.Model.Entities;
public enum ExtraType
{
Unknown = 0,
Clip = 1,
Trailer = 2,
BehindTheScenes = 3,
DeletedScene = 4,
Interview = 5,
Scene = 6,
Sample = 7,
ThemeSong = 8,
ThemeVideo = 9,
Featurette = 10,
Short = 11,
}
@@ -49,5 +49,5 @@ public enum HardwareAccelerationType
/// <summary>
/// Rockchip Media Process Platform (RKMPP).
/// </summary>
rkmpp = 7
rkmpp = 7,
}
+13 -15
View File
@@ -2,19 +2,17 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
namespace MediaBrowser.Model.Entities;
using global::System.Collections.Generic;
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Since BaseItem and DTOBaseItem both have ProviderIds, this interface helps avoid code repetition by using extension methods.
/// </summary>
public interface IHasProviderIds
{
/// <summary>
/// Gets or sets the provider ids.
/// </summary>
/// <value>The provider ids.</value>
Dictionary<string, string> ProviderIds { get; set; }
}
}
/// <summary>
/// Since BaseItem and DTOBaseItem both have ProviderIds, this interface helps avoid code repetition by using extension methods.
/// </summary>
public interface IHasProviderIds
{
/// <summary>
/// Gets or sets the provider ids.
/// </summary>
/// <value>The provider ids.</value>
Dictionary<string, string> ProviderIds { get; set; }
}
+2 -2
View File
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
namespace MediaBrowser.Model.Entities;
using global::System.Collections.Generic;
/// <summary>
/// Interface for access to shares.
/// </summary>
+63 -65
View File
@@ -2,80 +2,78 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum ImageType.
/// </summary>
public enum ImageType
{
/// <summary>
/// The primary.
/// </summary>
Primary = 0,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum ImageType.
/// </summary>
public enum ImageType
{
/// <summary>
/// The primary.
/// </summary>
Primary = 0,
/// <summary>
/// The art.
/// </summary>
Art = 1,
/// <summary>
/// The art.
/// </summary>
Art = 1,
/// <summary>
/// The backdrop.
/// </summary>
Backdrop = 2,
/// <summary>
/// The backdrop.
/// </summary>
Backdrop = 2,
/// <summary>
/// The banner.
/// </summary>
Banner = 3,
/// <summary>
/// The banner.
/// </summary>
Banner = 3,
/// <summary>
/// The logo.
/// </summary>
Logo = 4,
/// <summary>
/// The logo.
/// </summary>
Logo = 4,
/// <summary>
/// The thumb.
/// </summary>
Thumb = 5,
/// <summary>
/// The thumb.
/// </summary>
Thumb = 5,
/// <summary>
/// The disc.
/// </summary>
Disc = 6,
/// <summary>
/// The disc.
/// </summary>
Disc = 6,
/// <summary>
/// The box.
/// </summary>
Box = 7,
/// <summary>
/// The box.
/// </summary>
Box = 7,
/// <summary>
/// The screenshot.
/// </summary>
/// <remarks>
/// This enum value is obsolete.
/// XmlSerializer does not serialize/deserialize objects that are marked as [Obsolete].
/// </remarks>
Screenshot = 8,
/// <summary>
/// The screenshot.
/// </summary>
/// <remarks>
/// This enum value is obsolete.
/// XmlSerializer does not serialize/deserialize objects that are marked as [Obsolete].
/// </remarks>
Screenshot = 8,
/// <summary>
/// The menu.
/// </summary>
Menu = 9,
/// <summary>
/// The menu.
/// </summary>
Menu = 9,
/// <summary>
/// The chapter image.
/// </summary>
Chapter = 10,
/// <summary>
/// The chapter image.
/// </summary>
Chapter = 10,
/// <summary>
/// The box rear.
/// </summary>
BoxRear = 11,
/// <summary>
/// The box rear.
/// </summary>
BoxRear = 11,
/// <summary>
/// The user profile image.
/// </summary>
Profile = 12
}
}
/// <summary>
/// The user profile image.
/// </summary>
Profile = 12,
}
+15 -17
View File
@@ -2,21 +2,19 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum IsoType.
/// </summary>
public enum IsoType
{
/// <summary>
/// The DVD.
/// </summary>
Dvd,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum IsoType.
/// </summary>
public enum IsoType
{
/// <summary>
/// The DVD.
/// </summary>
Dvd,
/// <summary>
/// The blu ray.
/// </summary>
BluRay
}
}
/// <summary>
/// The blu ray.
/// </summary>
BluRay
}
@@ -4,60 +4,58 @@
#pragma warning disable CS1591
using System;
using global::System;
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Class LibraryUpdateInfo.
/// </summary>
public class LibraryUpdateInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="LibraryUpdateInfo"/> class.
/// </summary>
public LibraryUpdateInfo()
{
FoldersAddedTo = Array.Empty<string>();
FoldersRemovedFrom = Array.Empty<string>();
ItemsAdded = Array.Empty<string>();
ItemsRemoved = Array.Empty<string>();
ItemsUpdated = Array.Empty<string>();
CollectionFolders = Array.Empty<string>();
}
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Class LibraryUpdateInfo.
/// </summary>
public class LibraryUpdateInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="LibraryUpdateInfo"/> class.
/// </summary>
public LibraryUpdateInfo()
{
FoldersAddedTo = Array.Empty<string>();
FoldersRemovedFrom = Array.Empty<string>();
ItemsAdded = Array.Empty<string>();
ItemsRemoved = Array.Empty<string>();
ItemsUpdated = Array.Empty<string>();
CollectionFolders = Array.Empty<string>();
}
/// <summary>
/// Gets or sets the folders added to.
/// </summary>
/// <value>The folders added to.</value>
public string[] FoldersAddedTo { get; set; }
/// <summary>
/// Gets or sets the folders added to.
/// </summary>
/// <value>The folders added to.</value>
public string[] FoldersAddedTo { get; set; }
/// <summary>
/// Gets or sets the folders removed from.
/// </summary>
/// <value>The folders removed from.</value>
public string[] FoldersRemovedFrom { get; set; }
/// <summary>
/// Gets or sets the folders removed from.
/// </summary>
/// <value>The folders removed from.</value>
public string[] FoldersRemovedFrom { get; set; }
/// <summary>
/// Gets or sets the items added.
/// </summary>
/// <value>The items added.</value>
public string[] ItemsAdded { get; set; }
/// <summary>
/// Gets or sets the items added.
/// </summary>
/// <value>The items added.</value>
public string[] ItemsAdded { get; set; }
/// <summary>
/// Gets or sets the items removed.
/// </summary>
/// <value>The items removed.</value>
public string[] ItemsRemoved { get; set; }
/// <summary>
/// Gets or sets the items removed.
/// </summary>
/// <value>The items removed.</value>
public string[] ItemsRemoved { get; set; }
/// <summary>
/// Gets or sets the items updated.
/// </summary>
/// <value>The items updated.</value>
public string[] ItemsUpdated { get; set; }
/// <summary>
/// Gets or sets the items updated.
/// </summary>
/// <value>The items updated.</value>
public string[] ItemsUpdated { get; set; }
public string[] CollectionFolders { get; set; }
public string[] CollectionFolders { get; set; }
public bool IsEmpty => 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;
}
+23 -25
View File
@@ -2,31 +2,29 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum LocationType.
/// </summary>
public enum LocationType
{
/// <summary>
/// The file system.
/// </summary>
FileSystem = 0,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum LocationType.
/// </summary>
public enum LocationType
{
/// <summary>
/// The file system.
/// </summary>
FileSystem = 0,
/// <summary>
/// The remote.
/// </summary>
Remote = 1,
/// <summary>
/// The remote.
/// </summary>
Remote = 1,
/// <summary>
/// The virtual.
/// </summary>
Virtual = 2,
/// <summary>
/// The virtual.
/// </summary>
Virtual = 2,
/// <summary>
/// The offline.
/// </summary>
Offline = 3
}
}
/// <summary>
/// The offline.
/// </summary>
Offline = 3,
}
File diff suppressed because it is too large Load Diff
+31 -33
View File
@@ -2,41 +2,39 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum MediaStreamType.
/// </summary>
public enum MediaStreamType
{
/// <summary>
/// The audio.
/// </summary>
Audio,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum MediaStreamType.
/// </summary>
public enum MediaStreamType
{
/// <summary>
/// The audio.
/// </summary>
Audio,
/// <summary>
/// The video.
/// </summary>
Video,
/// <summary>
/// The video.
/// </summary>
Video,
/// <summary>
/// The subtitle.
/// </summary>
Subtitle,
/// <summary>
/// The subtitle.
/// </summary>
Subtitle,
/// <summary>
/// The embedded image.
/// </summary>
EmbeddedImage,
/// <summary>
/// The embedded image.
/// </summary>
EmbeddedImage,
/// <summary>
/// The data.
/// </summary>
Data,
/// <summary>
/// The data.
/// </summary>
Data,
/// <summary>
/// The lyric.
/// </summary>
Lyric
}
}
/// <summary>
/// The lyric.
/// </summary>
Lyric
}
+6 -8
View File
@@ -5,12 +5,10 @@
#nullable disable
#pragma warning disable CS1591
namespace MediaBrowser.Model.Entities
{
public class MediaUrl
{
public string Url { get; set; }
namespace MediaBrowser.Model.Entities;
public class MediaUrl
{
public string Url { get; set; }
public string Name { get; set; }
}
}
public string Name { get; set; }
}
+43 -45
View File
@@ -2,56 +2,54 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum MetadataFields.
/// </summary>
public enum MetadataField
{
/// <summary>
/// The cast.
/// </summary>
Cast,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum MetadataFields.
/// </summary>
public enum MetadataField
{
/// <summary>
/// The cast.
/// </summary>
Cast,
/// <summary>
/// The genres.
/// </summary>
Genres,
/// <summary>
/// The genres.
/// </summary>
Genres,
/// <summary>
/// The production locations.
/// </summary>
ProductionLocations,
/// <summary>
/// The production locations.
/// </summary>
ProductionLocations,
/// <summary>
/// The studios.
/// </summary>
Studios,
/// <summary>
/// The studios.
/// </summary>
Studios,
/// <summary>
/// The tags.
/// </summary>
Tags,
/// <summary>
/// The tags.
/// </summary>
Tags,
/// <summary>
/// The name.
/// </summary>
Name,
/// <summary>
/// The name.
/// </summary>
Name,
/// <summary>
/// The overview.
/// </summary>
Overview,
/// <summary>
/// The overview.
/// </summary>
Overview,
/// <summary>
/// The runtime.
/// </summary>
Runtime,
/// <summary>
/// The runtime.
/// </summary>
Runtime,
/// <summary>
/// The official rating.
/// </summary>
OfficialRating
}
}
/// <summary>
/// The official rating.
/// </summary>
OfficialRating
}
+76 -78
View File
@@ -2,97 +2,95 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum MetadataProviders.
/// </summary>
public enum MetadataProvider
{
/// <summary>
/// This metadata provider is for users and/or plugins to override the
/// default merging behaviour.
/// </summary>
Custom = 0,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum MetadataProviders.
/// </summary>
public enum MetadataProvider
{
/// <summary>
/// This metadata provider is for users and/or plugins to override the
/// default merging behaviour.
/// </summary>
Custom = 0,
/// <summary>
/// The IMDb provider.
/// </summary>
Imdb = 2,
/// <summary>
/// The IMDb provider.
/// </summary>
Imdb = 2,
/// <summary>
/// The TMDb provider.
/// </summary>
Tmdb = 3,
/// <summary>
/// The TMDb provider.
/// </summary>
Tmdb = 3,
/// <summary>
/// The TVDb provider.
/// </summary>
Tvdb = 4,
/// <summary>
/// The TVDb provider.
/// </summary>
Tvdb = 4,
/// <summary>
/// The tvcom provider.
/// </summary>
Tvcom = 5,
/// <summary>
/// The tvcom provider.
/// </summary>
Tvcom = 5,
/// <summary>
/// TMDb collection provider.
/// </summary>
TmdbCollection = 7,
/// <summary>
/// TMDb collection provider.
/// </summary>
TmdbCollection = 7,
/// <summary>
/// The MusicBrainz album provider.
/// </summary>
MusicBrainzAlbum = 8,
/// <summary>
/// The MusicBrainz album provider.
/// </summary>
MusicBrainzAlbum = 8,
/// <summary>
/// The MusicBrainz album artist provider.
/// </summary>
MusicBrainzAlbumArtist = 9,
/// <summary>
/// The MusicBrainz album artist provider.
/// </summary>
MusicBrainzAlbumArtist = 9,
/// <summary>
/// The MusicBrainz artist provider.
/// </summary>
MusicBrainzArtist = 10,
/// <summary>
/// The MusicBrainz artist provider.
/// </summary>
MusicBrainzArtist = 10,
/// <summary>
/// The MusicBrainz release group provider.
/// </summary>
MusicBrainzReleaseGroup = 11,
/// <summary>
/// The MusicBrainz release group provider.
/// </summary>
MusicBrainzReleaseGroup = 11,
/// <summary>
/// The Zap2It provider.
/// </summary>
Zap2It = 12,
/// <summary>
/// The Zap2It provider.
/// </summary>
Zap2It = 12,
/// <summary>
/// The TvRage provider.
/// </summary>
TvRage = 15,
/// <summary>
/// The TvRage provider.
/// </summary>
TvRage = 15,
/// <summary>
/// The AudioDb artist provider.
/// </summary>
AudioDbArtist = 16,
/// <summary>
/// The AudioDb artist provider.
/// </summary>
AudioDbArtist = 16,
/// <summary>
/// The AudioDb collection provider.
/// </summary>
AudioDbAlbum = 17,
/// <summary>
/// The AudioDb collection provider.
/// </summary>
AudioDbAlbum = 17,
/// <summary>
/// The MusicBrainz track provider.
/// </summary>
MusicBrainzTrack = 18,
/// <summary>
/// The MusicBrainz track provider.
/// </summary>
MusicBrainzTrack = 18,
/// <summary>
/// The TvMaze provider.
/// </summary>
TvMaze = 19,
/// <summary>
/// The TvMaze provider.
/// </summary>
TvMaze = 19,
/// <summary>
/// The MusicBrainz recording provider.
/// </summary>
MusicBrainzRecording = 20,
}
}
/// <summary>
/// The MusicBrainz recording provider.
/// </summary>
MusicBrainzRecording = 20,
}
@@ -2,11 +2,11 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace MediaBrowser.Model.Entities;
using global::System.Collections.Generic;
using global::System.Text.Json.Serialization;
/// <summary>
/// A class representing an parental rating entry.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Text.Json.Serialization;
namespace MediaBrowser.Model.Entities;
using global::System.Text.Json.Serialization;
/// <summary>
/// A class representing an parental rating score.
/// </summary>
@@ -2,11 +2,11 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace MediaBrowser.Model.Entities;
using global::System.Collections.Generic;
using global::System.Text.Json.Serialization;
/// <summary>
/// A class representing a parental rating system.
/// </summary>
+55 -57
View File
@@ -2,71 +2,69 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Types of persons.
/// </summary>
public static class PersonType
{
/// <summary>
/// A person whose profession is acting on the stage, in films, or on television.
/// </summary>
public const string Actor = "Actor";
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Types of persons.
/// </summary>
public static class PersonType
{
/// <summary>
/// A person whose profession is acting on the stage, in films, or on television.
/// </summary>
public const string Actor = "Actor";
/// <summary>
/// A person who supervises the actors and other staff in a film, play, or similar production.
/// </summary>
public const string Director = "Director";
/// <summary>
/// A person who supervises the actors and other staff in a film, play, or similar production.
/// </summary>
public const string Director = "Director";
/// <summary>
/// A person who writes music, especially as a professional occupation.
/// </summary>
public const string Composer = "Composer";
/// <summary>
/// A person who writes music, especially as a professional occupation.
/// </summary>
public const string Composer = "Composer";
/// <summary>
/// A writer of a book, article, or document. Can also be used as a generic term for music writer if there is a lack of specificity.
/// </summary>
public const string Writer = "Writer";
/// <summary>
/// A writer of a book, article, or document. Can also be used as a generic term for music writer if there is a lack of specificity.
/// </summary>
public const string Writer = "Writer";
/// <summary>
/// A well-known actor or other performer who appears in a work in which they do not have a regular role.
/// </summary>
public const string GuestStar = "GuestStar";
/// <summary>
/// A well-known actor or other performer who appears in a work in which they do not have a regular role.
/// </summary>
public const string GuestStar = "GuestStar";
/// <summary>
/// A person responsible for the financial and managerial aspects of the making of a film or broadcast or for staging a play, opera, etc.
/// </summary>
public const string Producer = "Producer";
/// <summary>
/// A person responsible for the financial and managerial aspects of the making of a film or broadcast or for staging a play, opera, etc.
/// </summary>
public const string Producer = "Producer";
/// <summary>
/// A person who directs the performance of an orchestra or choir.
/// </summary>
public const string Conductor = "Conductor";
/// <summary>
/// A person who directs the performance of an orchestra or choir.
/// </summary>
public const string Conductor = "Conductor";
/// <summary>
/// A person who writes the words to a song or musical.
/// </summary>
public const string Lyricist = "Lyricist";
/// <summary>
/// A person who writes the words to a song or musical.
/// </summary>
public const string Lyricist = "Lyricist";
/// <summary>
/// A person who adapts a musical composition for performance.
/// </summary>
public const string Arranger = "Arranger";
/// <summary>
/// A person who adapts a musical composition for performance.
/// </summary>
public const string Arranger = "Arranger";
/// <summary>
/// An audio engineer who performed a general engineering role.
/// </summary>
public const string Engineer = "Engineer";
/// <summary>
/// An audio engineer who performed a general engineering role.
/// </summary>
public const string Engineer = "Engineer";
/// <summary>
/// An engineer responsible for using a mixing console to mix a recorded track into a single piece of music suitable for release.
/// </summary>
public const string Mixer = "Mixer";
/// <summary>
/// An engineer responsible for using a mixing console to mix a recorded track into a single piece of music suitable for release.
/// </summary>
public const string Mixer = "Mixer";
/// <summary>
/// A person who remixed a recording by taking one or more other tracks, substantially altering them and mixing them together with other material.
/// </summary>
public const string Remixer = "Remixer";
}
}
/// <summary>
/// A person who remixed a recording by taking one or more other tracks, substantially altering them and mixing them together with other material.
/// </summary>
public const string Remixer = "Remixer";
}
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Model.Entities;
using global::System;
/// <summary>
/// Class to hold data on user permissions for playlists.
/// </summary>
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace MediaBrowser.Model.Entities;
using global::System;
using global::System.Collections.Generic;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Linq;
/// <summary>
/// Class ProviderIdsExtensions.
/// </summary>
@@ -60,6 +60,7 @@ public static class ProviderIdsExtensions
}
var foundProviderId = instance.ProviderIds.TryGetValue(name, out id);
// This occurs when searching with Identify (and possibly in other places)
if (string.IsNullOrEmpty(id))
{
+19 -21
View File
@@ -2,26 +2,24 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// The status of a series.
/// </summary>
public enum SeriesStatus
{
/// <summary>
/// The continuing status. This indicates that a series is currently releasing.
/// </summary>
Continuing,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// The status of a series.
/// </summary>
public enum SeriesStatus
{
/// <summary>
/// The continuing status. This indicates that a series is currently releasing.
/// </summary>
Continuing,
/// <summary>
/// The ended status. This indicates that a series has completed and is no longer being released.
/// </summary>
Ended,
/// <summary>
/// The ended status. This indicates that a series has completed and is no longer being released.
/// </summary>
Ended,
/// <summary>
/// The unreleased status. This indicates that a series has not been released yet.
/// </summary>
Unreleased
}
}
/// <summary>
/// The unreleased status. This indicates that a series has not been released yet.
/// </summary>
Unreleased
}
@@ -49,5 +49,5 @@ public enum TonemappingAlgorithm
/// <summary>
/// BT2390.
/// </summary>
bt2390 = 7
bt2390 = 7,
}
@@ -34,5 +34,5 @@ public enum TonemappingMode
/// <summary>
/// ITP.
/// </summary>
itp = 4
itp = 4,
}
@@ -24,5 +24,5 @@ public enum TonemappingRange
/// <summary>
/// PC.
/// </summary>
pc = 2
pc = 2,
}
+9 -11
View File
@@ -4,14 +4,12 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Entities
{
public enum TrailerType
{
ComingSoonToTheaters = 1,
ComingSoonToDvd = 2,
ComingSoonToStreaming = 3,
Archive = 4,
LocalTrailer = 5
}
}
namespace MediaBrowser.Model.Entities;
public enum TrailerType
{
ComingSoonToTheaters = 1,
ComingSoonToDvd = 2,
ComingSoonToStreaming = 3,
Archive = 4,
LocalTrailer = 5,
}
@@ -2,46 +2,44 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum UserDataSaveReason.
/// </summary>
public enum UserDataSaveReason
{
/// <summary>
/// The playback start.
/// </summary>
PlaybackStart = 1,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum UserDataSaveReason.
/// </summary>
public enum UserDataSaveReason
{
/// <summary>
/// The playback start.
/// </summary>
PlaybackStart = 1,
/// <summary>
/// The playback progress.
/// </summary>
PlaybackProgress = 2,
/// <summary>
/// The playback progress.
/// </summary>
PlaybackProgress = 2,
/// <summary>
/// The playback finished.
/// </summary>
PlaybackFinished = 3,
/// <summary>
/// The playback finished.
/// </summary>
PlaybackFinished = 3,
/// <summary>
/// The toggle played.
/// </summary>
TogglePlayed = 4,
/// <summary>
/// The toggle played.
/// </summary>
TogglePlayed = 4,
/// <summary>
/// The update user rating.
/// </summary>
UpdateUserRating = 5,
/// <summary>
/// The update user rating.
/// </summary>
UpdateUserRating = 5,
/// <summary>
/// The import.
/// </summary>
Import = 6,
/// <summary>
/// The import.
/// </summary>
Import = 6,
/// <summary>
/// API call updated item user data.
/// </summary>
UpdateUserData = 7,
}
}
/// <summary>
/// API call updated item user data.
/// </summary>
UpdateUserData = 7,
}
+9 -11
View File
@@ -4,14 +4,12 @@
#pragma warning disable CS1591
namespace MediaBrowser.Model.Entities
{
public enum Video3DFormat
{
HalfSideBySide,
FullSideBySide,
FullTopAndBottom,
HalfTopAndBottom,
MVC
}
}
namespace MediaBrowser.Model.Entities;
public enum Video3DFormat
{
HalfSideBySide,
FullSideBySide,
FullTopAndBottom,
HalfTopAndBottom,
MVC
}
+23 -25
View File
@@ -2,31 +2,29 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Enum VideoType.
/// </summary>
public enum VideoType
{
/// <summary>
/// The video file.
/// </summary>
VideoFile,
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Enum VideoType.
/// </summary>
public enum VideoType
{
/// <summary>
/// The video file.
/// </summary>
VideoFile,
/// <summary>
/// The iso.
/// </summary>
Iso,
/// <summary>
/// The iso.
/// </summary>
Iso,
/// <summary>
/// The DVD.
/// </summary>
Dvd,
/// <summary>
/// The DVD.
/// </summary>
Dvd,
/// <summary>
/// The blu ray.
/// </summary>
BluRay
}
}
/// <summary>
/// The blu ray.
/// </summary>
BluRay
}
@@ -5,58 +5,56 @@
#nullable disable
#pragma warning disable CS1591
using System;
using global::System;
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Used to hold information about a user's list of configured virtual folders.
/// </summary>
public class VirtualFolderInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="VirtualFolderInfo"/> class.
/// </summary>
public VirtualFolderInfo()
{
Locations = Array.Empty<string>();
}
namespace MediaBrowser.Model.Entities;
/// <summary>
/// Used to hold information about a user's list of configured virtual folders.
/// </summary>
public class VirtualFolderInfo
{
/// <summary>
/// Initializes a new instance of the <see cref="VirtualFolderInfo"/> class.
/// </summary>
public VirtualFolderInfo()
{
Locations = Array.Empty<string>();
}
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the locations.
/// </summary>
/// <value>The locations.</value>
public string[] Locations { get; set; }
/// <summary>
/// Gets or sets the locations.
/// </summary>
/// <value>The locations.</value>
public string[] Locations { get; set; }
/// <summary>
/// Gets or sets the type of the collection.
/// </summary>
/// <value>The type of the collection.</value>
public CollectionTypeOptions? CollectionType { get; set; }
/// <summary>
/// Gets or sets the type of the collection.
/// </summary>
/// <value>The type of the collection.</value>
public CollectionTypeOptions? CollectionType { get; set; }
public LibraryOptions LibraryOptions { get; set; }
public LibraryOptions LibraryOptions { get; set; }
/// <summary>
/// Gets or sets the item identifier.
/// </summary>
/// <value>The item identifier.</value>
public string ItemId { get; set; }
/// <summary>
/// Gets or sets the item identifier.
/// </summary>
/// <value>The item identifier.</value>
public string ItemId { get; set; }
/// <summary>
/// Gets or sets the primary image item identifier.
/// </summary>
/// <value>The primary image item identifier.</value>
public string PrimaryImageItemId { get; set; }
/// <summary>
/// Gets or sets the primary image item identifier.
/// </summary>
/// <value>The primary image item identifier.</value>
public string PrimaryImageItemId { get; set; }
public double? RefreshProgress { get; set; }
public double? RefreshProgress { get; set; }
public string RefreshStatus { get; set; }
}
}
public string RefreshStatus { get; set; }
}