//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.OAuth { using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; /// /// Captures the data that is returned from a request for an access token. /// public class AccessTokenResponse { /// /// Initializes a new instance of the class. /// /// The access token. /// The token secret. /// Any extra data that came with the response. public AccessTokenResponse(string accessToken, string tokenSecret, NameValueCollection extraData) { this.AccessToken = new AccessToken(accessToken, tokenSecret); this.ExtraData = extraData; } /// /// Gets or sets the access token. /// /// /// The access token. /// public AccessToken AccessToken { get; set; } /// /// Gets or sets any extra data that came with the response.. /// public NameValueCollection ExtraData { get; set; } } }