mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
OC-2746: Changes from comments in PR#1 in android-library repo
This commit is contained in:
parent
b4d67521b2
commit
bc8d0bd125
@ -106,12 +106,12 @@ public class RemoteOperationResult implements Serializable {
|
||||
private ResultCode mCode = ResultCode.UNKNOWN_ERROR;
|
||||
private String mRedirectedLocation;
|
||||
|
||||
private ArrayList<Object> mFiles;
|
||||
private ArrayList<Object> mData;
|
||||
|
||||
public RemoteOperationResult(ResultCode code) {
|
||||
mCode = code;
|
||||
mSuccess = (code == ResultCode.OK || code == ResultCode.OK_SSL || code == ResultCode.OK_NO_SSL);
|
||||
mFiles = null;
|
||||
mData = null;
|
||||
}
|
||||
|
||||
private RemoteOperationResult(boolean success, int httpCode) {
|
||||
@ -208,11 +208,11 @@ public class RemoteOperationResult implements Serializable {
|
||||
|
||||
|
||||
public void setData(ArrayList<Object> files){
|
||||
mFiles = files;
|
||||
mData = files;
|
||||
}
|
||||
|
||||
public ArrayList<Object> getData(){
|
||||
return mFiles;
|
||||
return mData;
|
||||
}
|
||||
|
||||
public boolean isSuccess() {
|
||||
|
@ -60,11 +60,8 @@ public class GetRemoteSharesOperation extends RemoteOperation {
|
||||
|
||||
private ArrayList<OCShare> mShares; // List of shares for result
|
||||
|
||||
private String mUrlServer;
|
||||
|
||||
|
||||
public GetRemoteSharesOperation(String urlServer) {
|
||||
mUrlServer = urlServer;
|
||||
public GetRemoteSharesOperation() {
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -73,8 +70,8 @@ public class GetRemoteSharesOperation extends RemoteOperation {
|
||||
int status = -1;
|
||||
|
||||
// Get Method
|
||||
GetMethod get = new GetMethod(mUrlServer + SHAREAPI_ROUTE);
|
||||
Log.d(TAG, "URL ------> " + mUrlServer + SHAREAPI_ROUTE);
|
||||
GetMethod get = new GetMethod(client.getBaseUri() + SHAREAPI_ROUTE);
|
||||
Log.d(TAG, "URL ------> " + client.getBaseUri() + SHAREAPI_ROUTE);
|
||||
|
||||
// Get the response
|
||||
try{
|
||||
|
Loading…
x
Reference in New Issue
Block a user