initial commit from an older template
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.InstructionTests;
|
||||
|
||||
public class CreateInstructionTestRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.InstructionTests;
|
||||
|
||||
public class CreateInstructionTestResponse
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.InstructionTests;
|
||||
|
||||
public class UpdateInstructionTestRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.InstructionTests;
|
||||
|
||||
public class UpdateInstructionTestResponse
|
||||
{
|
||||
|
||||
}
|
||||
37
Models/Messages/Instructions/CreateInstructionRequest.cs
Normal file
37
Models/Messages/Instructions/CreateInstructionRequest.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using GamificationService.Models.DTO;
|
||||
|
||||
namespace GamificationService.Models.Messages.Instructions;
|
||||
|
||||
public class CreateInstructionRequest
|
||||
{
|
||||
[Required(ErrorMessage = "Title is required")]
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Paragraphs are required")]
|
||||
public List<InstructionParagraphCreateDTO> Paragraphs { get; set; } = null!;
|
||||
|
||||
[Required(ErrorMessage = "Category id is required")]
|
||||
public long CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If AssignDate is set, the instruction will be automatically enabled
|
||||
/// when the date is reached. If it's not set, the test will automatically
|
||||
/// obtain the current date as its AssignDate as soon as the instruction
|
||||
/// will be enabled by the IsEnabled parameter.
|
||||
/// </summary>
|
||||
public DateTime? AssignDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When deadline is reached, no more submissions are allowed for this instruction.
|
||||
/// </summary>
|
||||
public DateTime? DeadlineDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Disabled instructions cannot be seen by users.
|
||||
/// Tests for such instructions cannot be submitted either.
|
||||
/// </summary>
|
||||
public bool IsEnabled { get; set; } = false;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.Instructions;
|
||||
|
||||
public class CreateInstructionResponse
|
||||
{
|
||||
|
||||
}
|
||||
40
Models/Messages/Instructions/UpdateInstructionRequest.cs
Normal file
40
Models/Messages/Instructions/UpdateInstructionRequest.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using GamificationService.Models.DTO;
|
||||
|
||||
namespace GamificationService.Models.Messages.Instructions;
|
||||
|
||||
public class UpdateInstructionRequest
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Title is required")]
|
||||
public string Title { get; set; } = null!;
|
||||
|
||||
public string? Description { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Paragraphs are required")]
|
||||
public List<InstructionParagraphCreateDTO> Paragraphs { get; set; } = null!;
|
||||
|
||||
[Required(ErrorMessage = "Category id is required")]
|
||||
public long CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If AssignDate is set, the instruction will be automatically enabled
|
||||
/// when the date is reached. If it's not set, the test will automatically
|
||||
/// obtain the current date as its AssignDate as soon as the instruction
|
||||
/// will be enabled by the IsEnabled parameter.
|
||||
/// </summary>
|
||||
public DateTime? AssignDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When deadline is reached, no more submissions are allowed for this instruction.
|
||||
/// </summary>
|
||||
public DateTime? DeadlineDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Disabled instructions cannot be seen by users.
|
||||
/// Tests for such instructions cannot be submitted either.
|
||||
/// </summary>
|
||||
public bool IsEnabled { get; set; } = false;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.Instructions;
|
||||
|
||||
public class UpdateInstructionResponse
|
||||
{
|
||||
|
||||
}
|
||||
6
Models/Messages/UserProfiles/CreateUserProfileRequest.cs
Normal file
6
Models/Messages/UserProfiles/CreateUserProfileRequest.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.UserProfiles;
|
||||
|
||||
public class CreateUserProfileRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace GamificationService.Models.Messages.UserProfiles;
|
||||
|
||||
public class CreateUserProfileResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
6
Models/Messages/UserProfiles/UpdateUserProfileRequest.cs
Normal file
6
Models/Messages/UserProfiles/UpdateUserProfileRequest.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.UserProfiles;
|
||||
|
||||
public class UpdateUserProfileRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace GamificationService.Models.Messages.UserProfiles;
|
||||
|
||||
public class UpdateUserProfileResponse
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user