CCShareNetwork.m 695 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // CCShareNetwork.m
  3. // Crypto Cloud / Nextcloud Project
  4. //
  5. // Created by Marino Faggiana on 13/02/16.
  6. // Copyright © 2016 TWS. All rights reserved.
  7. //
  8. #import "CCShareNetwork.h"
  9. @implementation CCShareNetwork
  10. - (id)init
  11. {
  12. self =[super init];
  13. if (self) {
  14. }
  15. return self;
  16. }
  17. + (DBSession*)sharedDBSession
  18. {
  19. static DBSession* sharedDBSession= nil;
  20. if (sharedDBSession == nil) {
  21. NSString *appKey = appKeyCryptoCloud;
  22. NSString *appSecret = appSecretCryptoCloud;
  23. sharedDBSession = [[DBSession alloc] initWithAppKey:appKey appSecret:appSecret root:kDBRootDropbox];
  24. }
  25. return sharedDBSession;
  26. }
  27. @end