Added Required attribute to Text property of MessageCommand.

This commit is contained in:
Brian Arnold
2021-03-29 10:10:44 -04:00
parent 998833ea6e
commit ca25301e64
2 changed files with 3 additions and 8 deletions

View File

@@ -1,12 +1,14 @@
#nullable disable
#pragma warning disable CS1591
using System.ComponentModel.DataAnnotations;
namespace MediaBrowser.Model.Session
{
public class MessageCommand
{
public string Header { get; set; }
[Required(AllowEmptyStrings = false)]
public string Text { get; set; }
public long? TimeoutMs { get; set; }