-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPLPlateStore.h
46 lines (40 loc) · 1.53 KB
/
PLPlateStore.h
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
41
42
43
44
45
46
//
// PLPlateStore.h
// Plate
//
// Created by emileleon on 12/9/13.
// Copyright (c) 2013 Plate SF. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PLMenu.h"
#import "PLMenuItem.h"
#import "PLPlatesTypesAndSizes.h"
#import "PLPlateSize.h"
#import "PLAccount.h"
#import "PLPayment.h"
@interface PLPlateStore : NSObject
{
PLPlatesTypesAndSizes *plateTypesSizes;
NSMutableArray *plateMenus;
PLMenu *aLaCarteMenu;
PLMenu *addOnsMenu;
PLAccount *account;
PLPayment *payment;
}
+ (PLPlateStore *)sharedStore;
- (void)clearCache;
// Account Management
- (PLAccount *) getAccount;
- (void)createAccount:(PLAccount *)pAccount forBlock:(void (^)(PLAccount *, NSError *))block;
- (void)login:(PLAccount *)pAccount forBlock:(void (^)(PLAccount *, NSError *))block;
- (void)logout:(void (^)(NSError *))block;
- (void)addPayment:(PLPayment *)pPayment forBlock:(void (^)(PLPayment *, NSError *))block;
- (void)getOrderHistory:(void (^)(NSMutableArray *, NSError *))block;
- (void)getPayment:(void (^)(PLPayment *, NSError *))block;
// Menus and Ordering
- (void)getPlateMenu:(PLPlateSize *)plateSize plateType:(PLPlateTypeSize *)plateTypeSize forBlock:(void (^)(PLMenu *menuResult, NSError *))block;
- (void)getAddOnMenu:(void (^)(PLMenu *menuResult, NSError *err))block;
- (void)getALaCarteMenu:(void (^)(PLMenu *menuResult, NSError *))block;
- (void)getPlateSizesAndTypes:(void (^)(PLPlatesTypesAndSizes *plateTypesSizes, NSError *err))block;
//- (void)getProductDetail:(PLMenuItem *)menuItem forBlock:(void (^)(PLMenuItem))
@end