57 lines
1.6 KiB
C#
57 lines
1.6 KiB
C#
using Egw.Window.Data;
|
|
using Microsoft.AspNetCore.Components;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net.Http.Headers;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WebWindowTest.DTO
|
|
{
|
|
/// <summary>
|
|
/// Payload complessivo delle preselezioni (globalmente opzionali)
|
|
/// </summary>
|
|
public class SelectPayload
|
|
{
|
|
/// <summary>
|
|
/// Famiglia HW selezionata
|
|
/// </summary>
|
|
public string FamilyHardware { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Colore selezionato
|
|
/// </summary>
|
|
public string ColorMaterial { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Materiale selezionato
|
|
/// </summary>
|
|
public string Material { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Tipologia vetro selezionato
|
|
/// </summary>
|
|
public string Glass { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Tipologia profilo selezionato
|
|
/// </summary>
|
|
public string Profile { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Verifica di validità dell'intero Payload
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public bool IsValid()
|
|
{
|
|
bool famHwOK = !string.IsNullOrEmpty(FamilyHardware);
|
|
bool colorOK = !string.IsNullOrEmpty(ColorMaterial);
|
|
bool glassOk = !string.IsNullOrEmpty(Glass);
|
|
bool matOK = !string.IsNullOrEmpty(Material);
|
|
bool profileOK = !string.IsNullOrEmpty(Profile);
|
|
return famHwOK && colorOK && matOK && glassOk && profileOK;
|
|
}
|
|
}
|
|
}
|