//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messages { using DotNetOAuth.Messaging; /// /// A direct message sent from Service Provider to Consumer in response to /// a Consumer's request. /// public class GrantAccessTokenMessage : MessageBase { /// /// Initializes a new instance of the class. /// internal GrantAccessTokenMessage() : base(MessageProtection.None, MessageTransport.Direct) { } /// /// Gets or sets the Access Token assigned by the Service Provider. /// [MessagePart(Name = "oauth_token", IsRequired = true)] public string AccessToken { get; set; } /// /// Gets or sets the Token Secret. /// [MessagePart(Name = "oauth_token_secret", IsRequired = true)] internal string TokenSecret { get; set; } } }