Пример #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;
        }
Пример #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 LinkedInPerson();
            Utils.BuildPerson(Person, xe);
        }
Пример #3
0
        internal override void BuildUpdate(XElement xp)
        {
            SetBaseValues(xp);

            //update-content
            var xcontent = xp.Element("update-content");
            if (xcontent != null)
            {
                //person
                var xe = xcontent.Element("person");
                if (xe != null)
                {
                    Person = Utils.BuildPerson(new LinkedInPerson(), xe);
                }
            }
        }
Пример #4
0
        internal override void BuildUpdate(XElement xp)
        {
            SetBaseValues(xp);

            //update-content
            var xc = xp.Element("update-content");
            if (xc == null) return;
            xc = xc.Element("job");
            if (xc == null) return;
            //job-poster
            var xe = xc.Element("job-poster");
            if (xe != null)
            {
                JobPoster = new LinkedInPerson();
                Utils.BuildPerson(JobPoster, xe);
            }
            //id
            xe = xc.Element("id");
            if (xe != null)
                JobId = xe.Value.Trim();
            //position
            xe = xc.Element("position");
            if (xe != null)
            {
                var xn = xe.Element("title");
                if (xn != null)
                    PositionTitle = xn.Value.Trim();
            }
            //company
            xe = xc.Element("company");
            if (xe != null)
            {
                var xn = xe.Element("name");
                if (xn != null)
                    CompanyName = xn.Value.Trim();
            }
            //site-job-request
            xe = xc.Element("site-job-request");
            if (xe != null)
            {
                var xn = xe.Element("url");
                if (xn != null)
                    SiteJobRequestUrl = xn.Value.Trim();
            }
        }
 internal override void BuildUpdate(XElement xp)
 {
     SetBaseValues(xp);
     //update-content
     var xc = xp.Element("update-content");
     if (xc == null) return;
     ////company-update
     //xc = xc.Element("company-update");
     //if (xc == null) return;
     var xe = xc.Element("company");
     if (xe != null)
         Company = Utils.BuildCompanyBase(xe);
     //company-profile-update
     xc = xc.Element("company-profile-update");
     if (xc == null) return;
     //editor
     xe = xc.Element("editor");
     if (xe != null)
         Editor = Utils.BuildPerson(new LinkedInPerson(), xe);
     //action
     xe = xc.Element("action");
     if (xe != null)
     {
         //code
         var xn = xe.Element("code");
         if (xn != null)
             ActionCode = xn.Value.Trim();
     }
     //profile-field
     xe = xc.Element("profile-field");
     if (xe != null)
     {
         //code
         var xn = xe.Element("code");
         if (xn != null)
             ProfileFieldCode = xn.Value.Trim();
     }
 }