//----------------------------------------------------------------------- // // Copyright (c) Andrew Arnott. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOAuth.Messages { using System; using DotNetOAuth.Messaging; /// /// A message attached to a request for protected resources that provides the necessary /// credentials to be granted access to those resources. /// internal class AccessProtectedResourcesMessage : SignedMessageBase { /// /// Initializes a new instance of the class. /// /// The URI of the Service Provider endpoint to send this message to. internal AccessProtectedResourcesMessage(Uri serviceProvider) : base(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 Access Token. /// [MessagePart(Name = "oauth_token", IsRequired = true)] public string AccessToken { get; set; } } }