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 LinkedInPersonShare();
            Utils.BuildPerson(Person, xe);
            //current-share
            xe = xe.Element("current-share");
            if (xe != null)
            {
                Person.CurrentShare = Utils.BuildShare(xe);
            }
        }
Esempio n. 2
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 LinkedInPersonShare();
            Utils.BuildPerson(Person, xe);
            //current-share
            xe = xe.Element("current-share");
            if (xe != null)
                Person.CurrentShare = Utils.BuildShare(xe);
        }