aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/TimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-31 22:49:57 +0800
committerGitHub <noreply@github.com>2020-08-31 22:49:57 +0800
commit3e7e533016b04df4993df66842409cf5857983ee (patch)
tree187696f3303241177820ca65fa441655a03de257 /Timeline/Models/Http/TimelineController.cs
parentb2404a381178e962a09af018d3c0031f1918991a (diff)
parent7e414fb4a09e6d35fa32d48fdba38a537ffe1d23 (diff)
downloadtimeline-3e7e533016b04df4993df66842409cf5857983ee.tar.gz
timeline-3e7e533016b04df4993df66842409cf5857983ee.tar.bz2
timeline-3e7e533016b04df4993df66842409cf5857983ee.zip
Merge pull request #158 from crupest/dev
Develop new features of back end.
Diffstat (limited to 'Timeline/Models/Http/TimelineController.cs')
-rw-r--r--Timeline/Models/Http/TimelineController.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Timeline/Models/Http/TimelineController.cs b/Timeline/Models/Http/TimelineController.cs
index aad361ee..7bd141ed 100644
--- a/Timeline/Models/Http/TimelineController.cs
+++ b/Timeline/Models/Http/TimelineController.cs
@@ -57,6 +57,11 @@ namespace Timeline.Models.Http
public class TimelinePatchRequest
{
/// <summary>
+ /// New title. Null for not change.
+ /// </summary>
+ public string? Title { get; set; }
+
+ /// <summary>
/// New description. Null for not change.
/// </summary>
public string? Description { get; set; }
@@ -66,4 +71,23 @@ namespace Timeline.Models.Http
/// </summary>
public TimelineVisibility? Visibility { get; set; }
}
+
+ /// <summary>
+ /// Change timeline name request model.
+ /// </summary>
+ public class TimelineChangeNameRequest
+ {
+ /// <summary>
+ /// Old name of timeline.
+ /// </summary>
+ [Required]
+ [TimelineName]
+ public string OldName { get; set; } = default!;
+ /// <summary>
+ /// New name of timeline.
+ /// </summary>
+ [Required]
+ [TimelineName]
+ public string NewName { get; set; } = default!;
+ }
}