31 lines
994 B
Plaintext
31 lines
994 B
Plaintext
|
|
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; }
|
||
|
|
/// <summary>
|
||
|
|
/// this is the item category (as a value in the db - LockCategories)
|
||
|
|
/// </summary>
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|