class AssessmentTotalScoreResource {

    @JsonIgnore
    public Integer getTotalScorePercentage() {
        if (totalScoreGiven == null || totalScoreGiven == 0) {
            return 0;
        }
        return totalScorePossible == 0 ? 0 : Math.round(totalScoreGiven * 100.0f / totalScorePossible);
    }

    public  AssessmentTotalScoreResource();
    public  AssessmentTotalScoreResource(Integer totalScoreGiven, Integer totalScorePossible);

}