#nullable disable #pragma warning disable CS1591 using System; namespace MediaBrowser.Controller.Entities { public class LinkedChild { public LinkedChild() { } /// /// Gets or sets the path. /// [Obsolete("Use ItemId instead")] public string Path { get; set; } public LinkedChildType Type { get; set; } /// /// Gets or sets the library item id. /// [Obsolete("Use ItemId instead")] public string LibraryItemId { get; set; } /// /// Gets or sets the linked item id. /// public Guid? ItemId { get; set; } public static LinkedChild Create(BaseItem item) { ArgumentNullException.ThrowIfNull(item); return new LinkedChild { ItemId = item.Id, Type = LinkedChildType.Manual }; } } }