using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebDoorCreator.Core
{
public class ConfigItem
{
///
/// Nome dell'item
///
public string Name { get; set; } = "";
///
/// Tipo dell'item (es: string, int, double, list...)
///
public string Type { get; set; } = "";
///
/// Valore dell'item
///
public string ValString { get; set; } = "";
public int ValInt
{
get
{
int answ = 0;
int.TryParse(ValString, out answ);
return answ;
}
}
public double ValDouble
{
get
{
double answ = 0;
double.TryParse(ValString, out answ);
return answ;
}
}
}
}