protected void executeButton_Click(object sender, EventArgs e) { ILinkedInService service = _linkedInService; try { Updates updates = null; if (scopeCheckBox.Checked) { updates = service.GetNetworkUpdates(NetworkUpdateTypes.Recommendations, 20, 0, new DateTime(2009, 1, 1), DateTime.MinValue, true, Scope.Self); } else { updates = service.GetNetworkUpdates(NetworkUpdateTypes.Recommendations, 20, 0, DateTime.MinValue, DateTime.MinValue, true); } console.Text += Utilities.SerializeToXml <Updates>(updates); } catch (LinkedInException lie) { console.Text += lie.Message; } }
protected void executeButton_Click(object sender, EventArgs e) { ILinkedInService service = _linkedInService; try { Updates updates = null; if (scopeCheckBox.Checked) { updates = service.GetNetworkUpdates(NetworkUpdateTypes.All, Scope.Self); } else { updates = service.GetNetworkUpdates(NetworkUpdateTypes.All); } console.Text = Utilities.SerializeToXml <Updates>(updates); } catch (LinkedInException lie) { console.Text += lie.Message; } }
protected void Page_Load(object sender, EventArgs e) { ILinkedInService service = _linkedInService; try { Updates updates = service.GetNetworkUpdates(NetworkUpdateTypes.ConnectionUpdate, 20, 1, DateTime.MinValue, DateTime.MinValue); console.Text += Utilities.SerializeToXml <Updates>(updates); } catch (LinkedInException lie) { console.Text += lie.Message; } }
protected void Page_Load(object sender, EventArgs e) { ILinkedInService service = _linkedInService; try { // Returns an error Updates updates = service.GetNetworkUpdates(NetworkUpdateTypes.ConnectionUpdate | NetworkUpdateTypes.ChangedAPicture, 20, 0, DateTime.Now.AddDays(-1), DateTime.Now); console.Text += Utilities.SerializeToXml <Updates>(updates); } catch (LinkedInException lie) { console.Text += lie.Message; } }