TTMSFNCCustomCloudGoogleTasks Class
Provides the base client for working with a Google Tasks account, exposing methods to retrieve, add, update and delete task lists and the tasks they contain, together with the events that report request results.
API unit family: TMSFNCCloudGoogleTasks
Inherits from: TTMSFNCCustomCloudGoogle
Syntax
TTMSFNCCustomCloudGoogleTasks = class(TTMSFNCCustomCloudGoogle)
Remarks
Requests run asynchronously. The corresponding completion event fires when each request finishes and carries the affected data and the request result.
Properties
| Name | Description |
|---|---|
| HasNextTaskLists | Indicates whether more task lists are available beyond those already retrieved. |
| HasNextTasks | Indicates whether more tasks are available beyond those already retrieved. |
| TaskLists | Gets or sets the collection of task lists retrieved from the account. |
Methods
| Name | Description |
|---|---|
| AddTaskList | Creates a new task list with the supplied title on the service. |
| AddTaskToList | Adds the supplied task to the given task list on the service. |
| DeleteTask | Deletes the supplied task from its task list on the service. |
| DeleteTaskList | Deletes the supplied task list from the service. |
| GetNextTaskLists | Requests the next page of task lists following the previous GetTaskLists call. |
| GetNextTasks | Requests the next page of tasks for the supplied task list following the previous GetTasks call. |
| GetTaskLists | Requests the task lists of the account and fills the TaskLists collection when the request completes. |
| GetTasks | Requests the tasks contained in the supplied task list, optionally filtering by completion, deletion and visibility, and fills the list's TTMSFNCCloudGoogleTasksTaskList.Tasks collection when the request completes. |
| UpdateTask | Updates the supplied task on the service. |
| UpdateTaskList | Updates the title of the supplied task list on the service. |