Inheritance: SocialProfileRecord
コード例 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="source">Update node</param>
 public LinkedinStatusUpdate(XElement source)
 {
     StatusID = source.Element("update-key").Value;
     this.CreatedAt = ConvertUnixTimestamp(source.Element("timestamp").Value);
     XElement authorNode = source
         .Element("update-content")
         .Element("person");
     User = new LinkedinPerson(authorNode);
     if(authorNode.Element("current-status") != null)
         Text = authorNode.Element("current-status").Value;
     SocialNetwork = "LinkedIn";
 }
コード例 #2
0
 public LinkedinConnectionUpdate(XElement source)
 {
     StatusID = source.Element("update-key").Value;
     this.CreatedAt = ConvertUnixTimestamp(source.Element("timestamp").Value);
     XElement authorNode = source
         .Element("update-content")
         .Element("person");
     User = new LinkedinPerson(authorNode);
     Connection = new LinkedinPerson(authorNode.Element("connections").Element("person"));
     Text = String.Format("{0} is now connected with {1}",
         User.ToString(), Connection.ToString());
     SocialNetwork = "LinkedIn";
 }
コード例 #3
0
        public LinkedinConnectionUpdate(XElement source)
        {
            StatusID       = source.Element("update-key").Value;
            this.CreatedAt = ConvertUnixTimestamp(source.Element("timestamp").Value);
            XElement authorNode = source
                                  .Element("update-content")
                                  .Element("person");

            User       = new LinkedinPerson(authorNode);
            Connection = new LinkedinPerson(authorNode.Element("connections").Element("person"));
            Text       = String.Format("{0} is now connected with {1}",
                                       User.ToString(), Connection.ToString());
            SocialNetwork = "LinkedIn";
        }
コード例 #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="source">Update node</param>
        public LinkedinStatusUpdate(XElement source)
        {
            StatusID       = source.Element("update-key").Value;
            this.CreatedAt = ConvertUnixTimestamp(source.Element("timestamp").Value);
            XElement authorNode = source
                                  .Element("update-content")
                                  .Element("person");

            User = new LinkedinPerson(authorNode);
            if (authorNode.Element("current-status") != null)
            {
                Text = authorNode.Element("current-status").Value;
            }
            SocialNetwork = "LinkedIn";
        }
コード例 #5
0
        private void PopulatePersonUpdate(XElement personUpdateNode)
        {
            String         actionCode = personUpdateNode.Element("action").Element("code").Value;
            LinkedinPerson person     = new LinkedinPerson(personUpdateNode.Element("person"));

            if (actionCode == "joined")
            {
                Text = String.Format(Properties.Resources.LinkedProcessor_NewHire,
                                     person.ToString(), personUpdateNode.Element("new-position").Element("title").Value);
            }
            else if (actionCode == "changed-position")
            {
                Text = String.Format(Properties.Resources.LinkedProcessor_ChangedPosition,
                                     person.ToString(), personUpdateNode.Element("new-position").Element("title").Value);
            }
        }
コード例 #6
0
 private void PopulatePersonUpdate(XElement personUpdateNode)
 {
     String actionCode = personUpdateNode.Element("action").Element("code").Value;
     LinkedinPerson person = new LinkedinPerson(personUpdateNode.Element("person"));
     if (actionCode == "joined")
     {
         Text = String.Format(Properties.Resources.LinkedProcessor_NewHire,
             person.ToString(), personUpdateNode.Element("new-position").Element("title").Value);
     }
     else if (actionCode == "changed-position")
     {
         Text = String.Format(Properties.Resources.LinkedProcessor_ChangedPosition,
             person.ToString(), personUpdateNode.Element("new-position").Element("title").Value);
     }
 }