-
Notifications
You must be signed in to change notification settings - Fork 0
/
ContactStorage.h
40 lines (34 loc) · 1.18 KB
/
ContactStorage.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
//
// ContactStorage.h
// Calculator
//
// Created by Corey Allen Pett on 11/15/15.
// Copyright © 2015 Corey Allen Pett. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Contacts+CoreDataProperties.h"
@interface ContactStorage : NSObject
@property (strong, nonatomic) NSMutableArray *userContacts;
@property (strong, nonatomic) Contacts *selectedContact;
-(void)fetchContacts;
-(void)deleteContact:(long)index;
-(void)createContact:(NSString *)firstName
lastName:(NSString *)lastName
company:(NSString *)company
mobileNumber:(NSString *)mobileNumber
homeNumber:(NSString *)homeNumber
workNumber:(NSString *)workNumber
email:(NSString *)email
notes:(NSString *)notes
website:(NSString *)website;
-(void)saveContact:(NSString *)firstName
lastName:(NSString *)lastName
company:(NSString *)company
mobileNumber:(NSString *)mobileNumber
homeNumber:(NSString *)homeNumber
workNumber:(NSString *)workNumber
email:(NSString *)email
notes:(NSString *)notes
website:(NSString *)website;
@end