default values for model classes

pull/702/head
Luke Pulverenti 12 years ago
parent 19d21a246d
commit 2e358a5968

@ -57,7 +57,7 @@ namespace MediaBrowser.Model.Dto
/// </summary> /// </summary>
/// <value>The primary image aspect ratio.</value> /// <value>The primary image aspect ratio.</value>
public double? PrimaryImageAspectRatio { get; set; } public double? PrimaryImageAspectRatio { get; set; }
/// <summary> /// <summary>
/// Gets a value indicating whether this instance has primary image. /// Gets a value indicating whether this instance has primary image.
/// </summary> /// </summary>
@ -68,6 +68,17 @@ namespace MediaBrowser.Model.Dto
get { return PrimaryImageTag.HasValue; } get { return PrimaryImageTag.HasValue; }
} }
/// <summary>
/// Initializes a new instance of the <see cref="UserDto"/> class.
/// </summary>
public UserDto()
{
Configuration = new UserConfiguration();
}
/// <summary>
/// Occurs when [property changed].
/// </summary>
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
} }
} }

@ -1,8 +1,15 @@
 
namespace MediaBrowser.Model.Dto namespace MediaBrowser.Model.Dto
{ {
/// <summary>
/// Interface IItemDto
/// </summary>
public interface IItemDto public interface IItemDto
{ {
/// <summary>
/// Gets or sets the primary image aspect ratio.
/// </summary>
/// <value>The primary image aspect ratio.</value>
double? PrimaryImageAspectRatio { get; set; } double? PrimaryImageAspectRatio { get; set; }
} }
} }

@ -32,6 +32,9 @@ namespace MediaBrowser.Model.Entities
/// <value>The items updated.</value> /// <value>The items updated.</value>
public List<Guid> ItemsUpdated { get; set; } public List<Guid> ItemsUpdated { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="LibraryUpdateInfo"/> class.
/// </summary>
public LibraryUpdateInfo() public LibraryUpdateInfo()
{ {
Folders = new List<Guid>(); Folders = new List<Guid>();

@ -1,9 +1,21 @@
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
/// <summary>
/// Enum VideoFormat
/// </summary>
public enum VideoFormat public enum VideoFormat
{ {
/// <summary>
/// The standard
/// </summary>
Standard, Standard,
/// <summary>
/// The digital3 D
/// </summary>
Digital3D, Digital3D,
/// <summary>
/// The SBS3 D
/// </summary>
Sbs3D Sbs3D
} }
} }

@ -18,5 +18,13 @@ namespace MediaBrowser.Model.Entities
/// </summary> /// </summary>
/// <value>The locations.</value> /// <value>The locations.</value>
public List<string> Locations { get; set; } public List<string> Locations { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="VirtualFolderInfo"/> class.
/// </summary>
public VirtualFolderInfo()
{
Locations = new List<string>();
}
} }
} }

@ -73,7 +73,7 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The video types.</value> /// <value>The video types.</value>
public VideoType[] VideoTypes { get; set; } public VideoType[] VideoTypes { get; set; }
/// <summary> /// <summary>
/// Whether or not to perform the query recursively /// Whether or not to perform the query recursively
/// </summary> /// </summary>
@ -103,7 +103,7 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The include item types.</value> /// <value>The include item types.</value>
public string[] IncludeItemTypes { get; set; } public string[] IncludeItemTypes { get; set; }
/// <summary> /// <summary>
/// Limit results to items containing specific years /// Limit results to items containing specific years
/// </summary> /// </summary>
@ -127,7 +127,7 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The index by.</value> /// <value>The index by.</value>
public string SearchTerm { get; set; } public string SearchTerm { get; set; }
/// <summary> /// <summary>
/// The dynamic, localized index function name /// The dynamic, localized index function name
/// </summary> /// </summary>
@ -151,7 +151,7 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The series status.</value> /// <value>The series status.</value>
public SeriesStatus[] SeriesStatuses { get; set; } public SeriesStatus[] SeriesStatuses { get; set; }
/// <summary> /// <summary>
/// Gets or sets the ids, which are specific items to retrieve /// Gets or sets the ids, which are specific items to retrieve
/// </summary> /// </summary>
@ -169,5 +169,35 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The max official rating.</value> /// <value>The max official rating.</value>
public string MaxOfficialRating { get; set; } public string MaxOfficialRating { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ItemQuery"/> class.
/// </summary>
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[] { };
}
} }
} }

@ -23,7 +23,7 @@ namespace MediaBrowser.Model.Querying
/// <value>The size of the page.</value> /// <value>The size of the page.</value>
public int? Limit { get; set; } public int? Limit { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this <see cref="ItemsByNameQuery"/> is recursive. /// Gets or sets a value indicating whether this <see cref="ItemsByNameQuery" /> is recursive.
/// </summary> /// </summary>
/// <value><c>true</c> if recursive; otherwise, <c>false</c>.</value> /// <value><c>true</c> if recursive; otherwise, <c>false</c>.</value>
public bool Recursive { get; set; } public bool Recursive { get; set; }
@ -47,5 +47,15 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The person types.</value> /// <value>The person types.</value>
public string[] PersonTypes { get; set; } public string[] PersonTypes { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ItemsByNameQuery"/> class.
/// </summary>
public ItemsByNameQuery()
{
Fields = new ItemFields[] {};
PersonTypes = new string[] {};
}
} }
} }

@ -18,5 +18,13 @@ namespace MediaBrowser.Model.Querying
/// </summary> /// </summary>
/// <value>The total record count.</value> /// <value>The total record count.</value>
public int TotalRecordCount { get; set; } public int TotalRecordCount { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ItemsResult"/> class.
/// </summary>
public ItemsResult()
{
Items = new BaseItemDto[] { };
}
} }
} }

@ -60,5 +60,17 @@ namespace MediaBrowser.Model.System
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
public string Id { get; set; } public string Id { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="SystemInfo"/> class.
/// </summary>
public SystemInfo()
{
InProgressInstallations = new InstallationInfo[] { };
CompletedInstallations = new InstallationInfo[] { };
FailedPluginAssemblies = new string[] { };
}
} }
} }

@ -54,5 +54,13 @@ namespace MediaBrowser.Model.Tasks
/// </summary> /// </summary>
/// <value>The category.</value> /// <value>The category.</value>
public string Category { get; set; } public string Category { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="TaskInfo"/> class.
/// </summary>
public TaskInfo()
{
Triggers = new TaskTriggerInfo[] {};
}
} }
} }

@ -121,5 +121,13 @@ namespace MediaBrowser.Model.Updates
/// </summary> /// </summary>
/// <value>The versions.</value> /// <value>The versions.</value>
public List<PackageVersionInfo> versions { get; set; } public List<PackageVersionInfo> versions { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="PackageInfo"/> class.
/// </summary>
public PackageInfo()
{
versions = new List<PackageVersionInfo>();
}
} }
} }

Loading…
Cancel
Save