summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:41:16 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:41:16 -0800
commit475b47ab8eaa23e064763b05539fa750accebfdc (patch)
tree785a8c82ec1d8884fc51c201c23040923cbfa6fc /src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs
parent74b6b4efd2be2680e3067f716829b0c9385ceebe (diff)
parent1fdcca1a8019189237e86907f220307e2ccd61c9 (diff)
downloadDotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.zip
DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.gz
DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.bz2
Merge branch 'OAuthSimple' into httpclient
Diffstat (limited to 'src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs')
-rw-r--r--src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs
new file mode 100644
index 0000000..20e3ec4
--- /dev/null
+++ b/src/DotNetOpenAuth.OAuth.Consumer/OAuth/AccessToken.cs
@@ -0,0 +1,39 @@
+//-----------------------------------------------------------------------
+// <copyright file="AccessToken.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.OAuth {
+ /// <summary>
+ /// An OAuth 1.0 access token and secret.
+ /// </summary>
+ public struct AccessToken {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="AccessToken"/> struct.
+ /// </summary>
+ /// <param name="token">The token.</param>
+ /// <param name="secret">The secret.</param>
+ public AccessToken(string token, string secret)
+ : this() {
+ this.Token = token;
+ this.Secret = secret;
+ }
+
+ /// <summary>
+ /// Gets or sets the token.
+ /// </summary>
+ /// <value>
+ /// The token.
+ /// </value>
+ public string Token { get; set; }
+
+ /// <summary>
+ /// Gets or sets the token secret.
+ /// </summary>
+ /// <value>
+ /// The secret.
+ /// </value>
+ public string Secret { get; set; }
+ }
+}