1

How would I set the ShowCompleted flag in google tasks for DotNet? I've searched the samples with no luck.

tasks.get

Task task = service.Tasks.Get("@default", "taskID").Fetch();
Console.WriteLine(task.Title);

Thanks.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
Tom Freedy
  • 41
  • 2
  • Welcome to stack please read [how to ask](https://stackoverflow.com/help/how-to-ask). Remember to post the code you have tried as well as showing any research you have done by listing any links you have already checked. I have tried to improve your question giving you an example. – Linda Lawton - DaImTo Jan 21 '19 at 07:27

1 Answers1

1

Assuming you are using tasks.get you can just check task.Completed

var task = service.Tasks.Get("@default", "taskID").Fetch();
Console.WriteLine(task.Completed);
Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
  • I'm using Service.Tasks.List(list.Id).ShowCompleted = true; var tasks = await Service.Tasks.List(list.Id).ExecuteAsync(); – Tom Freedy Jan 21 '19 at 19:18