use of com.nextcloud.android.lib.resources.profile.GetHoverCardRemoteOperation in project android by nextcloud.
the class RetrieveHoverCardAsyncTask method doInBackground.
@Override
protected HoverCard doInBackground(Void... voids) {
try {
NextcloudClient client = clientFactory.createNextcloudClient(user);
RemoteOperationResult<HoverCard> result = new GetHoverCardRemoteOperation(userId).execute(client);
if (result.isSuccess()) {
return result.getResultData();
} else {
return null;
}
} catch (ClientFactory.CreationException | NullPointerException e) {
return null;
}
}
Aggregations