2020-04-23 09:38:50 +00:00
|
|
|
|
using AppLimit.CloudComputing.SharpBox.Common.Net.oAuth.Token;
|
2020-03-13 13:40:58 +00:00
|
|
|
|
|
|
|
|
|
namespace AppLimit.CloudComputing.SharpBox.StorageProvider.GoogleDocs
|
|
|
|
|
{
|
|
|
|
|
internal class GoogleDocsToken : OAuthToken, ICloudStorageAccessToken
|
|
|
|
|
{
|
|
|
|
|
public string ConsumerKey { get; private set; }
|
|
|
|
|
public string ConsumerSecret { get; private set; }
|
|
|
|
|
|
|
|
|
|
public GoogleDocsToken(OAuthToken token, string consumerKey, string consumerSecret)
|
|
|
|
|
: this(token.TokenKey, token.TokenSecret, consumerKey, consumerSecret)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public GoogleDocsToken(string tokenKey, string tokenSecret, string consumerKey, string consumerSecret)
|
|
|
|
|
: base(tokenKey, tokenSecret)
|
|
|
|
|
{
|
|
|
|
|
ConsumerKey = consumerKey;
|
|
|
|
|
ConsumerSecret = consumerSecret;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return string.Format("{0}+{1}", TokenKey, TokenSecret);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|