Index
All Classes and Interfaces|All Packages
A
- addLocation(String, String, String) - Method in class my.uum.model.LocationHierarchy
-
Adds a location to the hierarchy.
D
- DistrictConfig - Class in my.uum.config
-
Configuration class for districts by state in Malaysia.
- DistrictConfig() - Constructor for class my.uum.config.DistrictConfig
F
- findStateForDistrict(String) - Static method in class my.uum.config.DistrictConfig
-
Finds the state for a given district.
- findStateForLocation(String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Finds the state for a given location.
- findStateForLocation(String) - Method in interface my.uum.service.TelegramUIService
-
Finds the state that contains a specific location.
G
- getAllDistrictsByState() - Static method in class my.uum.config.DistrictConfig
-
Gets all districts by state.
- getAvailableCities() - Method in class my.uum.service.impl.WeatherServiceImpl
-
Retrieves a list of available cities for weather information.
- getAvailableCities() - Method in interface my.uum.service.WeatherService
-
Retrieves a list of all available cities.
- getBotUsername() - Method in class my.uum.MalaysiaWeatherBot
-
Returns the bot's username.
- getCategory(String) - Method in class my.uum.model.LocationHierarchy
-
Gets locations for a specific category.
- getChildren() - Method in class my.uum.model.LocationHierarchy.LocationNode
-
Gets the child nodes of this location.
- getCitiesByState() - Static method in class my.uum.config.StateConfig
-
Returns the map of cities by state.
- getCitiesByState() - Method in class my.uum.service.impl.WeatherServiceImpl
-
Retrieves a map of cities by state.
- getCitiesByState() - Method in interface my.uum.service.WeatherService
-
Gets a mapping of cities organized by state.
- getDistrictsForState(String) - Static method in class my.uum.config.DistrictConfig
-
Gets the districts for a specific state.
- getHierarchicalLocations() - Method in class my.uum.service.impl.WeatherServiceImpl
-
Retrieves a hierarchical structure of locations.
- getHierarchicalLocations() - Method in interface my.uum.service.WeatherService
-
Gets the hierarchical structure of locations.
- getHierarchy() - Method in class my.uum.model.LocationHierarchy
-
Gets the complete hierarchy structure.
- getName() - Method in class my.uum.model.LocationHierarchy.LocationNode
-
Gets the name of the location.
- getType() - Method in class my.uum.model.LocationHierarchy.LocationNode
-
Gets the type of the location.
- getWeather(String) - Method in class my.uum.service.impl.WeatherServiceImpl
-
Retrieves the weather information for a specified city.
- getWeather(String) - Method in interface my.uum.service.WeatherService
-
Gets the weather information for a specified city.
L
- LocationHierarchy - Class in my.uum.model
-
Represents a hierarchical structure of locations in Malaysia.
- LocationHierarchy() - Constructor for class my.uum.model.LocationHierarchy
-
Creates a new LocationHierarchy instance.
- LocationHierarchy.LocationNode - Class in my.uum.model
-
Represents a node in the location hierarchy.
- LocationNode(String, String) - Constructor for class my.uum.model.LocationHierarchy.LocationNode
-
Creates a new LocationNode.
M
- main(String[]) - Static method in class my.uum.Main
-
Main method to start the bot.
- Main - Class in my.uum
-
Main class to run the MalaysiaWeatherBot.
- Main() - Constructor for class my.uum.Main
- MalaysiaWeatherBot - Class in my.uum
-
Telegram bot for providing weather updates in Malaysia.
- MalaysiaWeatherBot() - Constructor for class my.uum.MalaysiaWeatherBot
-
Constructor to initialize the bot with necessary services.
- MessagingService - Interface in my.uum.service
-
Interface for messaging services.
- MessagingServiceImpl - Class in my.uum.service.impl
-
Implementation of the MessagingService interface for sending messages via Telegram.
- MessagingServiceImpl(TelegramLongPollingBot) - Constructor for class my.uum.service.impl.MessagingServiceImpl
-
Constructor to initialize the MessagingServiceImpl with a Telegram bot.
- my.uum - package my.uum
- my.uum.config - package my.uum.config
- my.uum.model - package my.uum.model
- my.uum.service - package my.uum.service
- my.uum.service.impl - package my.uum.service.impl
O
- onUpdateReceived(Update) - Method in class my.uum.MalaysiaWeatherBot
-
Handles incoming updates from Telegram.
S
- sendMessage(String, String) - Method in class my.uum.service.impl.MessagingServiceImpl
-
Sends a text message to a specified chat.
- sendMessage(String, String) - Method in interface my.uum.service.MessagingService
-
Sends a text message to a specified chat.
- sendMessage(String, SendMessage) - Method in class my.uum.service.impl.MessagingServiceImpl
-
Sends a SendMessage object to a specified chat.
- sendMessage(String, SendMessage) - Method in interface my.uum.service.MessagingService
-
Sends a SendMessage object to a specified chat.
- showCitiesForState(String, String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Shows the list of cities for a specific state to the user.
- showCitiesForState(String, String) - Method in interface my.uum.service.TelegramUIService
-
Shows cities within a specific state.
- showDistrictsForState(String, String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Shows the list of districts for a specific state to the user.
- showDistrictsForState(String, String) - Method in interface my.uum.service.TelegramUIService
-
Shows districts within a specific state.
- showMainMenu(String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Shows the main menu to the user.
- showMainMenu(String) - Method in interface my.uum.service.TelegramUIService
-
Displays the main menu to the user.
- showStateOptions(String, String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Shows the options for a specific state to the user.
- showStateOptions(String, String) - Method in interface my.uum.service.TelegramUIService
-
Displays options available for a specific state.
- showStatesList(String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Shows the list of states to the user.
- showStatesList(String) - Method in interface my.uum.service.TelegramUIService
-
Shows a list of available states.
- showWeatherResult(String, String, String) - Method in class my.uum.service.impl.TelegramUIServiceImpl
-
Shows the weather result for a specific location to the user.
- showWeatherResult(String, String, String) - Method in interface my.uum.service.TelegramUIService
-
Displays weather information for a location.
- StateConfig - Class in my.uum.config
-
Configuration class for storing state and city mappings.
- StateConfig() - Constructor for class my.uum.config.StateConfig
T
- TelegramUIService - Interface in my.uum.service
-
Service interface for managing Telegram bot UI interactions.
- TelegramUIServiceImpl - Class in my.uum.service.impl
-
Implementation of the TelegramUIService interface for handling Telegram UI operations.
- TelegramUIServiceImpl(MessagingService, WeatherService) - Constructor for class my.uum.service.impl.TelegramUIServiceImpl
-
Constructor to initialize the TelegramUIServiceImpl with necessary services.
W
- WeatherService - Interface in my.uum.service
-
Service interface for weather-related operations.
- WeatherServiceImpl - Class in my.uum.service.impl
-
Implementation of the WeatherService interface for retrieving weather data.
- WeatherServiceImpl() - Constructor for class my.uum.service.impl.WeatherServiceImpl
All Classes and Interfaces|All Packages