jellyfin/Emby.Dlna/ContentDirectory/ServerItem.cs

37 lines
948 B
C#
Raw Normal View History

2020-08-20 19:04:57 +00:00
#pragma warning disable CS1591
using MediaBrowser.Controller.Entities;
namespace Emby.Dlna.ContentDirectory
{
2020-09-13 13:31:12 +00:00
/// <summary>
/// Defines the <see cref="ServerItem" />.
/// </summary>
2020-08-20 19:04:57 +00:00
internal class ServerItem
{
2020-09-13 13:31:12 +00:00
/// <summary>
/// Initializes a new instance of the <see cref="ServerItem"/> class.
/// </summary>
/// <param name="item">The <see cref="BaseItem"/>.</param>
2020-08-20 19:04:57 +00:00
public ServerItem(BaseItem item)
{
Item = item;
if (item is IItemByName && !(item is Folder))
{
StubType = Dlna.ContentDirectory.StubType.Folder;
}
}
2020-09-13 13:31:12 +00:00
/// <summary>
/// Gets or sets the underlying base item.
/// </summary>
2020-08-20 19:04:57 +00:00
public BaseItem Item { get; set; }
2020-09-13 13:31:12 +00:00
/// <summary>
/// Gets or sets the DLNA item type.
/// </summary>
2020-08-20 19:04:57 +00:00
public StubType? StubType { get; set; }
}
}