DocSpace-client/thirdparty/AppLimit.CloudComputing.SharpBox/StorageProvider/GoogleDocs/GoogleDocsToken.cs
2020-03-13 16:40:58 +03:00

28 lines
967 B
C#

using System;
using AppLimit.CloudComputing.SharpBox.Common.Net.oAuth.Token;
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);
}
}
}