Role.cs 710 B

1234567891011121314151617181920212223
  1. using System.Threading.Tasks;
  2. using MafiaTelegramBot.Controllers;
  3. using MafiaTelegramBot.Models;
  4. using MafiaTelegramBot.Resources;
  5. using Telegram.Bot.Types;
  6. using User = MafiaTelegramBot.DataBase.User;
  7. namespace MafiaTelegramBot.Game.GameRoles
  8. {
  9. public abstract class Role
  10. {
  11. protected abstract Roles RoleKey { get; }
  12. protected async Task<Message> DayAction(User user)
  13. {
  14. var room = await RoomController.GetRoom(user.GetRoomKey());
  15. //TODO user telling anything in one minute and vote
  16. return await Bot.SendWithMarkdown2(user.ChatId, strings.unexpected_error);
  17. }
  18. protected abstract Task<Message> NightAction(User user);
  19. }
  20. }