diff --git a/MediaBrowser.Model/DTO/UserDto.cs b/MediaBrowser.Model/DTO/UserDto.cs index ca173a0e85..a67c1b1a02 100644 --- a/MediaBrowser.Model/DTO/UserDto.cs +++ b/MediaBrowser.Model/DTO/UserDto.cs @@ -57,7 +57,7 @@ namespace MediaBrowser.Model.Dto /// /// The primary image aspect ratio. public double? PrimaryImageAspectRatio { get; set; } - + /// /// Gets a value indicating whether this instance has primary image. /// @@ -68,6 +68,17 @@ namespace MediaBrowser.Model.Dto get { return PrimaryImageTag.HasValue; } } + /// + /// Initializes a new instance of the class. + /// + public UserDto() + { + Configuration = new UserConfiguration(); + } + + /// + /// Occurs when [property changed]. + /// public event PropertyChangedEventHandler PropertyChanged; } } diff --git a/MediaBrowser.Model/Dto/IItemDto.cs b/MediaBrowser.Model/Dto/IItemDto.cs index c970296559..3e7d1c6085 100644 --- a/MediaBrowser.Model/Dto/IItemDto.cs +++ b/MediaBrowser.Model/Dto/IItemDto.cs @@ -1,8 +1,15 @@  namespace MediaBrowser.Model.Dto { + /// + /// Interface IItemDto + /// public interface IItemDto { + /// + /// Gets or sets the primary image aspect ratio. + /// + /// The primary image aspect ratio. double? PrimaryImageAspectRatio { get; set; } } } diff --git a/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs b/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs index e98b7ae2c4..ae85cbc3e2 100644 --- a/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs +++ b/MediaBrowser.Model/Entities/LibraryUpdateInfo.cs @@ -32,6 +32,9 @@ namespace MediaBrowser.Model.Entities /// The items updated. public List ItemsUpdated { get; set; } + /// + /// Initializes a new instance of the class. + /// public LibraryUpdateInfo() { Folders = new List(); diff --git a/MediaBrowser.Model/Entities/VideoFormat.cs b/MediaBrowser.Model/Entities/VideoFormat.cs index 107d20c141..ad04203e25 100644 --- a/MediaBrowser.Model/Entities/VideoFormat.cs +++ b/MediaBrowser.Model/Entities/VideoFormat.cs @@ -1,9 +1,21 @@ namespace MediaBrowser.Model.Entities { + /// + /// Enum VideoFormat + /// public enum VideoFormat { + /// + /// The standard + /// Standard, + /// + /// The digital3 D + /// Digital3D, + /// + /// The SBS3 D + /// Sbs3D } } diff --git a/MediaBrowser.Model/Entities/VirtualFolderInfo.cs b/MediaBrowser.Model/Entities/VirtualFolderInfo.cs index be584e40e3..c322b79587 100644 --- a/MediaBrowser.Model/Entities/VirtualFolderInfo.cs +++ b/MediaBrowser.Model/Entities/VirtualFolderInfo.cs @@ -18,5 +18,13 @@ namespace MediaBrowser.Model.Entities /// /// The locations. public List Locations { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public VirtualFolderInfo() + { + Locations = new List(); + } } } diff --git a/MediaBrowser.Model/Querying/ItemQuery.cs b/MediaBrowser.Model/Querying/ItemQuery.cs index 7b2a4903eb..80ec350a74 100644 --- a/MediaBrowser.Model/Querying/ItemQuery.cs +++ b/MediaBrowser.Model/Querying/ItemQuery.cs @@ -73,7 +73,7 @@ namespace MediaBrowser.Model.Querying /// /// The video types. public VideoType[] VideoTypes { get; set; } - + /// /// Whether or not to perform the query recursively /// @@ -103,7 +103,7 @@ namespace MediaBrowser.Model.Querying /// /// The include item types. public string[] IncludeItemTypes { get; set; } - + /// /// Limit results to items containing specific years /// @@ -127,7 +127,7 @@ namespace MediaBrowser.Model.Querying /// /// The index by. public string SearchTerm { get; set; } - + /// /// The dynamic, localized index function name /// @@ -151,7 +151,7 @@ namespace MediaBrowser.Model.Querying /// /// The series status. public SeriesStatus[] SeriesStatuses { get; set; } - + /// /// Gets or sets the ids, which are specific items to retrieve /// @@ -169,5 +169,35 @@ namespace MediaBrowser.Model.Querying /// /// The max official rating. public string MaxOfficialRating { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public ItemQuery() + { + SortBy = new string[] {}; + + Filters = new ItemFilter[] {}; + + Fields = new ItemFields[] {}; + + MediaTypes = new string[] {}; + + VideoFormats = new VideoFormat[] { }; + + VideoTypes = new VideoType[] {}; + + Genres = new string[] { }; + Studios = new string[] { }; + IncludeItemTypes = new string[] { }; + ExcludeItemTypes = new string[] { }; + Years = new int[] { }; + PersonTypes = new string[] { }; + Ids = new string[] { }; + + ImageTypes = new ImageType[] { }; + AirDays = new DayOfWeek[] { }; + SeriesStatuses = new SeriesStatus[] { }; + } } } diff --git a/MediaBrowser.Model/Querying/ItemsByNameQuery.cs b/MediaBrowser.Model/Querying/ItemsByNameQuery.cs index eae2dc0426..4569e32c06 100644 --- a/MediaBrowser.Model/Querying/ItemsByNameQuery.cs +++ b/MediaBrowser.Model/Querying/ItemsByNameQuery.cs @@ -23,7 +23,7 @@ namespace MediaBrowser.Model.Querying /// The size of the page. public int? Limit { get; set; } /// - /// Gets or sets a value indicating whether this is recursive. + /// Gets or sets a value indicating whether this is recursive. /// /// true if recursive; otherwise, false. public bool Recursive { get; set; } @@ -47,5 +47,15 @@ namespace MediaBrowser.Model.Querying /// /// The person types. public string[] PersonTypes { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public ItemsByNameQuery() + { + Fields = new ItemFields[] {}; + + PersonTypes = new string[] {}; + } } } diff --git a/MediaBrowser.Model/Querying/ItemsResult.cs b/MediaBrowser.Model/Querying/ItemsResult.cs index fe723f5532..b3f771e4b4 100644 --- a/MediaBrowser.Model/Querying/ItemsResult.cs +++ b/MediaBrowser.Model/Querying/ItemsResult.cs @@ -18,5 +18,13 @@ namespace MediaBrowser.Model.Querying /// /// The total record count. public int TotalRecordCount { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public ItemsResult() + { + Items = new BaseItemDto[] { }; + } } } diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.cs index 6e2f26775e..7173425d15 100644 --- a/MediaBrowser.Model/System/SystemInfo.cs +++ b/MediaBrowser.Model/System/SystemInfo.cs @@ -60,5 +60,17 @@ namespace MediaBrowser.Model.System /// /// The id. public string Id { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public SystemInfo() + { + InProgressInstallations = new InstallationInfo[] { }; + + CompletedInstallations = new InstallationInfo[] { }; + + FailedPluginAssemblies = new string[] { }; + } } } diff --git a/MediaBrowser.Model/Tasks/TaskInfo.cs b/MediaBrowser.Model/Tasks/TaskInfo.cs index 81c8372bd1..58d9cac15d 100644 --- a/MediaBrowser.Model/Tasks/TaskInfo.cs +++ b/MediaBrowser.Model/Tasks/TaskInfo.cs @@ -54,5 +54,13 @@ namespace MediaBrowser.Model.Tasks /// /// The category. public string Category { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public TaskInfo() + { + Triggers = new TaskTriggerInfo[] {}; + } } } diff --git a/MediaBrowser.Model/Updates/PackageInfo.cs b/MediaBrowser.Model/Updates/PackageInfo.cs index 3313f39cfd..c13d59adb4 100644 --- a/MediaBrowser.Model/Updates/PackageInfo.cs +++ b/MediaBrowser.Model/Updates/PackageInfo.cs @@ -121,5 +121,13 @@ namespace MediaBrowser.Model.Updates /// /// The versions. public List versions { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public PackageInfo() + { + versions = new List(); + } } }