94b4032fc0
- Notify opzionale da config (spenta x ora e non inseribile)
37 lines
1006 B
C#
37 lines
1006 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace EgwControlCenter.Core.DTO
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
public class AuthDataDTO
|
|
{
|
|
/// <summary>
|
|
/// Master Key
|
|
/// </summary>
|
|
public string MastKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Codice Impiego istanza SubLic
|
|
/// </summary>
|
|
public string CodImp { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Chiave SubLic
|
|
/// </summary>
|
|
public string AppKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Verifica complessiva validità richiesta:
|
|
/// CodApp presente
|
|
/// - MainKey oppure CodImp + AppKey presenti
|
|
/// </summary>
|
|
[NotMapped]
|
|
public virtual bool IsValid
|
|
{
|
|
get => (!string.IsNullOrEmpty(MastKey) || (!string.IsNullOrEmpty(CodImp) && !string.IsNullOrEmpty(AppKey)));
|
|
}
|
|
}
|
|
}
|