//method that gets the user's todo list //the list will need some logic public async Task <List <Assignment> > GetTodolist() { List <Assignment> not_submitted = new List <Assignment>(); try { List <Assignment> tasks = await ClsCourseApi.List_Todo(Access_token, Lms_url, 0).ConfigureAwait(false); foreach (Assignment task in tasks) { if (!task.Has_submitted) { not_submitted.Add(task); } } } catch (FileNotFoundException ex) { Console.Write("error thrown ==> " + ex.Message); } return(not_submitted); }
//method that gets the user's todo list //the list will need some logic public async Task <List <Assignment> > GetTodoList() { List <Assignment> not_submitted = new List <Assignment>(); try { List <Assignment> tasks = await ClsCourseApi.List_Todo(ACCESS_TOKEN, LMS_URL, 0); foreach (Assignment task in tasks) { if (!task.Has_submitted) { not_submitted.Add(task); } } } catch (Exception ex) { Console.Write("Error thrown " + ex.Message); } return(not_submitted); }