AI-Studio/app/MindWork AI Studio/Assistants/Agenda/NumberParticipantsExtensions.cs

26 lines
1.2 KiB
C#
Raw Normal View History

2024-08-21 06:30:01 +00:00
namespace AIStudio.Assistants.Agenda;
2024-08-05 19:12:52 +00:00
public static class NumberParticipantsExtensions
{
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(NumberParticipantsExtensions).Namespace, nameof(NumberParticipantsExtensions));
2024-08-05 19:12:52 +00:00
public static string Name(this NumberParticipants numberParticipants) => numberParticipants switch
{
NumberParticipants.NOT_SPECIFIED => TB("Please select how many participants are expected"),
2024-08-05 19:12:52 +00:00
NumberParticipants.PEER_TO_PEER => TB("2 (peer to peer)"),
2024-08-05 19:12:52 +00:00
NumberParticipants.SMALL_GROUP => TB("3 - 5 (small group)"),
NumberParticipants.LARGE_GROUP => TB("6 - 12 (large group)"),
NumberParticipants.MULTIPLE_SMALL_GROUPS => TB("13 - 20 (multiple small groups)"),
NumberParticipants.MULTIPLE_LARGE_GROUPS => TB("21 - 30 (multiple large groups)"),
2024-08-05 19:12:52 +00:00
NumberParticipants.SYMPOSIUM => TB("31 - 100 (symposium)"),
NumberParticipants.CONFERENCE => TB("101 - 200 (conference)"),
NumberParticipants.CONGRESS => TB("201 - 1,000 (congress)"),
2024-08-05 19:12:52 +00:00
NumberParticipants.LARGE_EVENT => TB("1,000+ (large event)"),
2024-08-05 19:12:52 +00:00
_ => "Unknown"
};
}