Exemple #1
0
        public static async Task InitStatisticsStageAsync(TelegramBotClient client, StatisticsStage statisticsStage, BotUser botUser)
        {
            var initializer = GetAsyncStatisticsStageInitializer(statisticsStage);

            await initializer.Invoke(client, botUser);

            botUser.StatisticsStage = statisticsStage;
        }
Exemple #2
0
        public static StatisticsStage GetNext(this StatisticsStage current)
        {
            switch (current)
            {
            case None:
                return(None);

            case Age:
                return(WorkingOrStudying);

            case WorkingOrStudying:
                return(Profession);

            case Profession:
                return(Hobby);

            case Hobby:
                return(None);

            default:
                return(None);
            }
        }