diff options
Diffstat (limited to 'BackEnd/Timeline/Models/Http')
-rw-r--r-- | BackEnd/Timeline/Models/Http/HttpTimelinePost.cs | 5 | ||||
-rw-r--r-- | BackEnd/Timeline/Models/Http/HttpTimelinePostCreateRequest.cs | 2 |
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.
|