using MediaBrowser.Controller.Entities;
namespace Emby.Dlna.ContentDirectory
{
///
/// Defines the .
///
internal class ServerItem
{
///
/// Initializes a new instance of the class.
///
/// The .
/// The stub type.
public ServerItem(BaseItem item, StubType? stubType)
{
Item = item;
if (stubType.HasValue)
{
StubType = stubType;
}
else if (item is IItemByName and not Folder)
{
StubType = Dlna.ContentDirectory.StubType.Folder;
}
}
///
/// Gets the underlying base item.
///
public BaseItem Item { get; }
///
/// Gets the DLNA item type.
///
public StubType? StubType { get; }
}
}