2021-07-04 17:34:10 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2021-07-04 14:19:12 +00:00
|
|
|
|
|
|
|
|
|
namespace Retroactiune.DataTransferObjects
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// FeedbackInDto is used by users for submitting feedback.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class FeedbackInDto
|
|
|
|
|
{
|
2021-07-04 17:34:10 +00:00
|
|
|
|
|
|
|
|
|
[Required, StringLength(24, ErrorMessage = "invalid guid, must be 24 characters", MinimumLength = 24)]
|
|
|
|
|
public string TokenId { get; set; }
|
|
|
|
|
|
|
|
|
|
[Required, Range(0, 5, ErrorMessage = "The rating is out of range. [0-5]")]
|
|
|
|
|
public uint Rating { get; set; }
|
2021-07-04 14:19:12 +00:00
|
|
|
|
|
|
|
|
|
[Required] public string Description { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|