Today's Menu  Portugal
journal and plan nutrition
V7GoogDriveAPIController.h
Go to the documentation of this file.
1 //
2 // V7GoogDriveAPIController.h
3 // PantryLevel
4 //
5 // Created by Don Zeek on 12/27/18.
6 // Copyright © 2018 coordinated-medicine. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <GTLRDrive.h>
11 
12 NS_ASSUME_NONNULL_BEGIN
13 
14 
15 typedef enum {
21 } QueryStage;
22 
23 @protocol V7GoogDriveAPIProtocol <NSObject>
24 
25 @property (nonatomic, strong) GTLRDriveService *service;
26 
27 - (void) ticketCompleted:(GTLRServiceTicket *)ticket;
28 - (void) resultStage: (QueryStage)stage returnedFiles: (NSArray *)files;
29 
30 @end
31 
32 @interface V7GoogDriveAPIController : NSObject
33 
34 - (instancetype) initWithDelegate:(id <V7GoogDriveAPIProtocol>)delegate;
35 - (GTLRServiceTicket *)listRoot;
36 - (GTLRServiceTicket *)listJournalRoot:(NSString *)journalRootId;
37 - (NSArray *)listJournalItemRoot:(NSArray<GTLRDrive_File *> *)itemFiles;
38 - (GTLRServiceTicket *)listJournaItemPartRoot:(NSString *)journalItemPartRootId;
39 
40 - (void) placeRecipe;
41 
42 @end
43 
44 NS_ASSUME_NONNULL_END