mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-13 23:42:46 +01:00
24 lines
710 B
C#
24 lines
710 B
C#
namespace TweetDuck.Plugins.Enums{
|
|
enum PluginGroup{
|
|
Official, Custom
|
|
}
|
|
|
|
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 "?/";
|
|
}
|
|
}
|
|
}
|
|
}
|