| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Runtime.Serialization;
 
- namespace MediaBrowser.Controller.Entities
 
- {
 
-     public class LinkedChild
 
-     {
 
-         public string Path { get; set; }
 
-         public LinkedChildType Type { get; set; }
 
-         public string ItemName { get; set; }
 
-         public string ItemType { get; set; }
 
-         public int? ItemYear { get; set; }
 
-         [IgnoreDataMember]
 
-         public string Id { get; set; }
 
-         /// <summary>
 
-         /// Serves as a cache
 
-         /// </summary>
 
-         public Guid? ItemId { get; set; }
 
-         public static LinkedChild Create(BaseItem item)
 
-         {
 
-             return new LinkedChild
 
-             {
 
-                 Path = item.Path,
 
-                 Type = LinkedChildType.Manual
 
-             };
 
-         }
 
-         public LinkedChild()
 
-         {
 
-             Id = Guid.NewGuid().ToString("N");
 
-         }
 
-     }
 
-     public enum LinkedChildType
 
-     {
 
-         Manual = 0,
 
-         Shortcut = 1
 
-     }
 
-     public class LinkedChildComparer : IEqualityComparer<LinkedChild>
 
-     {
 
-         public bool Equals(LinkedChild x, LinkedChild y)
 
-         {
 
-             if (x.Type == y.Type)
 
-             {
 
-                 return string.Equals(x.Path, y.Path, StringComparison.OrdinalIgnoreCase);
 
-             }
 
-             return false;
 
-         }
 
-         public int GetHashCode(LinkedChild obj)
 
-         {
 
-             return (obj.Path + obj.Type).GetHashCode();
 
-         }
 
-     }
 
- }
 
 
  |