Skip to content

Commit

Permalink
Merge pull request #151 from nextcloud/emailShare
Browse files Browse the repository at this point in the history
Add sharing to email
  • Loading branch information
AndyScherzinger authored Jun 14, 2018
2 parents 5be8718 + 990b223 commit 8cdae45
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public class GetRemoteShareesOperation extends RemoteOperation{
private static final String NODE_USERS = "users";
private static final String NODE_GROUPS = "groups";
private static final String NODE_REMOTES = "remotes";
private static final String NODE_EMAILS = "emails";
public static final String NODE_VALUE = "value";
public static final String PROPERTY_LABEL = "label";
public static final String PROPERTY_SHARE_TYPE = "shareType";
Expand Down Expand Up @@ -144,6 +145,7 @@ protected RemoteOperationResult run(OwnCloudClient client) {
JSONArray respExactUsers = respExact.getJSONArray(NODE_USERS);
JSONArray respExactGroups = respExact.getJSONArray(NODE_GROUPS);
JSONArray respExactRemotes = respExact.getJSONArray(NODE_REMOTES);
JSONArray respExactEmails = respExact.getJSONArray(NODE_EMAILS);
JSONArray respPartialUsers = respData.getJSONArray(NODE_USERS);
JSONArray respPartialGroups = respData.getJSONArray(NODE_GROUPS);
JSONArray respPartialRemotes = respData.getJSONArray(NODE_REMOTES);
Expand All @@ -153,11 +155,12 @@ protected RemoteOperationResult run(OwnCloudClient client) {
respExactRemotes,
respPartialUsers,
respPartialGroups,
respPartialRemotes
respPartialRemotes,
respExactEmails
};

ArrayList<Object> data = new ArrayList<Object>(); // For result data
for (int i=0; i<6; i++) {
for (int i=0; i<7; i++) {
for(int j=0; j< jsonResults[i].length(); j++){
JSONObject jsonResult = jsonResults[i].getJSONObject(j);
data.add(jsonResult);
Expand Down

0 comments on commit 8cdae45

Please sign in to comment.