Skip to content

Commit

Permalink
BATM-5812: renamed quizzes to questionnaires (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
drocek authored Jan 29, 2024
1 parent 442c025 commit d369cb1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# buildscript - project id
projectGroup=com.generalbytes.batm.public
projectVersion=1.3.7
projectVersion=1.3.8

# buildscript - common dependency versions
bitrafaelVersion=1.0.44
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package com.generalbytes.batm.server.extensions;

import com.generalbytes.batm.server.extensions.quiz.QuizResult;
import com.generalbytes.batm.server.extensions.questionnaire.QuestionnaireResult;

import java.math.BigDecimal;
import java.util.Date;
Expand Down Expand Up @@ -205,10 +205,10 @@ public interface ITransactionPreparation {
void setWithdrawalReason(int reason);

/**
* Returns quiz results if any quiz has been activated.
* Returns questionnaire results if any questionnaire has been activated.
*
* @return List of {@link QuizResult}. Can be null.
* @return List of {@link QuestionnaireResult}. Can be null.
*/
List<QuizResult> getQuizResults();
List<QuestionnaireResult> getQuestionnaireResults();

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************************
* Copyright (C) 2014-2020 GENERAL BYTES s.r.o. All rights reserved.
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
*
* This software may be distributed and modified under the terms of the GNU
* General Public License version 2 (GPL2) as published by the Free Software
Expand All @@ -17,7 +17,7 @@
************************************************************************************/
package com.generalbytes.batm.server.extensions;

import com.generalbytes.batm.server.extensions.quiz.QuizResult;
import com.generalbytes.batm.server.extensions.questionnaire.QuestionnaireResult;

import java.math.BigDecimal;
import java.util.Date;
Expand Down Expand Up @@ -160,11 +160,11 @@ public interface ITransactionRequest {
BigDecimal getDiscountQuotient();

/**
* Returns quiz results if any quiz has been activated.
* Returns questionnaire results if any questionnaire has been activated.
*
* @return List of {@link QuizResult}. Can be null.
* @return List of {@link QuestionnaireResult}. Can be null.
*/
List<QuizResult> getQuizResults();
List<QuestionnaireResult> getQuestionnaireResults();

/**
* Error message displayed to the customer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
* Web : http://www.generalbytes.com
*
************************************************************************************/
package com.generalbytes.batm.server.extensions.quiz;
package com.generalbytes.batm.server.extensions.questionnaire;

import com.generalbytes.batm.server.extensions.customfields.CustomFieldDefinition;
import com.generalbytes.batm.server.extensions.customfields.CustomFieldDefinitionType;

/**
* An object representing the question and answer data in the {@link QuizResult}.
* An object representing the question and answer data in the {@link QuestionnaireResult}.
*/
public class QuestionAnswer {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************************
* Copyright (C) 2014-2023 GENERAL BYTES s.r.o. All rights reserved.
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
*
* This software may be distributed and modified under the terms of the GNU
* General Public License version 2 (GPL2) as published by the Free Software
Expand All @@ -15,34 +15,34 @@
* Web : http://www.generalbytes.com
*
************************************************************************************/
package com.generalbytes.batm.server.extensions.quiz;
package com.generalbytes.batm.server.extensions.questionnaire;

import java.util.List;

/**
* An object representing data about quiz result.
* An object representing data about questionnaire result.
*/
public class QuizResult {
public class QuestionnaireResult {

private String quizName;
private String questionnaireName;

private List<QuestionAnswer> answers;

public QuizResult() {
public QuestionnaireResult() {

}

public QuizResult(String quizName, List<QuestionAnswer> answers) {
this.quizName = quizName;
public QuestionnaireResult(String questionnaireName, List<QuestionAnswer> answers) {
this.questionnaireName = questionnaireName;
this.answers = answers;
}

public String getQuizName() {
return quizName;
public String getQuestionnaireName() {
return questionnaireName;
}

public void setQuizName(String quizName) {
this.quizName = quizName;
public void setQuestionnaireName(String questionnaireName) {
this.questionnaireName = questionnaireName;
}

public List<QuestionAnswer> getAnswers() {
Expand Down

0 comments on commit d369cb1

Please sign in to comment.