Class GoogleDriveStorageClient
Google Drive cloud storage client.
Inherited Members
Namespace: FastReport.Cloud.StorageClient.GoogleDrive
Assembly: FastReport.dll
Syntax
public class GoogleDriveStorageClient : CloudStorageClient
Constructors
GoogleDriveStorageClient()
Initializes a new instance of the GoogleDriveStorageClient class.
Declaration
public GoogleDriveStorageClient()
GoogleDriveStorageClient(ClientInfo)
Initializes a new instance of the GoogleDriveStorageClient class.
Declaration
public GoogleDriveStorageClient(ClientInfo clientInfo)
Parameters
Type | Name | Description |
---|---|---|
ClientInfo | clientInfo | The storage client info. |
GoogleDriveStorageClient(String, String)
Initializes a new instance of the GoogleDriveStorageClient class.
Declaration
public GoogleDriveStorageClient(string clientId, string clientSecret)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientId | Client ID. |
System.String | clientSecret | Client Secret. |
Properties
AccessToken
Gets or sets the access token.
Declaration
public string AccessToken { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AuthCode
Gets or sets the authorization code.
Declaration
public string AuthCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ClientInfo
Gets or sets the client info.
Declaration
public ClientInfo ClientInfo { get; set; }
Property Value
Type | Description |
---|---|
ClientInfo |
Methods
GetAccessToken()
Gets the access token.
Declaration
public string GetAccessToken()
Returns
Type | Description |
---|---|
System.String | The access token string. |
GetAuthorizationUrl()
Gets the authorization URL.
Declaration
public string GetAuthorizationUrl()
Returns
Type | Description |
---|---|
System.String | The authorization URL stirng. |
SaveMemoryStream(MemoryStream)
Saves a memory stream to cloud.
Declaration
protected override void SaveMemoryStream(MemoryStream ms)
Parameters
Type | Name | Description |
---|---|---|
System.IO.MemoryStream | ms | The memory stream that should be saved. |