tasks  v1
Classes | Public Member Functions | Static Public Member Functions | List of all members
google_tasks_api::Task Class Reference

#include <task.h>

Inheritance diagram for google_tasks_api::Task:

Classes

class  TaskLinks
 

Public Member Functions

 Task (const Json::Value &storage)
 
 Task (Json::Value *storage)
 
virtual ~Task ()
 
const StringPiece GetTypeName () const
 
bool has_completed () const
 
void clear_completed ()
 
client::DateTime get_completed () const
 
void set_completed (client::DateTime value)
 
bool has_deleted () const
 
void clear_deleted ()
 
bool get_deleted () const
 
void set_deleted (bool value)
 
bool has_due () const
 
void clear_due ()
 
client::DateTime get_due () const
 
void set_due (client::DateTime value)
 
bool has_etag () const
 
void clear_etag ()
 
const StringPiece get_etag () const
 
void set_etag (const StringPiece &value)
 
bool has_hidden () const
 
void clear_hidden ()
 
bool get_hidden () const
 
void set_hidden (bool value)
 
bool has_id () const
 
void clear_id ()
 
const StringPiece get_id () const
 
void set_id (const StringPiece &value)
 
bool has_kind () const
 
void clear_kind ()
 
const StringPiece get_kind () const
 
void set_kind (const StringPiece &value)
 
bool has_links () const
 
void clear_links ()
 
const client::JsonCppArray< TaskLinksget_links () const
 
client::JsonCppArray< TaskLinksmutable_links ()
 
bool has_notes () const
 
void clear_notes ()
 
const StringPiece get_notes () const
 
void set_notes (const StringPiece &value)
 
bool has_parent () const
 
void clear_parent ()
 
const StringPiece get_parent () const
 
void set_parent (const StringPiece &value)
 
bool has_position () const
 
void clear_position ()
 
const StringPiece get_position () const
 
void set_position (const StringPiece &value)
 
bool has_self_link () const
 
void clear_self_link ()
 
const StringPiece get_self_link () const
 
void set_self_link (const StringPiece &value)
 
bool has_status () const
 
void clear_status ()
 
const StringPiece get_status () const
 
void set_status (const StringPiece &value)
 
bool has_title () const
 
void clear_title ()
 
const StringPiece get_title () const
 
void set_title (const StringPiece &value)
 
bool has_updated () const
 
void clear_updated ()
 
client::DateTime get_updated () const
 
void set_updated (client::DateTime value)
 

Static Public Member Functions

static TaskNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ Task() [1/2]

google_tasks_api::Task::Task ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Task() [2/2]

google_tasks_api::Task::Task ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Task()

google_tasks_api::Task::~Task ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_completed()

void google_tasks_api::Task::clear_completed ( )
inline

Clears the 'completed' attribute.

◆ clear_deleted()

void google_tasks_api::Task::clear_deleted ( )
inline

Clears the 'deleted' attribute.

◆ clear_due()

void google_tasks_api::Task::clear_due ( )
inline

Clears the 'due' attribute.

◆ clear_etag()

void google_tasks_api::Task::clear_etag ( )
inline

Clears the 'etag' attribute.

◆ clear_hidden()

void google_tasks_api::Task::clear_hidden ( )
inline

Clears the 'hidden' attribute.

◆ clear_id()

void google_tasks_api::Task::clear_id ( )
inline

Clears the 'id' attribute.

◆ clear_kind()

void google_tasks_api::Task::clear_kind ( )
inline

Clears the 'kind' attribute.

◆ clear_links()

void google_tasks_api::Task::clear_links ( )
inline

Clears the 'links' attribute.

◆ clear_notes()

void google_tasks_api::Task::clear_notes ( )
inline

Clears the 'notes' attribute.

◆ clear_parent()

void google_tasks_api::Task::clear_parent ( )
inline

Clears the 'parent' attribute.

◆ clear_position()

void google_tasks_api::Task::clear_position ( )
inline

Clears the 'position' attribute.

◆ clear_self_link()

void google_tasks_api::Task::clear_self_link ( )
inline

