jellyfin/Emby.Dlna/ContentDirectory/ServerItem.cs

37 lines
948 B
C#
Raw Normal View History

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