using System;
using System.Collections.Generic;
using System.Text;
namespace FastReport.Cloud.OAuth
{
///
/// Represents the service provider.
///
public class ServiceContext
{
#region Fields
private string requestTokenUrl;
private string userAuthorizationUrl;
private string callbackUrl;
private string accessTokenUrl;
#endregion // Fields
#region Properties
///
/// Gets the request token URL.
///
public string RequestTokenUrl
{
get { return requestTokenUrl; }
}
///
/// Gets the user authorization URL.
///
public string UserAuthorizationUrl
{
get { return userAuthorizationUrl; }
}
///
/// Gets the callback URL.
///
public string CallbackUrl
{
get { return callbackUrl; }
}
///
/// Gets the access token URL.
///
public string AccessTokenUrl
{
get { return accessTokenUrl; }
}
#endregion // Properties
#region Constructors
///
/// Initializes a new instance of the class with a specified parameters.
///
/// The request token URL.
/// The user authorization URL.
/// The callback URL.
/// The access token URL.
public ServiceContext(string requestTokenUrl, string userAuthorizationUrl, string callbackUrl, string accessTokenUrl)
{
this.requestTokenUrl = requestTokenUrl;
this.userAuthorizationUrl = userAuthorizationUrl;
this.callbackUrl = callbackUrl;
this.accessTokenUrl = accessTokenUrl;
}
#endregion // Constructors
}
}