Пример #1
0
    /**
     * Get quizzes
     */
    public override Quizzes GetQuizzes()
    {
        string json_quizzes = NetworkRequestManager.HttpGetRequest(apiQuizzesUrl);

        CheckIfNullAndLog(json_quizzes, $"[WARNING]: Response for {GetActualMethodName()} is null");

        Quizzes quizzesData = child.SerializeQuizzes(json_quizzes);

        quizzesData.MapAPIValuesToAbstractClass(); // Maps the values from ApiModel to Quizzes. The mapping is defined in api model class that inherits from Quizzes

        CheckIfNullAndLog(quizzesData, $"[WARNING]: quizzesData is null");


        return(quizzesData);
    }