Clears the 'selfLink' attribute.

◆ clear_status()

void google_tasks_api::Task::clear_status ( )
inline

Clears the 'status' attribute.

◆ clear_title()

void google_tasks_api::Task::clear_title ( )
inline

Clears the 'title' attribute.

◆ clear_updated()

void google_tasks_api::Task::clear_updated ( )
inline

Clears the 'updated' attribute.

◆ get_completed()

client::DateTime google_tasks_api::Task::get_completed ( ) const
inline

Get the value of the 'completed' attribute.

◆ get_deleted()

bool google_tasks_api::Task::get_deleted ( ) const
inline

Get the value of the 'deleted' attribute.

◆ get_due()

client::DateTime google_tasks_api::Task::get_due ( ) const
inline

Get the value of the 'due' attribute.

◆ get_etag()

const StringPiece google_tasks_api::Task::get_etag ( ) const
inline

Get the value of the 'etag' attribute.

◆ get_hidden()

bool google_tasks_api::Task::get_hidden ( ) const
inline

Get the value of the 'hidden' attribute.

◆ get_id()

const StringPiece google_tasks_api::Task::get_id ( ) const
inline

Get the value of the 'id' attribute.

◆ get_kind()

const StringPiece google_tasks_api::Task::get_kind ( ) const
inline

Get the value of the 'kind' attribute.

◆ get_links()

const client::JsonCppArray<TaskLinks > google_tasks_api::Task::get_links ( ) const
inline

Get a reference to the value of the 'links' attribute.

◆ get_notes()

const StringPiece google_tasks_api::Task::get_notes ( ) const
inline

Get the value of the 'notes' attribute.

◆ get_parent()

const StringPiece google_tasks_api::Task::get_parent ( ) const
inline

Get the value of the 'parent' attribute.

◆ get_position()

const StringPiece google_tasks_api::Task::get_position ( ) const
inline

Get the value of the 'position' attribute.

◆ get_self_link()

const StringPiece google_tasks_api::Task::get_self_link ( ) const
inline

Get the value of the 'selfLink' attribute.

◆ get_status()

const StringPiece google_tasks_api::Task::get_status ( ) const
inline

Get the value of the 'status' attribute.

◆ get_title()

const StringPiece google_tasks_api::Task::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ get_updated()

client::DateTime google_tasks_api::Task::get_updated ( ) const
inline

Get the value of the 'updated' attribute.

◆ GetTypeName()

const StringPiece google_tasks_api::Task::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_tasks_api::Task

◆ has_completed()

bool google_tasks_api::Task::has_completed ( ) const
inline

Determine if the 'completed' attribute was set.

Returns
true if the 'completed' attribute was set.

◆ has_deleted()

bool google_tasks_api::Task::has_deleted ( ) const
inline

Determine if the 'deleted' attribute was set.

Returns
true if the 'deleted' attribute was set.

◆ has_due()

bool google_tasks_api::Task::has_due ( ) const
inline

Determine if the 'due' attribute was set.

Returns
true if the 'due' attribute was set.

◆ has_etag()

bool google_tasks_api::Task::has_etag ( ) const
inline

Determine if the 'etag' attribute was set.

Returns
true if the 'etag' attribute was set.

◆ has_hidden()

bool google_tasks_api::Task::has_hidden ( ) const
inline

Determine if the 'hidden' attribute was set.

Returns
true if the 'hidden' attribute was set.

◆ has_id()

bool google_tasks_api::Task::has_id ( ) const
inline

Determine if the 'id' attribute was set.

Returns
true if the 'id' attribute was set.

◆ has_kind()

bool google_tasks_api::Task::has_kind ( ) const
inline

Determine if the 'kind' attribute was set.

Returns
true if the 'kind' attribute was set.

◆ has_links()

bool google_tasks_api::Task::has_links ( ) const
inline

Determine if the 'links' attribute was set.

Returns
true if the 'links' attribute was set.

◆ has_notes()

bool google_tasks_api::Task::has_notes ( ) const
inline

Determine if the 'notes' attribute was set.

Returns
true if the 'notes' attribute was set.

