feat(dal): добавлено расширение string ApplyShortcode - позволяет подставлять в строковых переменные шаблонные значения типа %ЭК%
This commit is contained in:
16
PARR.Constants/Shortcode/ShortcodeNames.cs
Normal file
16
PARR.Constants/Shortcode/ShortcodeNames.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace PARR.Constants.Shortcode
|
||||
{
|
||||
public static class ShortcodeNames
|
||||
{
|
||||
private static Dictionary<Shortcodes, string> ShortcodeNamesList = new Dictionary<Shortcodes, string>
|
||||
{
|
||||
{Shortcodes.EK, "%ЭК%" }
|
||||
};
|
||||
|
||||
public static string GetShortcodeName(Shortcodes shortcode)
|
||||
{
|
||||
return ShortcodeNamesList[shortcode];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user