Package my.uum.service
Interface TelegramUIService
- All Known Implementing Classes:
TelegramUIServiceImpl
public interface TelegramUIService
Service interface for managing Telegram bot UI interactions.
-
Method Summary
Modifier and TypeMethodDescriptionfindStateForLocation(String location) Finds the state that contains a specific location.voidshowCitiesForState(String chatId, String state) Shows cities within a specific state.voidshowDistrictsForState(String chatId, String state) Shows districts within a specific state.voidshowMainMenu(String chatId) Displays the main menu to the user.voidshowStateOptions(String chatId, String state) Displays options available for a specific state.voidshowStatesList(String chatId) Shows a list of available states.voidshowWeatherResult(String chatId, String location, String weatherInfo) Displays weather information for a location.
-
Method Details
-
showMainMenu
Displays the main menu to the user.- Parameters:
chatId- Telegram chat ID
-
showStatesList
Shows a list of available states.- Parameters:
chatId- Telegram chat ID
-
showStateOptions
Displays options available for a specific state.- Parameters:
chatId- Telegram chat IDstate- Name of the state
-
showDistrictsForState
Shows districts within a specific state.- Parameters:
chatId- Telegram chat IDstate- Name of the state
-
showCitiesForState
Shows cities within a specific state.- Parameters:
chatId- Telegram chat IDstate- Name of the state
-
showWeatherResult
Displays weather information for a location.- Parameters:
chatId- Telegram chat IDlocation- Name of the locationweatherInfo- Weather information to display
-
findStateForLocation
Finds the state that contains a specific location.- Parameters:
location- Name of the location- Returns:
- Name of the state containing the location
-