From 4ec507df6251bc1dae5204fdc6aaf14ddbb268f6 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 18 Jan 2020 00:50:31 +0800 Subject: ... --- Timeline/Models/Http/Common.cs | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'Timeline/Models/Http/Common.cs') diff --git a/Timeline/Models/Http/Common.cs b/Timeline/Models/Http/Common.cs index d1e95397..a9fc8a79 100644 --- a/Timeline/Models/Http/Common.cs +++ b/Timeline/Models/Http/Common.cs @@ -1,15 +1,9 @@ -using System.Globalization; using static Timeline.Resources.Models.Http.Common; namespace Timeline.Models.Http { public class CommonResponse { - internal static CommonResponse InvalidModel(string message) - { - return new CommonResponse(ErrorCodes.Http.Common.InvalidModel, message); - } - public CommonResponse() { @@ -25,33 +19,6 @@ namespace Timeline.Models.Http public string? Message { get; set; } } - internal static class HeaderErrorResponse - { - internal static CommonResponse BadIfNonMatch() - { - return new CommonResponse(ErrorCodes.Http.Common.Header.IfNonMatch.BadFormat, MessageHeaderIfNonMatchBad); - } - } - - internal static class ContentErrorResponse - { - internal static CommonResponse TooBig(string maxLength) - { - return new CommonResponse(ErrorCodes.Http.Common.Content.TooBig, - string.Format(CultureInfo.CurrentCulture, MessageContentTooBig, maxLength)); - } - - internal static CommonResponse UnmatchedLength_Smaller() - { - return new CommonResponse(ErrorCodes.Http.Common.Content.UnmatchedLength_Smaller, MessageContentUnmatchedLengthSmaller); - } - internal static CommonResponse UnmatchedLength_Bigger() - { - return new CommonResponse(ErrorCodes.Http.Common.Content.UnmatchedLength_Bigger, MessageContentUnmatchedLengthBigger); - } - } - - public class CommonDataResponse : CommonResponse { public CommonDataResponse() -- cgit v1.2.3