aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Models/Http/HttpTimelinePostPatchRequest.cs
blob: 3dface2946de95d9b174ea453fa33746b036a6d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using Timeline.Models.Validation;

namespace Timeline.Models.Http
{
    /// <summary>
    /// The model of changing post content.
    /// </summary>
    public class HttpTimelinePostPatchRequestContent
    {
        /// <summary>
        /// The new type of the post. If null, old type is used. This field can't be used alone. Use it with corresponding fields to change post content.
        /// </summary>
        [TimelinePostContentType]
        public string? Type { get; set; }
        /// <summary>
        /// The new text. Null for not change.
        /// </summary>
        public string? Text { get; set; }
        /// <summary>
        /// The new data. Null for not change.
        /// </summary>
        public string? Data { get; set; }
    }

    public class HttpTimelinePostPatchRequest
    {
        /// <summary>
        /// Change the time. Null for not change.
        /// </summary>
        public DateTime? Time { get; set; }

        /// <summary>
        /// Change the color. Null for not change.
        /// </summary>
        [Color]
        public string? Color { get; set; }
    }
}