From 7074683aad1695624cc6decb7c447f4254d1b13b Mon Sep 17 00:00:00 2001 From: Chomp Date: Thu, 16 Jan 2025 17:06:22 +0000 Subject: [PATCH] Implemented `GetQteList` --- Core/Callbacks/DataCallbacks.cs | 3 +-- Core/Controllers/HideoutController.cs | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Core/Callbacks/DataCallbacks.cs b/Core/Callbacks/DataCallbacks.cs index e92f413a..b833d773 100644 --- a/Core/Callbacks/DataCallbacks.cs +++ b/Core/Callbacks/DataCallbacks.cs @@ -215,8 +215,7 @@ public class DataCallbacks /// public string GetQteList(string url, EmptyRequestData info, string sessionID) { - // return _httpResponseUtil.GetUnclearedBody(_hideoutController.GetQteList(sessionID)); TODO: HideoutController is not implemented rn - throw new NotImplementedException(); + return _httpResponseUtil.GetUnclearedBody(_hideoutController.GetQteList(sessionID)); } /// diff --git a/Core/Controllers/HideoutController.cs b/Core/Controllers/HideoutController.cs index 664d6f2e..585d0f1a 100644 --- a/Core/Controllers/HideoutController.cs +++ b/Core/Controllers/HideoutController.cs @@ -4,7 +4,6 @@ using Core.Helpers; using Core.Models.Eft.Common; using Core.Models.Eft.Hideout; using Core.Models.Eft.ItemEvent; -using Core.Models.Enums; using Core.Models.Spt.Config; using Core.Models.Utils; using Core.Routers; @@ -190,4 +189,9 @@ public class HideoutController return _eventOutputHolder.GetOutput(sessionId); } + + public List GetQteList(string sessionId) + { + return _databaseService.GetHideout().Qte; + } }