aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-04 21:26:01 +0800
committercrupest <crupest@outlook.com>2021-02-04 21:26:01 +0800
commita46460a3cc71497bc7d360ab3d7068059bc7a0cc (patch)
treed1d361e9e5204c06b4356db6d20e7b0adcc39021 /BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
parentad1e58e80ca5e3eb1e72b93affa82082a3ee861b (diff)
downloadtimeline-a46460a3cc71497bc7d360ab3d7068059bc7a0cc.tar.gz
timeline-a46460a3cc71497bc7d360ab3d7068059bc7a0cc.tar.bz2
timeline-a46460a3cc71497bc7d360ab3d7068059bc7a0cc.zip
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs')
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
index cfbec029..b25adf36 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
+using Timeline.Models.Validation;
namespace Timeline.Models.Http
{
@@ -15,5 +16,11 @@ namespace Timeline.Models.Http
/// Time of the post. If not set, current time will be used.
/// </summary>
public DateTime? Time { get; set; }
+
+ /// <summary>
+ /// Color of the post.
+ /// </summary>
+ [Color]
+ public string? Color { get; set; }
}
}