initial commit from an older template
This commit is contained in:
25
Models/DTO/InstructionParagraphCreateDTO.cs
Normal file
25
Models/DTO/InstructionParagraphCreateDTO.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GamificationService.Models.DTO;
|
||||
|
||||
public class InstructionParagraphCreateDTO
|
||||
{
|
||||
public long? Id { get; set; }
|
||||
|
||||
public long? InstructionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Order defines the order of the paragraphs inside the instruction.
|
||||
/// There must not be two paragraphs with the same order.
|
||||
/// </summary>
|
||||
public int Order { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Text is required")]
|
||||
public string Text { get; set; } = null!;
|
||||
|
||||
public string? ImageUrl { get; set; }
|
||||
|
||||
public string? VideoUrl { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user