summaryrefslogtreecommitdiffstats
path: root/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive
diff options
context:
space:
mode:
Diffstat (limited to 'samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive')
-rw-r--r--samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveClient.cs1
-rw-r--r--samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveGraph.cs70
2 files changed, 35 insertions, 36 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveClient.cs b/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveClient.cs
index 24322af..7f7af18 100644
--- a/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveClient.cs
+++ b/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveClient.cs
@@ -45,7 +45,6 @@ namespace DotNetOpenAuth.ApplicationBlock {
// &type=small 96x96
// &type=medium 96x96
// &type=large 448x448
-
windowsLiveGraph.AvatarUrl = new Uri("https://apis.live.net/v5.0/me/picture?access_token=" + Uri.EscapeDataString(authState.AccessToken));
return windowsLiveGraph;
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveGraph.cs b/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveGraph.cs
index 38095a5..8b4e1f8 100644
--- a/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveGraph.cs
+++ b/samples/DotNetOpenAuth.ApplicationBlock/OAuth2/WindowsLive/WindowsLiveGraph.cs
@@ -20,91 +20,91 @@ namespace DotNetOpenAuth.ApplicationBlock {
private static DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(WindowsLiveGraph));
/// <summary>
- /// The user's ID.
+ /// Gets or sets the user's ID.
/// </summary>
[DataMember(Name = "id", IsRequired = true)]
public string Id { get; set; }
/// <summary>
- /// The user's full name.
+ /// Gets or sets the user's full name.
/// </summary>
[DataMember(Name = "name", IsRequired = true)]
public string Name { get; set; }
/// <summary>
- /// The user's first name.
+ /// Gets or sets the user's first name.
/// </summary>
[DataMember(Name = "first_name")]
public string FirstName { get; set; }
/// <summary>
- /// The user's last name.
+ /// Gets or sets the user's last name.
/// </summary>
[DataMember(Name = "last_name")]
public string LastName { get; set; }
/// <summary>
- /// The URL of the user's profile page.
+ /// Gets or sets the URL of the user's profile page.
/// </summary>
[DataMember(Name = "link")]
public Uri Link { get; set; }
/// <summary>
- /// The day of the user's birth date, or null if no birth date is specified.
+ /// Gets or sets the day of the user's birth date, or null if no birth date is specified.
/// </summary>
[DataMember(Name = "birth_day")]
public int? BirthDay { get; set; }
/// <summary>
- /// The month of the user's birth date, or null if no birth date is specified.
+ /// Gets or sets the month of the user's birth date, or null if no birth date is specified.
/// </summary>
[DataMember(Name = "birth_month")]
public int? BirthMonth { get; set; }
/// <summary>
- /// The year of the user's birth date, or null if no birth date is specified.
+ /// Gets or sets the year of the user's birth date, or null if no birth date is specified.
/// </summary>
[DataMember(Name = "birth_year")]
public int? BirthYear { get; set; }
/// <summary>
- /// An array that contains the user's work info.
+ /// Gets or sets an array that contains the user's work info.
/// </summary>
[DataMember(Name = "work")]
public WindowsLiveWorkProfile[] Work { get; set; }
/// <summary>
- /// The user's gender. Valid values are "male", "female", or null if the user's gender is not specified.
+ /// Gets or sets the user's gender. Valid values are "male", "female", or null if the user's gender is not specified.
/// </summary>
[DataMember(Name = "gender")]
public string Gender { get; set; }
/// <summary>
- /// The user's email addresses.
+ /// Gets or sets the user's email addresses.
/// </summary>
[DataMember(Name = "emails")]
public WindowsLiveEmails Emails { get; set; }
/// <summary>
- /// The user's postal addresses.
+ /// Gets or sets the user's postal addresses.
/// </summary>
[DataMember(Name = "addresses")]
public WindowsLiveAddresses Addresses { get; set; }
/// <summary>
- /// The user's phone numbers.
+ /// Gets or sets the user's phone numbers.
/// </summary>
[DataMember(Name = "phones")]
public WindowsLivePhones Phones { get; set; }
/// <summary>
- /// The user's locale code.
+ /// Gets or sets the user's locale code.
/// </summary>
[DataMember(Name = "locale", IsRequired = true)]
public string Locale { get; set; }
/// <summary>
- /// The time, in ISO 8601 format, at which the user last updated the object.
+ /// Gets or sets the time, in ISO 8601 format, at which the user last updated the object.
/// </summary>
[DataMember(Name = "updated_time")]
public string UpdatedTime { get; set; }
@@ -158,31 +158,31 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLiveEmails {
/// <summary>
- /// The user's preferred email address, or null if one is not specified.
+ /// Gets or sets the user's preferred email address, or null if one is not specified.
/// </summary>
[DataMember(Name = "preferred")]
public string Preferred { get; set; }
/// <summary>
- /// The email address that is associated with the account.
+ /// Gets or sets the email address that is associated with the account.
/// </summary>
[DataMember(Name = "account", IsRequired = true)]
public string Account { get; set; }
/// <summary>
- /// The user's personal email address, or null if one is not specified.
+ /// Gets or sets the user's personal email address, or null if one is not specified.
/// </summary>
[DataMember(Name = "personal")]
public string Personal { get; set; }
/// <summary>
- /// The user's business email address, or null if one is not specified.
+ /// Gets or sets the user's business email address, or null if one is not specified.
/// </summary>
[DataMember(Name = "business")]
public string Business { get; set; }
/// <summary>
- /// The user's "alternate" email address, or null if one is not specified.
+ /// Gets or sets the user's "alternate" email address, or null if one is not specified.
/// </summary>
[DataMember(Name = "other")]
public string Other { get; set; }
@@ -191,19 +191,19 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLivePhones {
/// <summary>
- /// The user's personal phone number, or null if one is not specified.
+ /// Gets or sets the user's personal phone number, or null if one is not specified.
/// </summary>
[DataMember(Name = "personal")]
public string Personal { get; set; }
/// <summary>
- /// The user's business phone number, or null if one is not specified.
+ /// Gets or sets the user's business phone number, or null if one is not specified.
/// </summary>
[DataMember(Name = "business")]
public string Business { get; set; }
/// <summary>
- /// The user's mobile phone number, or null if one is not specified.
+ /// Gets or sets the user's mobile phone number, or null if one is not specified.
/// </summary>
[DataMember(Name = "mobile")]
public string Mobile { get; set; }
@@ -212,37 +212,37 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLiveAddress {
/// <summary>
- /// The street address, or null if one is not specified.
+ /// Gets or sets the street address, or null if one is not specified.
/// </summary>
[DataMember(Name = "street")]
public string Street { get; set; }
/// <summary>
- /// The second line of the street address, or null if one is not specified.
+ /// Gets or sets the second line of the street address, or null if one is not specified.
/// </summary>
[DataMember(Name = "street_2")]
public string Street2 { get; set; }
/// <summary>
- /// The city of the address, or null if one is not specified.
+ /// Gets or sets the city of the address, or null if one is not specified.
/// </summary>
[DataMember(Name = "city")]
public string City { get; set; }
/// <summary>
- /// The state of the address, or null if one is not specified.
+ /// Gets or sets the state of the address, or null if one is not specified.
/// </summary>
[DataMember(Name = "state")]
public string State { get; set; }
/// <summary>
- /// The postal code of the address, or null if one is not specified.
+ /// Gets or sets the postal code of the address, or null if one is not specified.
/// </summary>
[DataMember(Name = "postal_code")]
public string PostalCode { get; set; }
/// <summary>
- /// The region of the address, or null if one is not specified.
+ /// Gets or sets the region of the address, or null if one is not specified.
/// </summary>
[DataMember(Name = "region")]
public string Region { get; set; }
@@ -251,13 +251,13 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLiveAddresses {
/// <summary>
- /// The user's personal postal address.
+ /// Gets or sets the user's personal postal address.
/// </summary>
[DataMember(Name = "personal")]
public WindowsLiveAddress Personal { get; set; }
/// <summary>
- /// The user's business postal address.
+ /// Gets or sets the user's business postal address.
/// </summary>
[DataMember(Name = "business")]
public WindowsLiveAddress Business { get; set; }
@@ -266,13 +266,13 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLiveWorkProfile {
/// <summary>
- /// Info about the user's employer.
+ /// Gets or sets info about the user's employer.
/// </summary>
[DataMember(Name = "employer")]
public WindowsLiveEmployer Employer { get; set; }
/// <summary>
- /// Info about the user's employer.
+ /// Gets or sets info about the user's employer.
/// </summary>
[DataMember(Name = "position")]
public WindowsLivePosition Position { get; set; }
@@ -281,7 +281,7 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLiveEmployer {
/// <summary>
- /// The name of the user's employer, or null if the employer's name is not specified.
+ /// Gets or sets the name of the user's employer, or null if the employer's name is not specified.
/// </summary>
[DataMember(Name = "name")]
public string Name { get; set; }
@@ -290,7 +290,7 @@ namespace DotNetOpenAuth.ApplicationBlock {
[DataContract]
public class WindowsLivePosition {
/// <summary>
- /// The name of the user's work position, or null if the name of the work position is not specified.
+ /// Gets or sets the name of the user's work position, or null if the name of the work position is not specified.
/// </summary>
[DataMember(Name = "name")]
public string Name { get; set; }