aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/Common.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-18 00:50:31 +0800
committercrupest <crupest@outlook.com>2020-01-18 00:50:31 +0800
commitc5f3c69b3a008ab87542e523e2a59f37801bd65a (patch)
tree8479cc9af91a7e7b1c0c60a0abc778244359bdbd /Timeline/Models/Http/Common.cs
parent289c7e1fada1f4dae6ce5e421e997ebddd55c2df (diff)
downloadtimeline-c5f3c69b3a008ab87542e523e2a59f37801bd65a.tar.gz
timeline-c5f3c69b3a008ab87542e523e2a59f37801bd65a.tar.bz2
timeline-c5f3c69b3a008ab87542e523e2a59f37801bd65a.zip
...
Diffstat (limited to 'Timeline/Models/Http/Common.cs')
-rw-r--r--Timeline/Models/Http/Common.cs33
1 files changed, 0 insertions, 33 deletions
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<T> : CommonResponse
{
public CommonDataResponse()