async public static Task <Homework[]> GetHomework(Student student, bool groupHardRefresh = false) { try { HttpResponseMessage response = await WebRequestHandler.GET(taskRoute + "/?is_completed=True"); Homework[] tasks = await Homework.CreateFromJsonString(await response.Content.ReadAsStringAsync(), student, groupHardRefresh : groupHardRefresh); // This must be async to prevent blocking of the UI thread return(tasks); } catch (HttpStatusNotFound) { return(new Homework[0]); // Make 0 sized array of Homework type } }