コード例 #1
0
    public async Task SetStudyProgram(string id)
    {
        var studyProgramId = new StudyProgramId()
        {
            id = id
        };
        var json = JsonUtility.ToJson(studyProgramId);

        await _postWithData("functions/set_studyprogram", json);
    }
コード例 #2
0
    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));
    }
コード例 #3
0
    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));
    }