chore: init commit from GitHub
This commit is contained in:
13
TelegramBot/EnumExtensions.cs
Normal file
13
TelegramBot/EnumExtensions.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using SWAD.API.Consts.Enums;
|
||||
|
||||
namespace TelegramBot;
|
||||
|
||||
public static class EnumExtensions
|
||||
{
|
||||
public static List<MusicService> Another(this MusicService service)
|
||||
{
|
||||
var list = Enum.GetValues<MusicService>().ToList();
|
||||
list.Remove(service);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user