mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-16 08:34:06 +02:00
24 lines
737 B
C#
24 lines
737 B
C#
namespace TweetLib.Core.Features.Plugins.Enums{
|
|
public enum PluginGroup{
|
|
Official, Custom
|
|
}
|
|
|
|
public static class PluginGroupExtensions{
|
|
public static string GetIdentifierPrefix(this PluginGroup group){
|
|
switch(group){
|
|
case PluginGroup.Official: return "official/";
|
|
case PluginGroup.Custom: return "custom/";
|
|
default: return "unknown/";
|
|
}
|
|
}
|
|
|
|
public static string GetIdentifierPrefixShort(this PluginGroup group){
|
|
switch(group){
|
|
case PluginGroup.Official: return "o/";
|
|
case PluginGroup.Custom: return "c/";
|
|
default: return "?/";
|
|
}
|
|
}
|
|
}
|
|
}
|