using System.Collections.Generic; namespace NadekoBot.Core.Services { /// /// Interface that all services which deal with configs should implement /// public interface IConfigService { /// /// Name of the config /// public string Name { get; } /// /// Loads new data and publishes the new state /// void Reload(); /// /// Gets the list of props you can set /// /// List of props IReadOnlyList GetSettableProps(); /// /// Gets the value of the specified property /// /// Prop name /// Value of the prop string GetSetting(string prop); /// /// Gets the value of the specified property /// /// Prop name /// Value of the prop string GetComment(string prop); /// /// Sets the value of the specified property /// /// Property to set /// Value to set the property to /// Success bool SetSetting(string prop, string newValue); } }