Esempio n. 1
0
        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 LinkedInPersonRecommendation();
            Utils.BuildPerson(Person, xe);
            //recommendations-given
            var xn = xe.Element("recommendations-given");

            if (xn != null)
            {
                Person.AddRecommendations(xn.Elements("recommendation").Select(Utils.BuildRecommendationGiven));
            }
            //recommendations-received
            xn = xe.Element("recommendations-received");
            if (xn != null)
            {
                Person.AddRecommendations(xn.Elements("recommendation").Select(Utils.BuildRecommendationReceived));
            }
        }
        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 LinkedInPersonRecommendation();
            Utils.BuildPerson(Person, xe);
            //recommendations-given
            var xn = xe.Element("recommendations-given");
            if (xn != null)
                Person.AddRecommendations(xn.Elements("recommendation").Select(Utils.BuildRecommendationGiven));
            //recommendations-received
            xn = xe.Element("recommendations-received");
            if (xn != null)
                Person.AddRecommendations(xn.Elements("recommendation").Select(Utils.BuildRecommendationReceived));
        }