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 /// /// Installazione funzionalità uploader /// public string CodInst { get; set; } = ""; /// /// ID upload app /// public string UplAppID { get; set; } = ""; /// /// Chiave di autorizzazione alla comunicazione /// public string MasterKey { get; set; } = ""; /// /// Cod applicativo di riferimento /// public string CodApp { get; set; } = ""; /// /// Tipo Applicazione /// public string Tipo { get; set; } = ""; /// /// Versione applicativo formato semver numerico 4 blocchi /// public string VersNum { get; set; } = "0.0.0.0"; /// /// Versione applicativo, formato testuale libero, può essere uguale a VersNum /// public string VersText { get; set; } = "a.b"; /// /// Data di release /// public DateTime ReleaseDate { get; set; } = DateTime.Today.AddYears(100); /// /// Tag associati a versione, comma separated /// 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 } }