NadekoBot/NadekoBot.Core/Services/ILocalization.cs

21 lines
707 B
C#
Raw Normal View History

2017-05-22 23:59:31 +00:00
using System.Collections.Concurrent;
using System.Globalization;
using Discord;
namespace NadekoBot.Core.Services
2017-05-22 23:59:31 +00:00
{
2017-07-25 16:31:30 +00:00
public interface ILocalization : INService
2017-05-22 23:59:31 +00:00
{
CultureInfo DefaultCultureInfo { get; }
ConcurrentDictionary<ulong, CultureInfo> GuildCultureInfos { get; }
CultureInfo GetCultureInfo(IGuild guild);
CultureInfo GetCultureInfo(ulong? guildId);
void RemoveGuildCulture(IGuild guild);
void RemoveGuildCulture(ulong guildId);
void ResetDefaultCulture();
void SetDefaultCulture(CultureInfo ci);
void SetGuildCulture(IGuild guild, CultureInfo ci);
void SetGuildCulture(ulong guildId, CultureInfo ci);
}
}