diff options
author | crupest <crupest@outlook.com> | 2021-02-04 21:26:01 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-04 21:26:01 +0800 |
commit | a46460a3cc71497bc7d360ab3d7068059bc7a0cc (patch) | |
tree | d1d361e9e5204c06b4356db6d20e7b0adcc39021 /BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs | |
parent | ad1e58e80ca5e3eb1e72b93affa82082a3ee861b (diff) | |
download | timeline-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.cs | 7 |
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; }
}
}
|