gmail  v1
Classes | Public Member Functions | List of all members
google_gmail_api::GmailService::UsersResource Class Reference

#include <gmail_service.h>

Classes

class  DraftsResource
 
class  HistoryResource
 
class  LabelsResource
 
class  MessagesResource
 
class  SettingsResource
 
class  ThreadsResource
 

Public Member Functions

 UsersResource (GmailService *service)
 
 ~UsersResource ()
 
const DraftsResourceget_drafts () const
 
const HistoryResourceget_history () const
 
const LabelsResourceget_labels () const
 
const MessagesResourceget_messages () const
 
const SettingsResourceget_settings () const
 
const ThreadsResourceget_threads () const
 
UsersResource_GetProfileMethodNewGetProfileMethod (client::AuthorizationCredential *_credential_, const absl::string_view &user_id) const
 
UsersResource_StopMethodNewStopMethod (client::AuthorizationCredential *_credential_, const absl::string_view &user_id) const
 
UsersResource_WatchMethodNewWatchMethod (client::AuthorizationCredential *_credential_, const absl::string_view &user_id, const WatchRequest &_content_) const
 

Detailed Description

Acts as message factory for accessing data.

Constructor & Destructor Documentation

◆ UsersResource()

google_gmail_api::GmailService::UsersResource::UsersResource ( GmailService service)
explicit

Standard constructor.

Parameters
[in]serviceThe service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on.

◆ ~UsersResource()

google_gmail_api::GmailService::UsersResource::~UsersResource ( )
inline

Standard destructor.

Member Function Documentation

◆ get_drafts()

const DraftsResource& google_gmail_api::GmailService::UsersResource::get_drafts ( ) const
inline

Gets the drafts resource method factory.

Returns
DraftsResource for creating methods.

◆ get_history()

const HistoryResource& google_gmail_api::GmailService::UsersResource::get_history ( ) const
inline

Gets the history resource method factory.

Returns
HistoryResource for creating methods.

◆ get_labels()

const LabelsResource& google_gmail_api::GmailService::UsersResource::get_labels ( ) const
inline

Gets the labels resource method factory.

Returns
LabelsResource for creating methods.

◆ get_messages()

const MessagesResource& google_gmail_api::GmailService::UsersResource::get_messages ( ) const
inline

Gets the messages resource method factory.

Returns
MessagesResource for creating methods.

◆ get_settings()

const SettingsResource& google_gmail_api::GmailService::UsersResource::get_settings ( ) const
inline

Gets the settings resource method factory.

Returns
SettingsResource for creating methods.

◆ get_threads()

const ThreadsResource& google_gmail_api::GmailService::UsersResource::get_threads ( ) const
inline

Gets the threads resource method factory.

Returns
ThreadsResource for creating methods.

◆ NewGetProfileMethod()

UsersResource_GetProfileMethod * google_gmail_api::GmailService::UsersResource::NewGetProfileMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  user_id 
) const

Creates a new UsersResource_GetProfileMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]user_idThe user's email address. The special value me can be used to indicate the authenticated user.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewStopMethod()

UsersResource_StopMethod * google_gmail_api::GmailService::UsersResource::NewStopMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  user_id 
) const

Creates a new UsersResource_StopMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]user_idThe user's email address. The special value me can be used to indicate the authenticated user.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

◆ NewWatchMethod()

UsersResource_WatchMethod * google_gmail_api::GmailService::UsersResource::NewWatchMethod ( client::AuthorizationCredential *  _credential_,
const absl::string_view &  user_id,
const WatchRequest _content_ 
) const

Creates a new UsersResource_WatchMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]user_idThe user's email address. The special value me can be used to indicate the authenticated user.
[in]<em>content</em>The data object to watch.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

The documentation for this class was generated from the following files: