From e63253dec0b2cae98da10952e90f5bb80d1faac1 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 5 Oct 2025 18:21:50 +0100 Subject: [PATCH] Refactor BotCommandNotice to use auto-properties Changed BotCommandNotice constructor parameter names and replaced field assignments with auto-properties for improved clarity and maintainability. --- SecondBotEvents/Services/CommandsService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SecondBotEvents/Services/CommandsService.cs b/SecondBotEvents/Services/CommandsService.cs index cff79c2..1a3b1f4 100644 --- a/SecondBotEvents/Services/CommandsService.cs +++ b/SecondBotEvents/Services/CommandsService.cs @@ -13,13 +13,13 @@ using System.ComponentModel.DataAnnotations; namespace SecondBotEvents.Services { - public class BotCommandNotice(string Setcommand, string Setargs, string Setsource, bool Setaccepted, string Setresults) + public class BotCommandNotice(string command, string args, string source, bool accepted, string results) { - public string command = Setcommand; - public string args = Setargs; - public string source = Setsource; - public bool accepted = Setaccepted; - public string results = Setresults; + public string command { get; set; } = command; + public string args { get; set; } = args; + public string source { get; set; } = source; + public bool accepted { get; set; } = accepted; + public string results { get; set; } = results; } public class CommandsService : BotServices {