using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.DTO
{
//
// This is here so CodeMaid doesn't reorganize this document
//
public class ManDeclareDTO : AuthDataDTO
{
///
/// Elenco delle CodApp Gestite
///
public List ListCodApp { get; set; } = new List();
///
/// Verifica complessiva validità richiesta:
/// CodApp presente
/// - MainKey oppure CodImp + AppKey presenti
///
[NotMapped]
public override bool IsValid
{
get => (ListCodApp != null && ListCodApp.Count > 0) && (!string.IsNullOrEmpty(MastKey) || (!string.IsNullOrEmpty(CodImp) && !string.IsNullOrEmpty(AppKey)));
}
}
}