コード例 #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 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 ManagedCustomerLink();
             Operand.ReadFrom(xItem);
         }
     }
 }
コード例 #3
0
 public virtual void ReadFrom(XElement xE)
 {
     Links = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "links")
         {
             if (Links == null)
             {
                 Links = new List <ManagedCustomerLink>();
             }
             var linksItem = new ManagedCustomerLink();
             linksItem.ReadFrom(xItem);
             Links.Add(linksItem);
         }
     }
 }
コード例 #4
0
 public override void ReadFrom(XElement xE)
 {
     base.ReadFrom(xE);
     Operand = null;
     OldManagerCustomerId = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "operand")
         {
             Operand = new ManagedCustomerLink();
             Operand.ReadFrom(xItem);
         }
         else if (localName == "oldManagerCustomerId")
         {
             OldManagerCustomerId = long.Parse(xItem.Value);
         }
     }
 }