benchtopparser/BenchtopParser/ProgramConfig.cs
2022-07-26 00:41:48 -04:00

34 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BenchtopParser {
public class ProgramConfig {
public String? ProgramNumber { get; set; }
public Dictionary<String, Dictionary<String, Configuration>> Group { get; set; }
public ProgramConfig() {
this.Group = new Dictionary<String, Dictionary<String, Configuration>>();
}
}
public class Configuration {
public String? name { get; set; }
public String? value { get; set; }
public String? type { get; set; }
public String? unit { get; set; }
public Configuration(List<String> config, string data) {
var nameValue = data.Split("=");
name = nameValue[0].Trim();
value = nameValue[1].Trim();
unit = config[1].Trim();
type = config[2].Trim(); //a, c, f, i
}
}
}