internal override void BuildUpdate(XElement xp) { SetBaseValues(xp); //update-content var xcontent = xp.Element("update-content"); if (xcontent == null) { return; } //person var xe = xcontent.Element("person"); if (xe == null) { return; } Person = new LinkedInPersonConnection(); Utils.BuildPerson(Person, xe); //connections xe = xe.Element("connections"); if (xe != null) { Person.AddConnections( xe.Elements("person").Select(xc => Utils.BuildPerson(new LinkedInPerson(), xc))); } }
internal override void BuildUpdate(XElement xp) { SetBaseValues(xp); //update-content var xcontent = xp.Element("update-content"); if (xcontent == null) return; //person var xe = xcontent.Element("person"); if (xe == null) return; Person = new LinkedInPersonConnection(); Utils.BuildPerson(Person, xe); //connections xe = xe.Element("connections"); if (xe != null) { Person.AddConnections( xe.Elements("person").Select(xc => Utils.BuildPerson(new LinkedInPerson(), xc))); } }