From 2031679ffe433dd3c8f26cb636e6fb6733208594 Mon Sep 17 00:00:00 2001 From: CWX Date: Sat, 18 Jan 2025 12:44:43 +0000 Subject: [PATCH] changed to prim ctor and fixed warnings --- Core/Callbacks/BuildsCallbacks.cs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Core/Callbacks/BuildsCallbacks.cs b/Core/Callbacks/BuildsCallbacks.cs index 07b44282..4fff4e5d 100644 --- a/Core/Callbacks/BuildsCallbacks.cs +++ b/Core/Callbacks/BuildsCallbacks.cs @@ -2,29 +2,17 @@ using Core.Controllers; using Core.Models.Eft.Builds; using Core.Models.Eft.Common; -using Core.Models.Eft.HttpResponse; using Core.Models.Eft.PresetBuild; -using Core.Models.Eft.Profile; using Core.Utils; namespace Core.Callbacks; [Injectable] -public class BuildsCallbacks +public class BuildsCallbacks( + HttpResponseUtil _httpResponseUtil, + BuildController _buildController +) { - protected HttpResponseUtil _httpResponseUtil; - protected BuildController _buildController; - - public BuildsCallbacks - ( - HttpResponseUtil httpResponseUtil, - BuildController buildController - ) - { - _httpResponseUtil = httpResponseUtil; - _buildController = buildController; - } - /// /// Handle client/builds/list ///