kreta/Kreta.BusinessLogic/Logic/Naplozas/Validacio/NaploValidacioParameters.cs
2024-03-13 00:33:46 +01:00

29 lines
1,021 B
C#

using System;
using Kreta.Core.ConnectionType;
using Kreta.Enums;
namespace Kreta.BusinessLogic.Logic.Naplozas.Validacio
{
public class NaploValidacioParameters
{
private NaploValidacioParameters() { }
public NaploValidacioParameters(DateTime date, IConnectionType connectionType, SzerepkorTipusEnum? felhasznaloSzerepkor) : this(date.ToLocalTime(), date.ToLocalTime().AddDays(1), connectionType, felhasznaloSzerepkor) { }
public NaploValidacioParameters(DateTime from, DateTime to, IConnectionType connectionType, SzerepkorTipusEnum? felhasznaloSzerepkor)
{
From = from;
To = to;
ConnectionType = connectionType;
FelhasznaloSzerepkor = felhasznaloSzerepkor;
}
public DateTime From { get; private set; }
public DateTime To { get; private set; }
public IConnectionType ConnectionType { get; private set; }
public SzerepkorTipusEnum? FelhasznaloSzerepkor { get; private set; }
}
}