aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/Timeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-30 20:26:52 +0800
committercrupest <crupest@outlook.com>2020-01-30 20:26:52 +0800
commit52acf41e331ddbd66befed4692c804b754ba7d5c (patch)
tree538ceea06640f501d2a950cac813c10561036e4d /Timeline/Models/Http/Timeline.cs
parentabde51b167f17301c25e32ae247e7909c0dc9367 (diff)
downloadtimeline-52acf41e331ddbd66befed4692c804b754ba7d5c.tar.gz
timeline-52acf41e331ddbd66befed4692c804b754ba7d5c.tar.bz2
timeline-52acf41e331ddbd66befed4692c804b754ba7d5c.zip
...
Diffstat (limited to 'Timeline/Models/Http/Timeline.cs')
-rw-r--r--Timeline/Models/Http/Timeline.cs42
1 files changed, 0 insertions, 42 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs
deleted file mode 100644
index 3029434e..00000000
--- a/Timeline/Models/Http/Timeline.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations;
-
-namespace Timeline.Models.Http
-{
- public class TimelinePostCreateRequest
- {
- [Required(AllowEmptyStrings = true)]
- public string Content { get; set; } = default!;
-
- 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
- {
- public List<string>? Add { get; set; }
-
- public List<string>? Remove { get; set; }
- }
-}