initial commit from an older template
This commit is contained in:
20
Models/DTO/InstructionTestCreateDTO.cs
Normal file
20
Models/DTO/InstructionTestCreateDTO.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using GamificationService.Utils.Enums;
|
||||
|
||||
namespace GamificationService.Models.DTO;
|
||||
|
||||
public class InstructionTestCreateDTO
|
||||
{
|
||||
public long? Id { get; set; }
|
||||
public string? Title { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Questions must be specified")]
|
||||
public ICollection<InstructionTestQuestionCreateDTO> Questions { get; set; } = null!;
|
||||
|
||||
public int MaxAttempts { get; set; } = 10;
|
||||
|
||||
[Range(0, 1.0, ErrorMessage = "Minimum score must be between 0.6 and 1.0")]
|
||||
public double MinScore { get; set; } = 0.6;
|
||||
|
||||
public InstructionTestScoreCalcMethod ScoreCalcMethod { get; set; } = InstructionTestScoreCalcMethod.MaxGrade;
|
||||
}
|
||||
Reference in New Issue
Block a user