상속: 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";
 }
 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";
 }
        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);
     }
 }