/// <summary>
 /// Initializes a new instance of the <see cref="User"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 public User(string name, int id) : base(name, id)
 {
     Inventory = new Inventory(this);
     COL_NAMES.AddRange(new string[] { "Permissions" });
     Permissions = new List <Permissions>()
     {
         Library.Permissions.None
     };
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LibraryItem"/> class.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="name">The name.</param>
 public LibraryItem(long id, string name) : base(name, Convert.ToInt32(id))
 {
     Available = true;
     COL_NAMES.AddRange(new string[] { "Available" });
 }