ade4d736a0
- esteso modello info x applicazione e release - nuovi metodi rest x caricare release - creazione app mancanti
67 lines
1.9 KiB
C#
67 lines
1.9 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static Core.Enum;
|
|
|
|
namespace Core
|
|
{
|
|
public class AppRelVersion
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Installazione funzionalità uploader
|
|
/// </summary>
|
|
public string CodInst { get; set; } = "";
|
|
/// <summary>
|
|
/// ID upload app
|
|
/// </summary>
|
|
public string UplAppID { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Chiave di autorizzazione alla comunicazione
|
|
/// </summary>
|
|
public string MasterKey { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Cod applicativo di riferimento
|
|
/// </summary>
|
|
public string CodApp { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Tipo Applicazione
|
|
/// </summary>
|
|
public string Tipo { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Versione applicativo formato semver numerico 4 blocchi
|
|
/// </summary>
|
|
public string VersNum { get; set; } = "0.0.0.0";
|
|
|
|
/// <summary>
|
|
/// Versione applicativo, formato testuale libero, può essere uguale a VersNum
|
|
/// </summary>
|
|
public string VersText { get; set; } = "a.b";
|
|
|
|
/// <summary>
|
|
/// Data di release
|
|
/// </summary>
|
|
public DateTime ReleaseDate { get; set; } = DateTime.Today.AddYears(100);
|
|
|
|
/// <summary>
|
|
/// Tag associati a versione, comma separated
|
|
/// </summary>
|
|
public string RelTags { get; set; } = "";
|
|
|
|
public bool IsValid
|
|
{
|
|
get => !string.IsNullOrEmpty(CodInst) && !string.IsNullOrEmpty(UplAppID) && !string.IsNullOrEmpty(MasterKey) && !string.IsNullOrEmpty(CodApp) && !string.IsNullOrEmpty(VersNum) && !string.IsNullOrEmpty(VersText);
|
|
}
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |