diff options
Diffstat (limited to 'src/DotNetOpenAuth.Web/Clients/OAuth2/WindowsLiveUserData.cs')
-rw-r--r-- | src/DotNetOpenAuth.Web/Clients/OAuth2/WindowsLiveUserData.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.Web/Clients/OAuth2/WindowsLiveUserData.cs b/src/DotNetOpenAuth.Web/Clients/OAuth2/WindowsLiveUserData.cs new file mode 100644 index 0000000..cc6fa27 --- /dev/null +++ b/src/DotNetOpenAuth.Web/Clients/OAuth2/WindowsLiveUserData.cs @@ -0,0 +1,34 @@ +using System; +using System.Runtime.Serialization; + +namespace DotNetOpenAuth.Web.Clients +{ + /// <summary> + /// Contains data of a Windows Live user. + /// </summary> + /// <remarks> + /// Technically, this class doesn't need to be public, but because we want to make it serializable + /// in medium trust, it has to be public. + /// </remarks> + [DataContract] + public class WindowsLiveUserData + { + [DataMember(Name = "id")] + public string Id { get; set; } + + [DataMember(Name = "name")] + public string Name { get; set; } + + [DataMember(Name = "link")] + public Uri Link { get; set; } + + [DataMember(Name = "gender")] + public string Gender { get; set; } + + [DataMember(Name = "first_name")] + public string FirstName { get; set; } + + [DataMember(Name = "last_name")] + public string LastName { get; set; } + } +} |