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