108 lines
2.6 KiB
C#
108 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using System.Xml;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace xmlserializetest
|
|
{
|
|
public class Res
|
|
{
|
|
[XmlAttribute("dO")]
|
|
public string dO { get; set; }
|
|
[XmlAttribute("dT")]
|
|
public string dT { get; set; }
|
|
[XmlAttribute("fC")]
|
|
public string fC { get; set; }
|
|
[XmlAttribute("lGZ")]
|
|
public string lGZ { get; set; }
|
|
[XmlAttribute("lPG")]
|
|
public string lPG { get; set; }
|
|
|
|
[XmlAttribute("lPZ")]
|
|
public string lPZ { get; set; }
|
|
[XmlAttribute("lZG")]
|
|
public string lZG { get; set; }
|
|
[XmlAttribute("lZPC")]
|
|
public string lZPC { get; set; }
|
|
[XmlAttribute("lZV")]
|
|
public string lZV { get; set; }
|
|
[XmlAttribute("pG")]
|
|
public string pG { get; set; }
|
|
|
|
[XmlAttribute("pin")]
|
|
public string pin { get; set; }
|
|
[XmlAttribute("sL")]
|
|
public string sL { get; set; }
|
|
[XmlAttribute("socket")]
|
|
public string socket { get; set; }
|
|
[XmlAttribute("supply")]
|
|
public string supply { get; set; }
|
|
[XmlAttribute("tN")]
|
|
public string tN { get; set; }
|
|
|
|
[XmlAttribute("tR")]
|
|
public string tR { get; set; }
|
|
[XmlAttribute("tS")]
|
|
public string tS { get; set; }
|
|
[XmlAttribute("tT")]
|
|
public string tT { get; set; }
|
|
|
|
[XmlElement("spot")]
|
|
public Spot[] Spot { get; set; }
|
|
|
|
[XmlElement("curve")]
|
|
public Curve Curve { get; set; }
|
|
|
|
//[XmlArray("curve")]
|
|
//[XmlArrayItem("vi",typeof(Vi))]
|
|
//public Vi[] Vi { get; set; }
|
|
|
|
}
|
|
|
|
public class Spot
|
|
{
|
|
[XmlAttribute("fT")]
|
|
public string fT { get; set; }
|
|
[XmlAttribute("lmt")]
|
|
public double lmt { get; set; }
|
|
[XmlAttribute("resid")]
|
|
public string resid { get; set; }
|
|
|
|
[XmlElement("vi")]
|
|
public Vi[] Vi { get; set; }
|
|
|
|
}
|
|
|
|
public class Curve
|
|
{
|
|
|
|
[XmlAttribute("fT")]
|
|
public string fT { get; set; }
|
|
[XmlAttribute("fV")]
|
|
public double fV { get; set; }
|
|
[XmlAttribute("lmt")]
|
|
public double lmt { get; set; }
|
|
[XmlAttribute("resid")]
|
|
public string resid { get; set; }
|
|
[XmlAttribute("sV")]
|
|
public double sV { get; set; }
|
|
|
|
[XmlElement("vi")]
|
|
public Vi[] Vi { get; set; }
|
|
|
|
}
|
|
|
|
public class Vi
|
|
{
|
|
[XmlAttribute("i")]
|
|
public double i { get; set; }
|
|
[XmlAttribute("v")]
|
|
public double v { get; set; }
|
|
|
|
}
|
|
|
|
|
|
}
|