/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bounswe.group7.web.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 *
 * @author necil
 */
@JsonDeserialize(as = SaveQuizOption.class)
public class SaveQuizOption {
    public String text;
    public boolean isCorrect;
    
    public SaveQuizOption(){}
    
    public SaveQuizOption(String text, boolean isCorrect){
        this.text = text;
        this.isCorrect = isCorrect;
    }
}

@@ -422,33 +422,27 @@
  public 
-boolean isCorrect
+int isValid
 ;%0A    %0A 
@@ -518,25 +518,19 @@
 xt, 
-boolean isCorrect
+int isValid
 )%7B%0A 
@@ -573,27 +573,23 @@
 s.is
-Correct = isCorrect
+Valid = isValid
 ;%0A  

Bug Fix, getting the value of an option is true or false