getServerUrl method
Implementation
Future<SimpleEntry> getServerUrl(WardenType warden) async {
if (warden == WardenType.USER || warden == WardenType.ADMIN)
throw ArgumentError("Invalid WArdenType $warden");
SimpleEntry simpleEntry = SimpleEntry(C_SERVER_PORT, C_SERVER_ADDRESS);
ConfigurationNameEnum configEnum = ConfigurationNameEnum.READ_SERVER_URL;
if (warden == WardenType.WRITE_SERVER)
configEnum = ConfigurationNameEnum.WRITE_SERVER_URL;
try {
simpleEntry = (await userTools.getConfigurationEntry(
smd, transaction, configEnum))!;
} on Exception {}
return simpleEntry;
}