using System.Collections.Generic; using System.Xml.Serialization; namespace RpcHelper { [XmlRoot(ElementName = "bills")] public class Gatherings { public Gatherings() { Bills = new List(); } [XmlElement(ElementName = "bill")] public List Bills { get; set; } } public class Gathering { public Gathering() { Head = new GatheringHead(); } [XmlElement(ElementName = "header")] public GatheringHead Head; } public class GatheringHead { private string _requestId = string.Empty; [XmlElement(ElementName = "RequestId")] public string RequestId { get { return _requestId; } set { _requestId = value; } } private string _customerCode = string.Empty; [XmlElement(ElementName = "CustomerCode")] public string CustomerCode { get { return _customerCode; } set { _customerCode = value; } } private string _time = string.Empty; [XmlElement(ElementName = "Time")] public string Time { get { return _time; } set { _time = value; } } private string _money = string.Empty; [XmlElement(ElementName = "Money")] public string Money { get { return _money; } set { _money = value; } } } }