◆ has_parent()

bool google_tasks_api::Task::has_parent ( ) const
inline

Determine if the 'parent' attribute was set.

Returns
true if the 'parent' attribute was set.

◆ has_position()

bool google_tasks_api::Task::has_position ( ) const
inline

Determine if the 'position' attribute was set.

Returns
true if the 'position' attribute was set.

◆ has_self_link()

bool google_tasks_api::Task::has_self_link ( ) const
inline

Determine if the 'selfLink' attribute was set.

Returns
true if the 'selfLink' attribute was set.

◆ has_status()

bool google_tasks_api::Task::has_status ( ) const
inline

Determine if the 'status' attribute was set.

Returns
true if the 'status' attribute was set.

◆ has_title()

bool google_tasks_api::Task::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ has_updated()

bool google_tasks_api::Task::has_updated ( ) const
inline

Determine if the 'updated' attribute was set.

Returns
true if the 'updated' attribute was set.

◆ mutable_links()

client::JsonCppArray<TaskLinks > google_tasks_api::Task::mutable_links ( )
inline

Gets a reference to a mutable value of the 'links' property.

Collection of links. This collection is read-only.

Returns
The result can be modified to change the attribute value.

◆ New()

Task * google_tasks_api::Task::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_completed()

void google_tasks_api::Task::set_completed ( client::DateTime  value)
inline

Change the 'completed' attribute.

Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.

Parameters
[in]valueThe new value.

◆ set_deleted()

void google_tasks_api::Task::set_deleted ( bool  value)
inline

Change the 'deleted' attribute.

Flag indicating whether the task has been deleted. The default if False.

Parameters
[in]valueThe new value.

◆ set_due()

void google_tasks_api::Task::set_due ( client::DateTime  value)
inline

Change the 'due' attribute.

Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn't possible to read or write the time that a task is due via the API.

Parameters
[in]valueThe new value.

◆ set_etag()

void google_tasks_api::Task::set_etag ( const StringPiece &  value)
inline

Change the 'etag' attribute.

ETag of the resource.

Parameters
[in]valueThe new value.

◆ set_hidden()

void google_tasks_api::Task::set_hidden ( bool  value)
inline

Change the 'hidden' attribute.

Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.

Parameters
[in]valueThe new value.

◆ set_id()

void google_tasks_api::Task::set_id ( const StringPiece &  value)
inline

Change the 'id' attribute.

Task identifier.

Parameters
[in]valueThe new value.

◆ set_kind()

void google_tasks_api::Task::set_kind ( const StringPiece &  value)
inline

Change the 'kind' attribute.

Type of the resource. This is always "tasks#task".

Parameters
[in]valueThe new value.

◆ set_notes()

void google_tasks_api::Task::set_notes ( const StringPiece &  value)
inline

Change the 'notes' attribute.

Notes describing the task. Optional.

Parameters
[in]valueThe new value.

◆ set_parent()

void google_tasks_api::Task::set_parent ( const StringPiece &  value)
inline

Change the 'parent' attribute.

Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.

Parameters
[in]valueThe new value.

◆ set_position()

void google_tasks_api::Task::set_position ( const StringPiece &  value)
inline

Change the 'position' attribute.

String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.

Parameters
[in]valueThe new value.

◆ set_self_link()

void google_tasks_api::Task::set_self_link ( const StringPiece &  value)
inline

Change the 'selfLink' attribute.

URL pointing to this task. Used to retrieve, update, or delete this task.

Parameters
[in]valueThe new value.

◆ set_status()

void google_tasks_api::Task::set_status ( const StringPiece &  value)
inline

Change the 'status' attribute.

Status of the task. This is either "needsAction" or "completed".

Parameters
[in]valueThe new value.

◆ set_title()

void google_tasks_api::Task::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

Title of the task.

Parameters
[in]valueThe new value.

◆ set_updated()

void google_tasks_api::Task::set_updated ( client::DateTime  value)
inline

Change the 'updated' attribute.

Last modification time of the task (as a RFC 3339 timestamp).

Parameters
[in]valueThe new value.

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