using System; using System.Data; namespace DTS.Common.Classes.Locking { public class LockRecord { public string LockingUserName { get; } public string LockingMachineName { get; } public DateTime CreationTime { get; } public DateTime LastUpdated { get; } public string ItemKey { get; } /// /// this is the item category (as a value in the db - LockCategories) /// public int ItemCategory { get; } public int ItemId { get; } public LockRecord(string user, string machine, DateTime createTime, DateTime lastUpdate, string itemKey, int itemCategory, int itemId) { LockingUserName = user; LockingMachineName = machine; CreationTime = createTime; LastUpdated = lastUpdate; ItemKey = itemKey; ItemCategory = itemCategory; ItemId = itemId; } } }