Skip to content

Commit

Permalink
using now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SlejmUr committed Oct 13, 2023
1 parent 6d6e04d commit 486dabf
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 31 deletions.
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Challenge.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Helpers;
using PayCheckServerLib.Jsons;
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Currency.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Helpers;
using PayCheckServerLib.Jsons;
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Custom.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using PayCheckServerLib.Helpers;

namespace PayCheckServerLib.Responses
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/DLCs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Jsons.Basic;

Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Entitlements.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Jsons;
using PayCheckServerLib.Jsons.Basic;
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Friends.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Helpers;
using PayCheckServerLib.Jsons;
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Items.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Jsons;
using PayCheckServerLib.Jsons.Basic;
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/LobbyBlocked.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;

namespace PayCheckServerLib.Responses
{
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Orders.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Jsons;
using PayCheckServerLib.Jsons.Basic;
Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Session.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Jsons.Basic;

Expand Down
5 changes: 4 additions & 1 deletion PayCheckServerLib/Responses/Telemetry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;

namespace PayCheckServerLib.Responses
{
Expand Down
38 changes: 21 additions & 17 deletions PayCheckServerLib/Responses/VersionResponse.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using NetCoreServer;
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Jsons;
using System.Text.RegularExpressions;
Expand All @@ -7,7 +10,7 @@ namespace PayCheckServerLib.Responses
{
public class VersionResponse
{
static bool GenericVersionResponse(HttpRequest request, PC3Server.PC3Session session)
static bool GenericVersionResponse(HttpRequest request, ServerStruct serverStruct)
{
ResponseCreator response = new ResponseCreator();

Expand Down Expand Up @@ -44,50 +47,51 @@ static bool GenericVersionResponse(HttpRequest request, PC3Server.PC3Session ses
};

response.SetBody(JsonConvert.SerializeObject(version));
session.SendResponse(response.GetResponse());
serverStruct.Response = response.GetResponse();
ResponseSender.SendResponse(serverStruct);
return true;
}

[HTTP("GET", "/iam/version")]
public static bool IamVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool IamVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/agreement/version")]
public static bool AgreementVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool AgreementVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/basic/version")]
public static bool BasicVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool BasicVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/platform/version")]
public static bool PlatformVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool PlatformVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/social/version")]
public static bool SocialVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool SocialVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/leaderboard/version")]
public static bool LeaderboardVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool LeaderboardVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/achievement/version")]
public static bool AchievementVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool AchievementVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/cloudsave/version")]
public static bool CloudSaveVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool CloudSaveVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/ugc/version")]
public static bool UGCVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool UGCVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/lobby/version")]
public static bool LobbyVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool LobbyVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/group/version")]
public static bool GroupVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool GroupVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/qosm/version")]
public static bool QOSMVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool QOSMVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/dsmcontroller/version")]
public static bool DSMControllerVersion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool DSMControllerVersion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }

[HTTP("GET", "/game-telemetry/version")]
public static bool GameTelemetryVerion(HttpRequest request, PC3Server.PC3Session session) { return GenericVersionResponse(request, session); }
public static bool GameTelemetryVerion(HttpRequest request, ServerStruct serverStruct) { return GenericVersionResponse(request, serverStruct); }
}
}
3 changes: 0 additions & 3 deletions PayCheckServerLib/WSController/LobbyControl.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using ModdableWebServer;
using ModdableWebServer.Attributes;
using ModdableWebServer.Helper;
using NetCoreServer;
using Newtonsoft.Json;
using PayCheckServerLib.Helpers;
using PayCheckServerLib.Jsons;
using System.Reflection.PortableExecutable;
using System.Text;
using static PayCheckServerLib.PC3Server;

namespace PayCheckServerLib.WSController
{
Expand Down

0 comments on commit 486dabf

Please sign in to comment.