2020-01-26 19:06:50 -05:00
|
|
|
|
using SharedLibraryCore.Interfaces;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2020-07-31 21:40:03 -04:00
|
|
|
|
using System.Text.Json.Serialization;
|
2020-01-26 19:06:50 -05:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Configuration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Basic command configuration
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CommandConfiguration : IBaseConfiguration
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Dict of command class names mapped to configurable properties
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Dictionary<string, CommandProperties> Commands { get; set; } = new Dictionary<string, CommandProperties>();
|
|
|
|
|
|
2020-07-31 21:40:03 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// prefix indicated the chat message is a command
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string CommandPrefix { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// prefix indicating that the chat message is a broadcast command
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string BroadcastCommandPrefix { get; set; }
|
|
|
|
|
|
2020-01-26 19:06:50 -05:00
|
|
|
|
public IBaseConfiguration Generate()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name() => nameof(CommandConfiguration);
|
|
|
|
|
}
|
|
|
|
|
}
|