mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-07 16:28:56 +01:00
Added BaseEntity so that Person, User, and other misc classes don't have to inherit from BaseItem
This commit is contained in:
parent
16593b3350
commit
31afb168f8
19
MediaBrowser.Model/Entities/BaseEntity.cs
Normal file
19
MediaBrowser.Model/Entities/BaseEntity.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides a base entity for all of our types
|
||||
/// </summary>
|
||||
public abstract class BaseEntity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string PrimaryImagePath { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,13 +4,10 @@ using System.Runtime.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public abstract class BaseItem
|
||||
public abstract class BaseItem : BaseEntity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string SortName { get; set; }
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTime DateCreated { get; set; }
|
||||
|
||||
public DateTime DateModified { get; set; }
|
||||
@@ -25,7 +22,6 @@ namespace MediaBrowser.Model.Entities
|
||||
[IgnoreDataMember]
|
||||
public Folder Parent { get; set; }
|
||||
|
||||
public string PrimaryImagePath { get; set; }
|
||||
public string LogoImagePath { get; set; }
|
||||
public string ArtImagePath { get; set; }
|
||||
public string ThumbnailImagePath { get; set; }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public class Genre : BaseItem
|
||||
public class Genre : BaseEntity
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace MediaBrowser.Model.Entities
|
||||
/// <summary>
|
||||
/// This is the full Person object that can be retrieved with all of it's data.
|
||||
/// </summary>
|
||||
public class Person : BaseItem
|
||||
public class Person : BaseEntity
|
||||
{
|
||||
public PersonType PersonType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public class Studio : BaseItem
|
||||
public class Studio : BaseEntity
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public class Year : BaseItem
|
||||
public class Year : BaseEntity
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user