aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-11 22:21:12 +0800
committercrupest <crupest@outlook.com>2021-02-11 22:21:12 +0800
commitb5376f71157f68f06aa04bde79389f9ab291d84a (patch)
tree369d3a89588e752983a26baff9c225ce43ad3ef8 /BackEnd/Timeline/Models/Http
parentd1317bd9fe08a933a13df88ba692343cde549123 (diff)
downloadtimeline-b5376f71157f68f06aa04bde79389f9ab291d84a.tar.gz
timeline-b5376f71157f68f06aa04bde79389f9ab291d84a.tar.bz2
timeline-b5376f71157f68f06aa04bde79389f9ab291d84a.zip
...
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePost.cs5
-rw-r--r--BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs2
2 files changed, 7 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
index 165c92da..26e1a92d 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimelinePost.cs
@@ -26,7 +26,12 @@ namespace Timeline.Models.Http
/// Post id.
/// </summary>
public long Id { get; set; }
+ /// <summary>
+ /// The data list.
+ /// </summary>
+#pragma warning disable CA2227
public List<HttpTimelinePostDataDigest> DataList { get; set; } = default!;
+#pragma warning restore CA2227
/// <summary>
/// True if post is deleted.
/// </summary>
diff --git a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
index 07d823ad..2a973c72 100644
--- a/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
+++ b/BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs
@@ -13,7 +13,9 @@ namespace Timeline.Models.Http
[Required]
[MinLength(1)]
[MaxLength(100)]
+#pragma warning disable CA2227
public List<HttpTimelinePostCreateRequestData> DataList { get; set; } = default!;
+#pragma warning restore CA2227
/// <summary>
/// Time of the post. If not set, current time will be used.