Files
parr_api/PARR.EsppSync/IEsppObject.cs

32 lines
724 B
C#

using PARR.Constants;
namespace PARR.EsppSync
{
public interface IEsppObject
{
public string TemplateName { get; set; }
public RobotsEnum Robot { get; }
public bool IsActive { get; set; }
}
/// <summary>
/// Облегченная модель для сравнения полей, если IsActive==false
/// </summary>
public class EsppLightObject : IEsppObject
{
public EsppLightObject(IEsppObject obj)
{
TemplateName = obj.TemplateName;
IsActive = obj.IsActive;
}
public string TemplateName { get; set; }
public RobotsEnum Robot { get; }
public bool IsActive { get; set; }
}
}