diff options
author | crupest <crupest@outlook.com> | 2020-08-28 00:01:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-28 00:01:04 +0800 |
commit | 315a5fa6eea7511618266877fca6aa1275caed1c (patch) | |
tree | 8452312130c4f763c1c30a525f0e1b1fa0e8af94 /Timeline/Models/Http | |
parent | bdff6f0ad414f1ec1352d1d4e36c78e06e02ab80 (diff) | |
download | timeline-315a5fa6eea7511618266877fca6aa1275caed1c.tar.gz timeline-315a5fa6eea7511618266877fca6aa1275caed1c.tar.bz2 timeline-315a5fa6eea7511618266877fca6aa1275caed1c.zip |
Add change timeline name api to timeline controller.
Diffstat (limited to 'Timeline/Models/Http')
-rw-r--r-- | Timeline/Models/Http/TimelineController.cs | 19 |
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!;
+ }
}
|