mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-24 00:06:22 +00:00
GetRemoteUserNameOperation returns username in result.data
This commit is contained in:
parent
6b69b5af1a
commit
d066e9da51
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
package com.owncloud.android.lib.resources.users;
|
package com.owncloud.android.lib.resources.users;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.apache.commons.httpclient.methods.GetMethod;
|
import org.apache.commons.httpclient.methods.GetMethod;
|
||||||
import org.apache.http.HttpStatus;
|
import org.apache.http.HttpStatus;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
@ -93,6 +95,10 @@ public class GetRemoteUserNameOperation extends RemoteOperation {
|
|||||||
|
|
||||||
// Result
|
// Result
|
||||||
result = new RemoteOperationResult(true, status, get.getResponseHeaders());
|
result = new RemoteOperationResult(true, status, get.getResponseHeaders());
|
||||||
|
// Username in result.data
|
||||||
|
ArrayList<Object> data = new ArrayList<Object>();
|
||||||
|
data.add(displayName);
|
||||||
|
result.setData(data);
|
||||||
mUserName = displayName;
|
mUserName = displayName;
|
||||||
|
|
||||||
Log.d(TAG, "*** Parsed user information: " + id + " - " + displayName + " - " + email);
|
Log.d(TAG, "*** Parsed user information: " + id + " - " + displayName + " - " + email);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user