25 |
- |
1 |
<?php
|
|
|
2 |
/*
|
|
|
3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
|
4 |
* use this file except in compliance with the License. You may obtain a copy of
|
|
|
5 |
* the License at
|
|
|
6 |
*
|
|
|
7 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
*
|
|
|
9 |
* Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
12 |
* License for the specific language governing permissions and limitations under
|
|
|
13 |
* the License.
|
|
|
14 |
*/
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* The "tasks" collection of methods.
|
|
|
19 |
* Typical usage is:
|
|
|
20 |
* <code>
|
|
|
21 |
* $tasksService = new Google_TasksService(...);
|
|
|
22 |
* $tasks = $tasksService->tasks;
|
|
|
23 |
* </code>
|
|
|
24 |
*/
|
|
|
25 |
class Google_TasksServiceResource extends Google_ServiceResource {
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* Creates a new task on the specified task list. (tasks.insert)
|
|
|
30 |
*
|
|
|
31 |
* @param string $tasklist Task list identifier.
|
|
|
32 |
* @param Google_Task $postBody
|
|
|
33 |
* @param array $optParams Optional parameters.
|
|
|
34 |
*
|
|
|
35 |
* @opt_param string parent Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.
|
|
|
36 |
* @opt_param string previous Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
|
|
|
37 |
* @return Google_Task
|
|
|
38 |
*/
|
|
|
39 |
public function insert($tasklist, Google_Task $postBody, $optParams = array()) {
|
|
|
40 |
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
|
|
|
41 |
$params = array_merge($params, $optParams);
|
|
|
42 |
$data = $this->__call('insert', array($params));
|
|
|
43 |
if ($this->useObjects()) {
|
|
|
44 |
return new Google_Task($data);
|
|
|
45 |
} else {
|
|
|
46 |
return $data;
|
|
|
47 |
}
|
|
|
48 |
}
|
|
|
49 |
/**
|
|
|
50 |
* Returns the specified task. (tasks.get)
|
|
|
51 |
*
|
|
|
52 |
* @param string $tasklist Task list identifier.
|
|
|
53 |
* @param string $task Task identifier.
|
|
|
54 |
* @param array $optParams Optional parameters.
|
|
|
55 |
* @return Google_Task
|
|
|
56 |
*/
|
|
|
57 |
public function get($tasklist, $task, $optParams = array()) {
|
|
|
58 |
$params = array('tasklist' => $tasklist, 'task' => $task);
|
|
|
59 |
$params = array_merge($params, $optParams);
|
|
|
60 |
$data = $this->__call('get', array($params));
|
|
|
61 |
if ($this->useObjects()) {
|
|
|
62 |
return new Google_Task($data);
|
|
|
63 |
} else {
|
|
|
64 |
return $data;
|
|
|
65 |
}
|
|
|
66 |
}
|
|
|
67 |
/**
|
|
|
68 |
* Clears all completed tasks from the specified task list. The affected tasks will be marked as
|
|
|
69 |
* 'hidden' and no longer be returned by default when retrieving all tasks for a task list.
|
|
|
70 |
* (tasks.clear)
|
|
|
71 |
*
|
|
|
72 |
* @param string $tasklist Task list identifier.
|
|
|
73 |
* @param array $optParams Optional parameters.
|
|
|
74 |
*/
|
|
|
75 |
public function clear($tasklist, $optParams = array()) {
|
|
|
76 |
$params = array('tasklist' => $tasklist);
|
|
|
77 |
$params = array_merge($params, $optParams);
|
|
|
78 |
$data = $this->__call('clear', array($params));
|
|
|
79 |
return $data;
|
|
|
80 |
}
|
|
|
81 |
/**
|
|
|
82 |
* Moves the specified task to another position in the task list. This can include putting it as a
|
|
|
83 |
* child task under a new parent and/or move it to a different position among its sibling tasks.
|
|
|
84 |
* (tasks.move)
|
|
|
85 |
*
|
|
|
86 |
* @param string $tasklist Task list identifier.
|
|
|
87 |
* @param string $task Task identifier.
|
|
|
88 |
* @param array $optParams Optional parameters.
|
|
|
89 |
*
|
|
|
90 |
* @opt_param string parent New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.
|
|
|
91 |
* @opt_param string previous New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.
|
|
|
92 |
* @return Google_Task
|
|
|
93 |
*/
|
|
|
94 |
public function move($tasklist, $task, $optParams = array()) {
|
|
|
95 |
$params = array('tasklist' => $tasklist, 'task' => $task);
|
|
|
96 |
$params = array_merge($params, $optParams);
|
|
|
97 |
$data = $this->__call('move', array($params));
|
|
|
98 |
if ($this->useObjects()) {
|
|
|
99 |
return new Google_Task($data);
|
|
|
100 |
} else {
|
|
|
101 |
return $data;
|
|
|
102 |
}
|
|
|
103 |
}
|
|
|
104 |
/**
|
|
|
105 |
* Returns all tasks in the specified task list. (tasks.list)
|
|
|
106 |
*
|
|
|
107 |
* @param string $tasklist Task list identifier.
|
|
|
108 |
* @param array $optParams Optional parameters.
|
|
|
109 |
*
|
|
|
110 |
* @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
|
|
|
111 |
* @opt_param bool showDeleted Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
|
|
|
112 |
* @opt_param string updatedMin Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
|
|
|
113 |
* @opt_param string completedMin Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
|
|
|
114 |
* @opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100.
|
|
|
115 |
* @opt_param bool showCompleted Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
|
|
|
116 |
* @opt_param string pageToken Token specifying the result page to return. Optional.
|
|
|
117 |
* @opt_param string completedMax Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
|
|
|
118 |
* @opt_param bool showHidden Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
|
|
|
119 |
* @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
|
|
|
120 |
* @return Google_Tasks
|
|
|
121 |
*/
|
|
|
122 |
public function listTasks($tasklist, $optParams = array()) {
|
|
|
123 |
$params = array('tasklist' => $tasklist);
|
|
|
124 |
$params = array_merge($params, $optParams);
|
|
|
125 |
$data = $this->__call('list', array($params));
|
|
|
126 |
if ($this->useObjects()) {
|
|
|
127 |
return new Google_Tasks($data);
|
|
|
128 |
} else {
|
|
|
129 |
return $data;
|
|
|
130 |
}
|
|
|
131 |
}
|
|
|
132 |
/**
|
|
|
133 |
* Updates the specified task. (tasks.update)
|
|
|
134 |
*
|
|
|
135 |
* @param string $tasklist Task list identifier.
|
|
|
136 |
* @param string $task Task identifier.
|
|
|
137 |
* @param Google_Task $postBody
|
|
|
138 |
* @param array $optParams Optional parameters.
|
|
|
139 |
* @return Google_Task
|
|
|
140 |
*/
|
|
|
141 |
public function update($tasklist, $task, Google_Task $postBody, $optParams = array()) {
|
|
|
142 |
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
|
|
|
143 |
$params = array_merge($params, $optParams);
|
|
|
144 |
$data = $this->__call('update', array($params));
|
|
|
145 |
if ($this->useObjects()) {
|
|
|
146 |
return new Google_Task($data);
|
|
|
147 |
} else {
|
|
|
148 |
return $data;
|
|
|
149 |
}
|
|
|
150 |
}
|
|
|
151 |
/**
|
|
|
152 |
* Updates the specified task. This method supports patch semantics. (tasks.patch)
|
|
|
153 |
*
|
|
|
154 |
* @param string $tasklist Task list identifier.
|
|
|
155 |
* @param string $task Task identifier.
|
|
|
156 |
* @param Google_Task $postBody
|
|
|
157 |
* @param array $optParams Optional parameters.
|
|
|
158 |
* @return Google_Task
|
|
|
159 |
*/
|
|
|
160 |
public function patch($tasklist, $task, Google_Task $postBody, $optParams = array()) {
|
|
|
161 |
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
|
|
|
162 |
$params = array_merge($params, $optParams);
|
|
|
163 |
$data = $this->__call('patch', array($params));
|
|
|
164 |
if ($this->useObjects()) {
|
|
|
165 |
return new Google_Task($data);
|
|
|
166 |
} else {
|
|
|
167 |
return $data;
|
|
|
168 |
}
|
|
|
169 |
}
|
|
|
170 |
/**
|
|
|
171 |
* Deletes the specified task from the task list. (tasks.delete)
|
|
|
172 |
*
|
|
|
173 |
* @param string $tasklist Task list identifier.
|
|
|
174 |
* @param string $task Task identifier.
|
|
|
175 |
* @param array $optParams Optional parameters.
|
|
|
176 |
*/
|
|
|
177 |
public function delete($tasklist, $task, $optParams = array()) {
|
|
|
178 |
$params = array('tasklist' => $tasklist, 'task' => $task);
|
|
|
179 |
$params = array_merge($params, $optParams);
|
|
|
180 |
$data = $this->__call('delete', array($params));
|
|
|
181 |
return $data;
|
|
|
182 |
}
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
/**
|
|
|
186 |
* The "tasklists" collection of methods.
|
|
|
187 |
* Typical usage is:
|
|
|
188 |
* <code>
|
|
|
189 |
* $tasksService = new Google_TasksService(...);
|
|
|
190 |
* $tasklists = $tasksService->tasklists;
|
|
|
191 |
* </code>
|
|
|
192 |
*/
|
|
|
193 |
class Google_TasklistsServiceResource extends Google_ServiceResource {
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
/**
|
|
|
197 |
* Creates a new task list and adds it to the authenticated user's task lists. (tasklists.insert)
|
|
|
198 |
*
|
|
|
199 |
* @param Google_TaskList $postBody
|
|
|
200 |
* @param array $optParams Optional parameters.
|
|
|
201 |
* @return Google_TaskList
|
|
|
202 |
*/
|
|
|
203 |
public function insert(Google_TaskList $postBody, $optParams = array()) {
|
|
|
204 |
$params = array('postBody' => $postBody);
|
|
|
205 |
$params = array_merge($params, $optParams);
|
|
|
206 |
$data = $this->__call('insert', array($params));
|
|
|
207 |
if ($this->useObjects()) {
|
|
|
208 |
return new Google_TaskList($data);
|
|
|
209 |
} else {
|
|
|
210 |
return $data;
|
|
|
211 |
}
|
|
|
212 |
}
|
|
|
213 |
/**
|
|
|
214 |
* Returns the authenticated user's specified task list. (tasklists.get)
|
|
|
215 |
*
|
|
|
216 |
* @param string $tasklist Task list identifier.
|
|
|
217 |
* @param array $optParams Optional parameters.
|
|
|
218 |
* @return Google_TaskList
|
|
|
219 |
*/
|
|
|
220 |
public function get($tasklist, $optParams = array()) {
|
|
|
221 |
$params = array('tasklist' => $tasklist);
|
|
|
222 |
$params = array_merge($params, $optParams);
|
|
|
223 |
$data = $this->__call('get', array($params));
|
|
|
224 |
if ($this->useObjects()) {
|
|
|
225 |
return new Google_TaskList($data);
|
|
|
226 |
} else {
|
|
|
227 |
return $data;
|
|
|
228 |
}
|
|
|
229 |
}
|
|
|
230 |
/**
|
|
|
231 |
* Returns all the authenticated user's task lists. (tasklists.list)
|
|
|
232 |
*
|
|
|
233 |
* @param array $optParams Optional parameters.
|
|
|
234 |
*
|
|
|
235 |
* @opt_param string pageToken Token specifying the result page to return. Optional.
|
|
|
236 |
* @opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100.
|
|
|
237 |
* @return Google_TaskLists
|
|
|
238 |
*/
|
|
|
239 |
public function listTasklists($optParams = array()) {
|
|
|
240 |
$params = array();
|
|
|
241 |
$params = array_merge($params, $optParams);
|
|
|
242 |
$data = $this->__call('list', array($params));
|
|
|
243 |
if ($this->useObjects()) {
|
|
|
244 |
return new Google_TaskLists($data);
|
|
|
245 |
} else {
|
|
|
246 |
return $data;
|
|
|
247 |
}
|
|
|
248 |
}
|
|
|
249 |
/**
|
|
|
250 |
* Updates the authenticated user's specified task list. (tasklists.update)
|
|
|
251 |
*
|
|
|
252 |
* @param string $tasklist Task list identifier.
|
|
|
253 |
* @param Google_TaskList $postBody
|
|
|
254 |
* @param array $optParams Optional parameters.
|
|
|
255 |
* @return Google_TaskList
|
|
|
256 |
*/
|
|
|
257 |
public function update($tasklist, Google_TaskList $postBody, $optParams = array()) {
|
|
|
258 |
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
|
|
|
259 |
$params = array_merge($params, $optParams);
|
|
|
260 |
$data = $this->__call('update', array($params));
|
|
|
261 |
if ($this->useObjects()) {
|
|
|
262 |
return new Google_TaskList($data);
|
|
|
263 |
} else {
|
|
|
264 |
return $data;
|
|
|
265 |
}
|
|
|
266 |
}
|
|
|
267 |
/**
|
|
|
268 |
* Updates the authenticated user's specified task list. This method supports patch semantics.
|
|
|
269 |
* (tasklists.patch)
|
|
|
270 |
*
|
|
|
271 |
* @param string $tasklist Task list identifier.
|
|
|
272 |
* @param Google_TaskList $postBody
|
|
|
273 |
* @param array $optParams Optional parameters.
|
|
|
274 |
* @return Google_TaskList
|
|
|
275 |
*/
|
|
|
276 |
public function patch($tasklist, Google_TaskList $postBody, $optParams = array()) {
|
|
|
277 |
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
|
|
|
278 |
$params = array_merge($params, $optParams);
|
|
|
279 |
$data = $this->__call('patch', array($params));
|
|
|
280 |
if ($this->useObjects()) {
|
|
|
281 |
return new Google_TaskList($data);
|
|
|
282 |
} else {
|
|
|
283 |
return $data;
|
|
|
284 |
}
|
|
|
285 |
}
|
|
|
286 |
/**
|
|
|
287 |
* Deletes the authenticated user's specified task list. (tasklists.delete)
|
|
|
288 |
*
|
|
|
289 |
* @param string $tasklist Task list identifier.
|
|
|
290 |
* @param array $optParams Optional parameters.
|
|
|
291 |
*/
|
|
|
292 |
public function delete($tasklist, $optParams = array()) {
|
|
|
293 |
$params = array('tasklist' => $tasklist);
|
|
|
294 |
$params = array_merge($params, $optParams);
|
|
|
295 |
$data = $this->__call('delete', array($params));
|
|
|
296 |
return $data;
|
|
|
297 |
}
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
/**
|
|
|
301 |
* Service definition for Google_Tasks (v1).
|
|
|
302 |
*
|
|
|
303 |
* <p>
|
|
|
304 |
* Lets you manage your tasks and task lists.
|
|
|
305 |
* </p>
|
|
|
306 |
*
|
|
|
307 |
* <p>
|
|
|
308 |
* For more information about this service, see the
|
|
|
309 |
* <a href="http://code.google.com/apis/tasks/v1/using.html" target="_blank">API Documentation</a>
|
|
|
310 |
* </p>
|
|
|
311 |
*
|
|
|
312 |
* @author Google, Inc.
|
|
|
313 |
*/
|
|
|
314 |
class Google_TasksService extends Google_Service {
|
|
|
315 |
public $tasks;
|
|
|
316 |
public $tasklists;
|
|
|
317 |
/**
|
|
|
318 |
* Constructs the internal representation of the Tasks service.
|
|
|
319 |
*
|
|
|
320 |
* @param Google_Client $client
|
|
|
321 |
*/
|
|
|
322 |
public function __construct(Google_Client $client) {
|
|
|
323 |
$this->servicePath = 'tasks/v1/';
|
|
|
324 |
$this->version = 'v1';
|
|
|
325 |
$this->serviceName = 'tasks';
|
|
|
326 |
|
|
|
327 |
$client->addService($this->serviceName, $this->version);
|
|
|
328 |
$this->tasks = new Google_TasksServiceResource($this, $this->serviceName, 'tasks', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/tasks"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}, "parent": {"type": "string", "location": "query"}, "previous": {"type": "string", "location": "query"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "httpMethod": "POST", "path": "lists/{tasklist}/tasks", "id": "tasks.tasks.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}, "task": {"required": true, "type": "string", "location": "path"}}, "id": "tasks.tasks.get", "httpMethod": "GET", "path": "lists/{tasklist}/tasks/{task}", "response": {"$ref": "Task"}}, "clear": {"scopes": ["https://www.googleapis.com/auth/tasks"], "path": "lists/{tasklist}/clear", "id": "tasks.tasks.clear", "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}, "move": {"scopes": ["https://www.googleapis.com/auth/tasks"], "parameters": {"task": {"required": true, "type": "string", "location": "path"}, "tasklist": {"required": true, "type": "string", "location": "path"}, "parent": {"type": "string", "location": "query"}, "previous": {"type": "string", "location": "query"}}, "id": "tasks.tasks.move", "httpMethod": "POST", "path": "lists/{tasklist}/tasks/{task}/move", "response": {"$ref": "Task"}}, "list": {"scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"], "parameters": {"dueMax": {"type": "string", "location": "query"}, "tasklist": {"required": true, "type": "string", "location": "path"}, "showDeleted": {"type": "boolean", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "completedMin": {"type": "string", "location": "query"}, "maxResults": {"type": "string", "location": "query", "format": "int64"}, "showCompleted": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "completedMax": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}, "dueMin": {"type": "string", "location": "query"}}, "id": "tasks.tasks.list", "httpMethod": "GET", "path": "lists/{tasklist}/tasks", "response": {"$ref": "Tasks"}}, "update": {"scopes": ["https://www.googleapis.com/auth/tasks"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}, "task": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "httpMethod": "PUT", "path": "lists/{tasklist}/tasks/{task}", "id": "tasks.tasks.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/tasks"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}, "task": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "httpMethod": "PATCH", "path": "lists/{tasklist}/tasks/{task}", "id": "tasks.tasks.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/tasks"], "path": "lists/{tasklist}/tasks/{task}", "id": "tasks.tasks.delete", "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}, "task": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
|
|
329 |
$this->tasklists = new Google_TasklistsServiceResource($this, $this->serviceName, 'tasklists', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/tasks"], "request": {"$ref": "TaskList"}, "response": {"$ref": "TaskList"}, "httpMethod": "POST", "path": "users/@me/lists", "id": "tasks.tasklists.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}}, "id": "tasks.tasklists.get", "httpMethod": "GET", "path": "users/@me/lists/{tasklist}", "response": {"$ref": "TaskList"}}, "list": {"scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"type": "string", "location": "query", "format": "int64"}}, "response": {"$ref": "TaskLists"}, "httpMethod": "GET", "path": "users/@me/lists", "id": "tasks.tasklists.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/tasks"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "TaskList"}, "response": {"$ref": "TaskList"}, "httpMethod": "PUT", "path": "users/@me/lists/{tasklist}", "id": "tasks.tasklists.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/tasks"], "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "TaskList"}, "response": {"$ref": "TaskList"}, "httpMethod": "PATCH", "path": "users/@me/lists/{tasklist}", "id": "tasks.tasklists.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/tasks"], "path": "users/@me/lists/{tasklist}", "id": "tasks.tasklists.delete", "parameters": {"tasklist": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
|
|
330 |
|
|
|
331 |
}
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
class Google_Task extends Google_Model {
|
|
|
335 |
public $status;
|
|
|
336 |
public $kind;
|
|
|
337 |
public $updated;
|
|
|
338 |
public $parent;
|
|
|
339 |
protected $__linksType = 'Google_TaskLinks';
|
|
|
340 |
protected $__linksDataType = 'array';
|
|
|
341 |
public $links;
|
|
|
342 |
public $title;
|
|
|
343 |
public $deleted;
|
|
|
344 |
public $completed;
|
|
|
345 |
public $due;
|
|
|
346 |
public $etag;
|
|
|
347 |
public $notes;
|
|
|
348 |
public $position;
|
|
|
349 |
public $hidden;
|
|
|
350 |
public $id;
|
|
|
351 |
public $selfLink;
|
|
|
352 |
public function setStatus($status) {
|
|
|
353 |
$this->status = $status;
|
|
|
354 |
}
|
|
|
355 |
public function getStatus() {
|
|
|
356 |
return $this->status;
|
|
|
357 |
}
|
|
|
358 |
public function setKind($kind) {
|
|
|
359 |
$this->kind = $kind;
|
|
|
360 |
}
|
|
|
361 |
public function getKind() {
|
|
|
362 |
return $this->kind;
|
|
|
363 |
}
|
|
|
364 |
public function setUpdated($updated) {
|
|
|
365 |
$this->updated = $updated;
|
|
|
366 |
}
|
|
|
367 |
public function getUpdated() {
|
|
|
368 |
return $this->updated;
|
|
|
369 |
}
|
|
|
370 |
public function setParent($parent) {
|
|
|
371 |
$this->parent = $parent;
|
|
|
372 |
}
|
|
|
373 |
public function getParent() {
|
|
|
374 |
return $this->parent;
|
|
|
375 |
}
|
|
|
376 |
public function setLinks(/* array(Google_TaskLinks) */ $links) {
|
|
|
377 |
$this->assertIsArray($links, 'Google_TaskLinks', __METHOD__);
|
|
|
378 |
$this->links = $links;
|
|
|
379 |
}
|
|
|
380 |
public function getLinks() {
|
|
|
381 |
return $this->links;
|
|
|
382 |
}
|
|
|
383 |
public function setTitle($title) {
|
|
|
384 |
$this->title = $title;
|
|
|
385 |
}
|
|
|
386 |
public function getTitle() {
|
|
|
387 |
return $this->title;
|
|
|
388 |
}
|
|
|
389 |
public function setDeleted($deleted) {
|
|
|
390 |
$this->deleted = $deleted;
|
|
|
391 |
}
|
|
|
392 |
public function getDeleted() {
|
|
|
393 |
return $this->deleted;
|
|
|
394 |
}
|
|
|
395 |
public function setCompleted($completed) {
|
|
|
396 |
$this->completed = $completed;
|
|
|
397 |
}
|
|
|
398 |
public function getCompleted() {
|
|
|
399 |
return $this->completed;
|
|
|
400 |
}
|
|
|
401 |
public function setDue($due) {
|
|
|
402 |
$this->due = $due;
|
|
|
403 |
}
|
|
|
404 |
public function getDue() {
|
|
|
405 |
return $this->due;
|
|
|
406 |
}
|
|
|
407 |
public function setEtag($etag) {
|
|
|
408 |
$this->etag = $etag;
|
|
|
409 |
}
|
|
|
410 |
public function getEtag() {
|
|
|
411 |
return $this->etag;
|
|
|
412 |
}
|
|
|
413 |
public function setNotes($notes) {
|
|
|
414 |
$this->notes = $notes;
|
|
|
415 |
}
|
|
|
416 |
public function getNotes() {
|
|
|
417 |
return $this->notes;
|
|
|
418 |
}
|
|
|
419 |
public function setPosition($position) {
|
|
|
420 |
$this->position = $position;
|
|
|
421 |
}
|
|
|
422 |
public function getPosition() {
|
|
|
423 |
return $this->position;
|
|
|
424 |
}
|
|
|
425 |
public function setHidden($hidden) {
|
|
|
426 |
$this->hidden = $hidden;
|
|
|
427 |
}
|
|
|
428 |
public function getHidden() {
|
|
|
429 |
return $this->hidden;
|
|
|
430 |
}
|
|
|
431 |
public function setId($id) {
|
|
|
432 |
$this->id = $id;
|
|
|
433 |
}
|
|
|
434 |
public function getId() {
|
|
|
435 |
return $this->id;
|
|
|
436 |
}
|
|
|
437 |
public function setSelfLink($selfLink) {
|
|
|
438 |
$this->selfLink = $selfLink;
|
|
|
439 |
}
|
|
|
440 |
public function getSelfLink() {
|
|
|
441 |
return $this->selfLink;
|
|
|
442 |
}
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
class Google_TaskLinks extends Google_Model {
|
|
|
446 |
public $type;
|
|
|
447 |
public $link;
|
|
|
448 |
public $description;
|
|
|
449 |
public function setType($type) {
|
|
|
450 |
$this->type = $type;
|
|
|
451 |
}
|
|
|
452 |
public function getType() {
|
|
|
453 |
return $this->type;
|
|
|
454 |
}
|
|
|
455 |
public function setLink($link) {
|
|
|
456 |
$this->link = $link;
|
|
|
457 |
}
|
|
|
458 |
public function getLink() {
|
|
|
459 |
return $this->link;
|
|
|
460 |
}
|
|
|
461 |
public function setDescription($description) {
|
|
|
462 |
$this->description = $description;
|
|
|
463 |
}
|
|
|
464 |
public function getDescription() {
|
|
|
465 |
return $this->description;
|
|
|
466 |
}
|
|
|
467 |
}
|
|
|
468 |
|
|
|
469 |
class Google_TaskList extends Google_Model {
|
|
|
470 |
public $kind;
|
|
|
471 |
public $title;
|
|
|
472 |
public $updated;
|
|
|
473 |
public $etag;
|
|
|
474 |
public $id;
|
|
|
475 |
public $selfLink;
|
|
|
476 |
public function setKind($kind) {
|
|
|
477 |
$this->kind = $kind;
|
|
|
478 |
}
|
|
|
479 |
public function getKind() {
|
|
|
480 |
return $this->kind;
|
|
|
481 |
}
|
|
|
482 |
public function setTitle($title) {
|
|
|
483 |
$this->title = $title;
|
|
|
484 |
}
|
|
|
485 |
public function getTitle() {
|
|
|
486 |
return $this->title;
|
|
|
487 |
}
|
|
|
488 |
public function setUpdated($updated) {
|
|
|
489 |
$this->updated = $updated;
|
|
|
490 |
}
|
|
|
491 |
public function getUpdated() {
|
|
|
492 |
return $this->updated;
|
|
|
493 |
}
|
|
|
494 |
public function setEtag($etag) {
|
|
|
495 |
$this->etag = $etag;
|
|
|
496 |
}
|
|
|
497 |
public function getEtag() {
|
|
|
498 |
return $this->etag;
|
|
|
499 |
}
|
|
|
500 |
public function setId($id) {
|
|
|
501 |
$this->id = $id;
|
|
|
502 |
}
|
|
|
503 |
public function getId() {
|
|
|
504 |
return $this->id;
|
|
|
505 |
}
|
|
|
506 |
public function setSelfLink($selfLink) {
|
|
|
507 |
$this->selfLink = $selfLink;
|
|
|
508 |
}
|
|
|
509 |
public function getSelfLink() {
|
|
|
510 |
return $this->selfLink;
|
|
|
511 |
}
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
class Google_TaskLists extends Google_Model {
|
|
|
515 |
public $nextPageToken;
|
|
|
516 |
protected $__itemsType = 'Google_TaskList';
|
|
|
517 |
protected $__itemsDataType = 'array';
|
|
|
518 |
public $items;
|
|
|
519 |
public $kind;
|
|
|
520 |
public $etag;
|
|
|
521 |
public function setNextPageToken($nextPageToken) {
|
|
|
522 |
$this->nextPageToken = $nextPageToken;
|
|
|
523 |
}
|
|
|
524 |
public function getNextPageToken() {
|
|
|
525 |
return $this->nextPageToken;
|
|
|
526 |
}
|
|
|
527 |
public function setItems(/* array(Google_TaskList) */ $items) {
|
|
|
528 |
$this->assertIsArray($items, 'Google_TaskList', __METHOD__);
|
|
|
529 |
$this->items = $items;
|
|
|
530 |
}
|
|
|
531 |
public function getItems() {
|
|
|
532 |
return $this->items;
|
|
|
533 |
}
|
|
|
534 |
public function setKind($kind) {
|
|
|
535 |
$this->kind = $kind;
|
|
|
536 |
}
|
|
|
537 |
public function getKind() {
|
|
|
538 |
return $this->kind;
|
|
|
539 |
}
|
|
|
540 |
public function setEtag($etag) {
|
|
|
541 |
$this->etag = $etag;
|
|
|
542 |
}
|
|
|
543 |
public function getEtag() {
|
|
|
544 |
return $this->etag;
|
|
|
545 |
}
|
|
|
546 |
}
|
|
|
547 |
|
|
|
548 |
class Google_Tasks extends Google_Model {
|
|
|
549 |
public $nextPageToken;
|
|
|
550 |
protected $__itemsType = 'Google_Task';
|
|
|
551 |
protected $__itemsDataType = 'array';
|
|
|
552 |
public $items;
|
|
|
553 |
public $kind;
|
|
|
554 |
public $etag;
|
|
|
555 |
public function setNextPageToken($nextPageToken) {
|
|
|
556 |
$this->nextPageToken = $nextPageToken;
|
|
|
557 |
}
|
|
|
558 |
public function getNextPageToken() {
|
|
|
559 |
return $this->nextPageToken;
|
|
|
560 |
}
|
|
|
561 |
public function setItems(/* array(Google_Task) */ $items) {
|
|
|
562 |
$this->assertIsArray($items, 'Google_Task', __METHOD__);
|
|
|
563 |
$this->items = $items;
|
|
|
564 |
}
|
|
|
565 |
public function getItems() {
|
|
|
566 |
return $this->items;
|
|
|
567 |
}
|
|
|
568 |
public function setKind($kind) {
|
|
|
569 |
$this->kind = $kind;
|
|
|
570 |
}
|
|
|
571 |
public function getKind() {
|
|
|
572 |
return $this->kind;
|
|
|
573 |
}
|
|
|
574 |
public function setEtag($etag) {
|
|
|
575 |
$this->etag = $etag;
|
|
|
576 |
}
|
|
|
577 |
public function getEtag() {
|
|
|
578 |
return $this->etag;
|
|
|
579 |
}
|
|
|
580 |
}
|