Refactor BotCommandNotice to use auto-properties

Changed BotCommandNotice constructor parameter names and replaced field assignments with auto-properties for improved clarity and maintainability.
This commit is contained in:
Madpeter 2025-10-05 18:21:50 +01:00
parent 5d464edd4d
commit e63253dec0

View file

@ -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
{