Interface IMapRouletteConnection
-
- All Known Implementing Classes:
MapRouletteConnection
public interface IMapRouletteConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.lang.String>execute(Query query)A generic execute function that willbooleanisAbleToConnectToMapRoulette()Function used to check whether you can actually make a connection to the a MapRoulette server
-
-
-
Method Detail
-
isAbleToConnectToMapRoulette
boolean isAbleToConnectToMapRoulette()
Function used to check whether you can actually make a connection to the a MapRoulette server- Returns:
- True if connection is successful
-
execute
java.util.Optional<java.lang.String> execute(Query query) throws MapRouletteException
A generic execute function that will- Parameters:
query- The query to execute against the MapRoulette Server- Returns:
- A list of strings that would then need to be transformed by the caller
- Throws:
MapRouletteException- Any exceptions that occur while trying to list the data
-
-