コード例 #1
0
 public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Entries = null;
     Links   = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "entries")
         {
             if (Entries == null)
             {
                 Entries = new List <ManagedCustomer>();
             }
             var entriesItem = new ManagedCustomer();
             entriesItem.ReadFrom(xItem);
             Entries.Add(entriesItem);
         }
         else if (localName == "links")
         {
             if (Links == null)
             {
                 Links = new List <ManagedCustomerLink>();
             }
             var linksItem = new ManagedCustomerLink();
             linksItem.ReadFrom(xItem);
             Links.Add(linksItem);
         }
     }
 }
コード例 #2
0
 public virtual void ReadFrom(XElement xE)
 {
     Manager        = null;
     Client         = null;
     CreationDate   = null;
     ExpirationDate = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "manager")
         {
             Manager = new ManagedCustomer();
             Manager.ReadFrom(xItem);
         }
         else if (localName == "client")
         {
             Client = new ManagedCustomer();
             Client.ReadFrom(xItem);
         }
         else if (localName == "creationDate")
         {
             CreationDate = xItem.Value;
         }
         else if (localName == "expirationDate")
         {
             ExpirationDate = xItem.Value;
         }
     }
 }
コード例 #3
0
 public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Operand = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "operand")
         {
             Operand = new ManagedCustomer();
             Operand.ReadFrom(xItem);
         }
     }
 }
コード例 #4
0
 public virtual void ReadFrom(XElement xE)
 {
     Value = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "value")
         {
             if (Value == null)
             {
                 Value = new List <ManagedCustomer>();
             }
             var valueItem = new ManagedCustomer();
             valueItem.ReadFrom(xItem);
             Value.Add(valueItem);
         }
     }
 }