TTMSFNCCloudGoogleTasks.GetTasks Method
Requests the tasks contained in the supplied task list, optionally filtering by completion, deletion and visibility, and fills the list's
TTMSFNCCloudGoogleTasksTaskList.Taskscollection when the request completes.
API unit family: TMSFNCCloudGoogleTasks
Declaring type: TTMSFNCCloudGoogleTasks
Inherited from: TTMSFNCCustomCloudGoogleTasks
Overloads
Overload 1
Requests the tasks contained in the supplied task list, optionally filtering by completion, deletion and visibility, and fills the list's
TTMSFNCCloudGoogleTasksTaskList.Taskscollection when the request completes.
procedure GetTasks(ATaskList: TTMSFNCCloudGoogleTasksTaskList; AMaxResults: Integer = 100; AShowCompleted: Boolean = False; AShowDeleted: Boolean = False; AShowHidden: Boolean = False); overload;
Remarks
The OnGetTasks event reports the result.
Parameters
| Name | Description |
|---|---|
ATaskList |
Task list whose tasks are requested. |
AMaxResults |
Maximum number of tasks to return. Defaults to 100. |
AShowCompleted |
When True, completed tasks are included in the result. Defaults to False. |
AShowDeleted |
When True, deleted tasks are included in the result. Defaults to False. |
AShowHidden |
When True, hidden tasks are included in the result. Defaults to False. |
Overload 2
Requests the tasks contained in the supplied task list, filtered by completion, due and update date ranges.
procedure GetTasks(ATaskList: TTMSFNCCloudGoogleTasksTaskList; ACompletedMin: TDateTime; ACompletedMax: TDateTime; ADueMin: TDateTime; ADueMax: TDateTime; AUpdatedMin: TDateTime; AMaxResults: Integer = 100); overload;
Remarks
The OnGetTasks event reports the result.
Parameters
| Name | Description |
|---|---|
ATaskList |
Task list whose tasks are requested. |
ACompletedMin |
Lower bound, inclusive, of the completion date filter. |
ACompletedMax |
Upper bound, inclusive, of the completion date filter. |
ADueMin |
Lower bound, inclusive, of the due date filter. |
ADueMax |
Upper bound, inclusive, of the due date filter. |
AUpdatedMin |
Lower bound, inclusive, of the last-modified date filter. |
AMaxResults |
Maximum number of tasks to return. Defaults to 100. |