14ed9d010a
- API config - SignalR thread - SignalR click handler
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static Step.Model.Constants;
|
|
|
|
namespace Step.Model.DTOModels
|
|
{
|
|
public class DTOUserSoftKeyConfigModel
|
|
{
|
|
public int Id { get; set; }
|
|
public int Category { get; set; }
|
|
public bool OperatorConfirmationNeeded { get; set; }
|
|
public SOFTKEY_TYPE Type { get; set; }
|
|
public Dictionary<int, string> SubKeys { get; set; }
|
|
}
|
|
|
|
public class DTOUserSoftKeyModel
|
|
{
|
|
public int Id { get; set; }
|
|
public int Category { get; set; }
|
|
public bool Active { get; set; }
|
|
public bool Value { get; set; }
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
var item = obj as DTOUserSoftKeyModel;
|
|
|
|
if (Id != item.Id)
|
|
return false;
|
|
if (Active != item.Active)
|
|
return false;
|
|
if (Value != item.Value)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
}
|