diff --git a/library/src/main/java/io/constructor/data/model/quiz/QuizQuestionResponse.kt b/library/src/main/java/io/constructor/data/model/quiz/QuizQuestionResponse.kt index febc10e4..028401d5 100644 --- a/library/src/main/java/io/constructor/data/model/quiz/QuizQuestionResponse.kt +++ b/library/src/main/java/io/constructor/data/model/quiz/QuizQuestionResponse.kt @@ -12,7 +12,6 @@ data class QuizQuestionResponse( @Json(name="next_question") val nextQuestion: QuizQuestion?, @Json(name="quiz_version_id") val quizVersionId: String?, @Json(name="quiz_session_id") val quizSessionId: String?, - @Json(name="is_last_question") val isLastQuestion: Boolean?, @Json(name="quiz_id") val quizId: String, var rawData: String? ) : Serializable \ No newline at end of file diff --git a/library/src/test/java/io/constructor/core/ConstructorIoIntegrationQuizTest.kt b/library/src/test/java/io/constructor/core/ConstructorIoIntegrationQuizTest.kt index 76e96087..794f2eb3 100644 --- a/library/src/test/java/io/constructor/core/ConstructorIoIntegrationQuizTest.kt +++ b/library/src/test/java/io/constructor/core/ConstructorIoIntegrationQuizTest.kt @@ -62,7 +62,6 @@ class ConstructorIoIntegrationQuizTest { assertNotNull(quizResult?.quizId) assertNotNull(quizResult?.quizVersionId) assertNotNull(quizResult?.quizSessionId) - assertEquals(quizResult?.isLastQuestion, false) assertEquals(quizResult?.nextQuestion?.id, 1) assertEquals(quizResult?.nextQuestion?.title, "This is a test quiz.") assertEquals(quizResult?.nextQuestion?.images?.primaryUrl, "/test-asset") @@ -108,7 +107,6 @@ class ConstructorIoIntegrationQuizTest { assertNotNull(quizResult?.quizId) assertNotNull(quizResult?.quizVersionId) assertNotNull(quizResult?.quizSessionId) - assertEquals(quizResult?.isLastQuestion, false) assertEquals(quizResult?.nextQuestion?.id, 2) assertEquals(quizResult?.nextQuestion?.title, "This is a multiple select question") assertEquals(quizResult?.nextQuestion?.images?.primaryUrl, "/test-asset") @@ -142,7 +140,6 @@ class ConstructorIoIntegrationQuizTest { assertNotNull(quizResult?.quizId) assertNotNull(quizResult?.quizVersionId) assertNotNull(quizResult?.quizSessionId) - assertEquals(quizResult?.isLastQuestion, false) assertEquals(quizResult?.nextQuestion?.id, 3) assertEquals(quizResult?.nextQuestion?.title, "Test Cover") assertEquals(quizResult?.nextQuestion?.images?.primaryUrl, "/test-asset") @@ -170,7 +167,6 @@ class ConstructorIoIntegrationQuizTest { assertNotNull(quizResult?.quizId) assertNotNull(quizResult?.quizVersionId) assertNotNull(quizResult?.quizSessionId) - assertEquals(quizResult?.isLastQuestion, true) assertEquals(quizResult?.nextQuestion?.id, 4) assertEquals(quizResult?.nextQuestion?.title, "Test Open Text") assertEquals(quizResult?.nextQuestion?.images?.primaryUrl, "/test-asset") @@ -200,7 +196,6 @@ class ConstructorIoIntegrationQuizTest { assertNotNull(quizResult?.quizId) assertNotNull(quizResult?.quizVersionId) assertNotNull(quizResult?.quizSessionId) - assertEquals(quizResult?.isLastQuestion, true) assertEquals(quizResult?.nextQuestion, null) Thread.sleep(timeBetweenTests) @@ -267,7 +262,6 @@ class ConstructorIoIntegrationQuizTest { assertNotNull(quizResult?.quizId) assertNotNull(quizResult?.quizVersionId) assertNotNull(quizResult?.quizSessionId) - assertEquals(quizResult?.isLastQuestion, true) assertEquals(quizResult?.nextQuestion?.id, 4) assertEquals(quizResult?.nextQuestion?.title, "Test Open Text") assertEquals(quizResult?.nextQuestion?.images?.primaryUrl, "/test-asset") diff --git a/library/src/test/resources/quiz_next_response.json b/library/src/test/resources/quiz_next_response.json index 1a4f19f5..5477d027 100644 --- a/library/src/test/resources/quiz_next_response.json +++ b/library/src/test/resources/quiz_next_response.json @@ -39,6 +39,5 @@ }, "quiz_version_id": "11db5ac7-67e1-4000-9000-414d8425cab3", "quiz_session_id": "31f6bdae-6f1d-482f-b37f-f7a9e346973a", - "quiz_id": "test-quiz", - "is_last_question": false + "quiz_id": "test-quiz" } \ No newline at end of file