Przeglądaj źródła

Add actionGetSharePermissions

Marino Faggiana 7 lat temu
rodzic
commit
9aff5b47c6
2 zmienionych plików z 6 dodań i 1 usunięć
  1. 2 1
      iOSClient/CCGlobal.h
  2. 4 0
      iOSClient/Share/CCShareInfoCMOC.m

+ 2 - 1
iOSClient/CCGlobal.h

@@ -203,7 +203,7 @@ extern NSString *const urlBaseUploadDB;
 #define actionGetUserAndGroup                           @"getUserAndGroup"
 #define actionGetUserProfile                            @"getUserProfile"
 #define actionGetNotificationServer                     @"getNotificationServer"
-#define actionSetNotificationServer                     @"setNotificationServer"
+#define actionGetSharePermissions                       @"getSharePermissions"
 #define actionGetExternalSitesServer                    @"getExternalSitesServer"
 #define actionMiddlewarePing                            @"middlewarePing"
 #define actionListingFavorites                          @"listingFavorites"
@@ -212,6 +212,7 @@ extern NSString *const urlBaseUploadDB;
 #define actionReadFolder                                @"readFolder"
 #define actionReadShareServer                           @"readShareServer"
 #define actionSearch                                    @"search"
+#define actionSetNotificationServer                     @"setNotificationServer"
 #define actionSettingFavorite                           @"settingFavorite"
 #define actionShare                                     @"share"
 #define actionShareWith                                 @"shareWith"

+ 4 - 0
iOSClient/Share/CCShareInfoCMOC.m

@@ -152,6 +152,10 @@
     
     self.tableView.backgroundColor = [NCBrandColor sharedInstance].tableBackground;
     
+    CCMetadataNet *metadataNet = [[CCMetadataNet alloc] initWithAccount:app.activeAccount];
+    metadataNet.action = actionGetSharePermissions;
+    [app addNetworkingOperationQueue:app.netQueue delegate:self metadataNet:metadataNet];
+
     [self initializeForm];
 }