Class GmailClient

GmailClient class

Base class for Gmail client

public abstract class GmailClient : IBaseGmailClient

Properties

NameDescription
virtual AccessToken { get; set; }Gets or sets OAuth 2.0 access token In case if refresh token is set, access token is generated automatically.
virtual DefaultEmail { get; }Gets or sets default email address
virtual Proxy { get; set; }Gets or sets the proxy.
virtual Timeout { get; set; }Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).
static DefaultTimeout { get; set; }Gets or sets the default timeout value for ActiveSync client instances The default value is 100,000 milliseconds (100 seconds).

Methods

NameDescription
virtual Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
virtual RefreshToken()Refresh access token
static GetInstance(string, string)Gets instance of Gmail client
static GetInstance(string, IWebProxy, string)Gets instance of Gmail client
static GetInstance(string, string, string, string)Gets instance of Gmail client
static GetInstance(string, string, string, IWebProxy, string)Gets instance of Gmail client

See Also