-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMangoDataManager.h
More file actions
40 lines (28 loc) · 1.16 KB
/
MangoDataManager.h
File metadata and controls
40 lines (28 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// CollectionDataManager.h
// Mango
//
// Created by Juan Carlos Moreno on 4/17/14.
// Copyright (c) 2014 Juan Carlos Moreno. All rights reserved.
//
// Handles all data, formatting and connections to the db
#import <Foundation/Foundation.h>
#import "MangoConnectionManager.h"
@protocol MangoDataManager <NSObject>
-(void) setCollectionData: (NSArray *)data;
@end
@interface MangoDataManager : NSObject
@property MangoConnectionManager *ConnectionManager;
@property NSArray *CollectionData;
@property id<MangoDataManager> delegate;
- (void) fetchCollectionNamesForDB: (NSString *) DBName;
- (void) processCollectionsWithFilter: (NSString *) filterBy;
- (void) getObjectID: (NSString *) oid onDB: (NSString *) dbname;
-(NSMutableDictionary *) documentToMango: (NSDictionary *) item;
-(NSMutableArray *) convertMultipleJSONDocumentsToMangoFS: (NSArray *) data;
-(NSMutableArray *) convertMultipleJSONDocumentsToMango: (NSArray *) data;
-(NSMutableArray *) convertJSONDictionaryToMango: (NSDictionary *) data;
-(NSMutableDictionary *) convertJSONToMangoFromValue: (id) value withName: (NSString *) name;
# pragma mark - Mango to JSON
-(id)mangoToJSON: (id) data;
@end