67 lines
1.9 KiB
C#
67 lines
1.9 KiB
C#
using System.Collections.Generic;
|
|
using static Thermo.Active.Model.Constants;
|
|
|
|
namespace Thermo.Active.Model.DTOModels
|
|
{
|
|
public class DTOUserSoftKeyConfigModel
|
|
{
|
|
public int Id { get; set; }
|
|
public int Category { get; set; }
|
|
public bool OperatorConfirmationNeeded { get; set; }
|
|
public string RefCallParam { get; set; } = "";
|
|
public string RefCallLabel { get; set; } = "";
|
|
public SOFTKEY_TYPE Type { get; set; }
|
|
public Dictionary<int, string> SubKeys { get; set; }
|
|
public SOFTKEY_TYPE Place { get; set; }
|
|
}
|
|
|
|
|
|
public class DTOKeyboardSoftKeyModel
|
|
{
|
|
public int IdStar1 { get; set; }
|
|
public int IdStar2 { get; set; }
|
|
}
|
|
|
|
public class DTOUserSoftKeyModel
|
|
{
|
|
public int Id { get; set; }
|
|
public int Category { get; set; }
|
|
public bool Active { get; set; }
|
|
public bool Visible { get; set; }
|
|
public bool Starred { get; set; } = false;
|
|
public bool Value { get; set; }
|
|
public bool OperatorConfirmationNeeded { get; set; }
|
|
public string RefCallParam { get; set; } = "";
|
|
public string RefCallLabel { get; set; } = "";
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
DTOUserSoftKeyModel item = obj as DTOUserSoftKeyModel;
|
|
|
|
if (item == null)
|
|
return false;
|
|
|
|
if (Id != item.Id)
|
|
return false;
|
|
if (Active != item.Active)
|
|
return false;
|
|
if (Value != item.Value)
|
|
return false;
|
|
if (OperatorConfirmationNeeded != item.OperatorConfirmationNeeded)
|
|
return false;
|
|
if (RefCallParam != item.RefCallParam)
|
|
return false;
|
|
if (RefCallLabel != item.RefCallLabel)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
|
|
}
|