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:
parent
5d464edd4d
commit
e63253dec0
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue