diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-04-07 14:36:08 +0200 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2021-04-11 14:13:44 -0400 |
| commit | bc27c2b7da888b3fc9153cfb13dee8cc0e1b6622 (patch) | |
| tree | cdf2d7580d6094013e2214374219c06ecef60a02 /MediaBrowser.Model/Session | |
| parent | 37b969304ac569d44dd96b03778583743239ee27 (diff) | |
Merge pull request #5631 from BrianCArnold/FixMessageCommand
(cherry picked from commit a1718e392b4db4ba3123c52c3f654d3953a0e15f)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'MediaBrowser.Model/Session')
| -rw-r--r-- | MediaBrowser.Model/Session/MessageCommand.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Session/MessageCommand.cs b/MediaBrowser.Model/Session/MessageCommand.cs index 09abfbb3f..cc9db8e6c 100644 --- a/MediaBrowser.Model/Session/MessageCommand.cs +++ b/MediaBrowser.Model/Session/MessageCommand.cs @@ -1,12 +1,15 @@ #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; } |
