//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messages { using System; using DotNetOAuth.Messaging; /// /// A direct message sent by the Consumer to exchange a Request Token for an Access Token /// and Token Secret. /// internal class RequestAccessTokenMessage : MessageBase { /// /// Initializes a new instance of the class. /// /// The URI of the Service Provider endpoint to send this message to. internal RequestAccessTokenMessage(Uri serviceProvider) : base(MessageProtection.All, MessageTransport.Direct, serviceProvider) { } /// /// Gets or sets the Consumer Key. /// [MessagePart(Name = "oauth_consumer_key", IsRequired = true)] public string ConsumerKey { get; set; } /// /// Gets or sets the Request Token. /// [MessagePart(Name = "oauth_token", IsRequired = true)] public string RequestToken { get; set; } /// /// Gets or sets the protocol version used in the construction of this message. /// [MessagePart(Name = "oauth_version", IsRequired = false)] public string Version { get { return this.VersionString; } set { this.VersionString = value; } } } }