Beispiel #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)
            {
                Person = new LinkedInPerson();
                Utils.BuildPerson(Person, xe);
            }
            //update-action
            xe = xcontent.Element("update-action");
            if (xe == null) return;
            UpdateAction = Utils.BuildUpdateAction(xe);
            //original update
            var xa = xe.Element("original-update");
            if (xa == null) return;
            var update = new LinkedInShareUpdate();
            update.BuildUpdate(xa);
            UpdateAction.OriginalUpdate = update;
        }
Beispiel #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)
            {
                Person = new LinkedInPerson();
                Utils.BuildPerson(Person, xe);
            }
            //update-action
            xe = xcontent.Element("update-action");
            if (xe == null)
            {
                return;
            }
            UpdateAction = Utils.BuildUpdateAction(xe);
            //original update
            var xa = xe.Element("original-update");

            if (xa == null)
            {
                return;
            }
            var update = new LinkedInShareUpdate();

            update.BuildUpdate(xa);
            UpdateAction.OriginalUpdate = update;
        }