getM4eUser method
Returns an m4e user with user-id
Throws ServerException
if call to server fails
Throws ServerException
with NO_INTERNET_CONNECTION
error
code device is not connected to the internet
Implementation
Future<User> getM4eUser(UniqueId userId) async {
if ((await _connectionChecker.hasConnection) ?? false) {
try {
// TODO: implement fetching user with user-id
return Future.value(null);
} catch (e) {
rethrow;
}
}
throw ExceptionMessages.kNoInternetConnectionException;
}