public static async System.Threading.Tasks.Task <List <Task> > GetAll() { var query = ParseObject.GetQuery("Task").OrderBy("Title"); var ie = await query.FindAsync(); var tl = new List <Task> (); foreach (var t in ie) { tl.Add(Task.FromParseObject(t)); } return(tl); }
async System.Threading.Tasks.Task <Parse.Task> Populate() { Task ta = new Task(); try { var query = ParseObject.GetQuery("Task").WhereEqualTo("objectId", taskID); var t = await query.FirstAsync(); ta = Task.FromParseObject(t); } catch (ParseException pe) { Console.WriteLine("Parse Exception:{0}", pe.Message); } return(ta); }