Show / Hide Table of Contents

Class Task

Inheritance
object
Task
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Tasks.v1.Data
Assembly: Google.Apis.Tasks.v1.dll
Syntax
public class Task : IDirectResponseSchema

Properties

AssignmentInfo

Output only. Context information for assigned tasks. A task can be assigned to a user, currently possible from surfaces like Docs and Chat Spaces. This field is populated for tasks assigned to the current user and identifies where the task was assigned from. This field is read-only.

Declaration
[JsonProperty("assignmentInfo")]
public virtual AssignmentInfo AssignmentInfo { get; set; }
Property Value
Type Description
AssignmentInfo

Completed

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

Declaration
[JsonProperty("completed")]
public virtual string Completed { get; set; }
Property Value
Type Description
string

Deleted

Flag indicating whether the task has been deleted. For assigned tasks this field is read-only. They can only be deleted by calling tasks.delete, in which case both the assigned task and the original task (in Docs or Chat Spaces) are deleted. To delete the assigned task only, navigate to the assignment surface and unassign the task from there. The default is False.

Declaration
[JsonProperty("deleted")]
public virtual bool? Deleted { get; set; }
Property Value
Type Description
bool?

Due

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.

Declaration
[JsonProperty("due")]
public virtual string Due { get; set; }
Property Value
Type Description
string

ETag

ETag of the resource.

Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type Description
string

Hidden

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.

Declaration
[JsonProperty("hidden")]
public virtual bool? Hidden { get; set; }
Property Value
Type Description
bool?

Id

Task identifier.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
string

Kind

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

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
string

Links

Output only. Collection of links. This collection is read-only.

Declaration
[JsonProperty("links")]
public virtual IList<Task.LinksData> Links { get; set; }
Property Value
Type Description
IList<Task.LinksData>

Notes

Notes describing the task. Tasks assigned from Google Docs cannot have notes. Optional. Maximum length allowed: 8192 characters.

Declaration
[JsonProperty("notes")]
public virtual string Notes { get; set; }
Property Value
Type Description
string

Parent

Output only. Parent task identifier. This field is omitted if it is a top-level task. Use the "move" method to move the task under a different parent or to the top level. A parent task can never be an assigned task (from Chat Spaces, Docs). This field is read-only.

Declaration
[JsonProperty("parent")]
public virtual string Parent { get; set; }
Property Value
Type Description
string

Position

Output only. 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). Use the "move" method to move the task to another position.

Declaration
[JsonProperty("position")]
public virtual string Position { get; set; }
Property Value
Type Description
string

SelfLink

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

Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type Description
string

Status

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

Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
Type Description
string

Title

Title of the task. Maximum length allowed: 1024 characters.

Declaration
[JsonProperty("title")]
public virtual string Title { get; set; }
Property Value
Type Description
string

Updated

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

Declaration
[JsonProperty("updated")]
public virtual string Updated { get; set; }
Property Value
Type Description
string

WebViewLink

Output only. An absolute link to the task in the Google Tasks Web UI.

Declaration
[JsonProperty("webViewLink")]
public virtual string WebViewLink { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX