From 0a0a61b60544a135a61394953bb5bb9dbbfeb241 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 2 Feb 2021 18:59:41 +0800 Subject: ... --- BackEnd/Timeline/Models/Http/TimelineController.cs | 90 ---------------------- 1 file changed, 90 deletions(-) delete mode 100644 BackEnd/Timeline/Models/Http/TimelineController.cs (limited to 'BackEnd/Timeline/Models/Http/TimelineController.cs') diff --git a/BackEnd/Timeline/Models/Http/TimelineController.cs b/BackEnd/Timeline/Models/Http/TimelineController.cs deleted file mode 100644 index 79be1826..00000000 --- a/BackEnd/Timeline/Models/Http/TimelineController.cs +++ /dev/null @@ -1,90 +0,0 @@ -using AutoMapper; -using System; -using System.ComponentModel.DataAnnotations; -using Timeline.Models.Validation; -using Timeline.Services; - -namespace Timeline.Models.Http -{ - /// - /// Content of post create request. - /// - public class HttpTimelinePostCreateRequestContent - { - /// - /// Type of post content. - /// - [Required] - public string Type { get; set; } = default!; - /// - /// If post is of text type, this is the text. - /// - public string? Text { get; set; } - /// - /// If post is of image type, this is base64 of image data. - /// - public string? Data { get; set; } - } - - public class HttpTimelinePostCreateRequest - { - /// - /// Content of the new post. - /// - [Required] - public HttpTimelinePostCreateRequestContent Content { get; set; } = default!; - - /// - /// Time of the post. If not set, current time will be used. - /// - public DateTime? Time { get; set; } - } - - /// - /// Create timeline request model. - /// - public class HttpTimelineCreateRequest - { - /// - /// Name of the new timeline. Must be a valid name. - /// - [Required] - [TimelineName] - public string Name { get; set; } = default!; - } - - /// - /// Patch timeline request model. - /// - public class HttpTimelinePatchRequest - { - /// - /// New name. Null for not change. - /// - [TimelineName] - public string? Name { get; set; } - - /// - /// New title. Null for not change. - /// - public string? Title { get; set; } - - /// - /// New description. Null for not change. - /// - public string? Description { get; set; } - - /// - /// New visibility. Null for not change. - /// - public TimelineVisibility? Visibility { get; set; } - } - - public class HttpTimelineControllerAutoMapperProfile : Profile - { - public HttpTimelineControllerAutoMapperProfile() - { - CreateMap(); - } - } -} -- cgit v1.2.3