public async Task SetStudyProgram(string id) { var studyProgramId = new StudyProgramId() { id = id }; var json = JsonUtility.ToJson(studyProgramId); await _postWithData("functions/set_studyprogram", json); }
public async Task <List <Course> > GetCourses(string studyProgramId) { var studyProgramIdRequest = new StudyProgramId() { id = studyProgramId }; var json = JsonUtility.ToJson(studyProgramIdRequest); var coursesJson = await _postWithData("functions/get_courses", json); return(_deserializeParseList <ParseListResponse <Course>, Course>(coursesJson)); }
public async Task <StudyProgram> GetStudyProgram(string id) { var studyProgramId = new StudyProgramId() { id = id }; var json = JsonUtility.ToJson(studyProgramId); var studyProgramJson = await _postWithData("functions/get_studyprogram", json); return(_deserializeParseObject <ParseObjectResponse <StudyProgram>, StudyProgram>(studyProgramJson)); }