aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-11-07 22:06:06 +0800
committer杨宇千 <crupest@outlook.com>2019-11-07 22:06:06 +0800
commit5f9f9a9e40306f83bf360c3d27e4e33e78565fce (patch)
tree48ca95c6eb5dafe44d419bbe5d0ab49396209b13 /Timeline/Models/Http
parent9df5a86786ac2dcb8bc0f34f69501abfffd0dc9c (diff)
downloadtimeline-5f9f9a9e40306f83bf360c3d27e4e33e78565fce.tar.gz
timeline-5f9f9a9e40306f83bf360c3d27e4e33e78565fce.tar.bz2
timeline-5f9f9a9e40306f83bf360c3d27e4e33e78565fce.zip
Complete PersonalTimelineController and write attribute test.
Diffstat (limited to 'Timeline/Models/Http')
-rw-r--r--Timeline/Models/Http/Timeline.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs
index 37de9e58..f676afa0 100644
--- a/Timeline/Models/Http/Timeline.cs
+++ b/Timeline/Models/Http/Timeline.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
+using Timeline.Entities;
namespace Timeline.Models.Http
{
@@ -14,6 +15,26 @@ namespace Timeline.Models.Http
public DateTime? Time { get; set; }
}
+ public class TimelinePostCreateResponse
+ {
+ public long Id { get; set; }
+
+ public DateTime Time { get; set; }
+ }
+
+ public class TimelinePostDeleteRequest
+ {
+ [Required]
+ public long? Id { get; set; }
+ }
+
+ public class TimelinePropertyChangeRequest
+ {
+ public string? Description { get; set; }
+
+ public TimelineVisibility? Visibility { get; set; }
+ }
+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "This is a DTO class.")]
public class TimelineMemberChangeRequest
{