diff options
Diffstat (limited to 'Emby.Dlna/ContentDirectory/ServerItem.cs')
| -rw-r--r-- | Emby.Dlna/ContentDirectory/ServerItem.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Emby.Dlna/ContentDirectory/ServerItem.cs b/Emby.Dlna/ContentDirectory/ServerItem.cs new file mode 100644 index 000000000..ff30e6e4a --- /dev/null +++ b/Emby.Dlna/ContentDirectory/ServerItem.cs @@ -0,0 +1,36 @@ +#pragma warning disable CS1591 + +using MediaBrowser.Controller.Entities; + +namespace Emby.Dlna.ContentDirectory +{ + /// <summary> + /// Defines the <see cref="ServerItem" />. + /// </summary> + internal class ServerItem + { + /// <summary> + /// Initializes a new instance of the <see cref="ServerItem"/> class. + /// </summary> + /// <param name="item">The <see cref="BaseItem"/>.</param> + public ServerItem(BaseItem item) + { + Item = item; + + if (item is IItemByName && item is not Folder) + { + StubType = Dlna.ContentDirectory.StubType.Folder; + } + } + + /// <summary> + /// Gets or sets the underlying base item. + /// </summary> + public BaseItem Item { get; set; } + + /// <summary> + /// Gets or sets the DLNA item type. + /// </summary> + public StubType? StubType { get; set; } + } +} |
