C# Class SanderVantEinde.WindesheimRoosterBot.MessageHandlers.RoosterMessageHandler

Inheritance: SanderVantEinde.TelegramBot.TemplateMessageHandlerAsync
Show file Open project: sandervanteinde/TelegramBot Class Usage Examples

Protected Methods

Method Description
FormatRoosterResponse ( Rooster rooster, User user ) : TelegramBotReply
HandleMessageAsync ( TelegramBot bot, Message m, MessageHandlerType type ) : Task

Private Methods

Method Description
CountWithoutIgnoredLessen ( List lessen, UserPreferences preferences ) : int
GetResult ( RoosterFor roosterFor, System.DateTime date, System.DateTime restrict = null ) : Task
GetResult ( UserPreferences preferences, System.DateTime date, System.DateTime restrict = null ) : Task
GetRoosterForDocentOrKlas ( string command, string arguments, User from, RoosterFor roosterFor, bool useUserPreferences = true ) : Task
WrongDateFormat ( Message m ) : TelegramBotReply
WrongDateFormat ( int id ) : TelegramBotReply

Method Details

FormatRoosterResponse() protected method

protected FormatRoosterResponse ( Rooster rooster, User user ) : TelegramBotReply
rooster Rooster
user SanderVantEinde.TelegramBot.User
return SanderVantEinde.TelegramBot.TelegramBotReply

HandleMessageAsync() protected method

protected HandleMessageAsync ( TelegramBot bot, Message m, MessageHandlerType type ) : Task
bot SanderVantEinde.TelegramBot.TelegramBot
m SanderVantEinde.TelegramBot.Message
type MessageHandlerType
return Task