Wonky.Client/Wonky.Entity/DTO/ShortMessage.cs

13 lines
353 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
2023-03-19 10:05:44 +01:00
public class ShortMessage
{
[Required] [MaxLength(11)] public string From { get; set; } = "";
[Required] [MaxLength(1000)] public string To { get; set; } = "";
[Required] [MaxLength(100)] public string Body { get; set; } = "";
2023-04-11 15:50:24 +02:00
public bool Flash { get; set; }
}