using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EgwControlCenter.Core.DTO
{
///
/// Classe risposta richiesta enroll applicativo
///
public class EnrollRequestDTO
{
///
/// ID univoco richiesta
///
public int IdReq { get; set; } = 0;
///
/// Passcode usato per autorizzare (un valore random NON DUPLICATO con quelli attivi al momento della richiesta)
///
public int Passcode { get; set; } = 0;
///
/// Payload richiesta, ovvero la serializzazione json di un Dict[string,string] delle info ricevute
///
public string ReqPayload { get; set; } = "";
///
/// DataOra richiesta enroll
///
public DateTime DtReq { get; set; } = DateTime.Now;
///
/// DataOra approvazione
///
public DateTime? DtAppr { get; set; } = null;
///
/// Scadenza richiesta
///
public DateTime DtScadenza { get; set; } = DateTime.Now.AddSeconds(5);
///
/// Username approvatore
///
public string UserAppr { get; set; } = "";
///
/// Licenza fornita in risposta alla richiesta
///
public int IdxLic { get; set; } = 0;
///
/// Indica Scaduta se non approvata e richiesta da oltre 15 minuti
///
public bool IsScaduta { get; set; } = true;
///
/// Dizionario attributi ricevuti nella richiesta
///
public Dictionary DictAttrib { get; set; } = new Dictionary();
}
}