aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/TimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-28 00:01:04 +0800
committercrupest <crupest@outlook.com>2020-08-28 00:01:04 +0800
commit12410a51fb2e5f55e8d83415bc3c4053a146ce3b (patch)
tree920ef556df34e0d69d990f8bf3ef2fdce13f9f46 /Timeline/Models/Http/TimelineController.cs
parentc10dc9e221317ea39f9ce0f172670ffbe94e6f8a (diff)
downloadtimeline-12410a51fb2e5f55e8d83415bc3c4053a146ce3b.tar.gz
timeline-12410a51fb2e5f55e8d83415bc3c4053a146ce3b.tar.bz2
timeline-12410a51fb2e5f55e8d83415bc3c4053a146ce3b.zip
Add change timeline name api to timeline controller.
Diffstat (limited to 'Timeline/Models/Http/TimelineController.cs')
-rw-r--r--Timeline/Models/Http/TimelineController.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Timeline/Models/Http/TimelineController.cs b/Timeline/Models/Http/TimelineController.cs
index 95bae3e6..7bd141ed 100644
--- a/Timeline/Models/Http/TimelineController.cs
+++ b/Timeline/Models/Http/TimelineController.cs
@@ -71,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!;
+ }
}