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 ReleaseReqDTO : AuthDataDTO { /// /// CodApp Richiesta /// public string CodApp { get; set; } = ""; /// /// Versione minima richiesta /// public string VersMin { get; set; } = ""; /// /// Versione MAX richiesta /// public string VersMax { get; set; } = ""; /// /// Numero di Impieghi attivi (es num di IOB relativi) /// public int NumImp { get; set; } = 1; /// /// Verifica complessiva validità richiesta: /// CodApp presente /// - MainKey oppure CodImp + AppKey presenti /// [NotMapped] public override bool IsValid { get => !string.IsNullOrEmpty(CodApp) && (!string.IsNullOrEmpty(MastKey) || (!string.IsNullOrEmpty(CodImp) && !string.IsNullOrEmpty(AppKey))); } } }