-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kid.h
38 lines (30 loc) · 947 Bytes
/
Kid.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
//
// Kid.h
// Allowance
//
// Created by Pablo Collins on 6/13/10.
//
#import <CoreData/CoreData.h>
#import "Account.h"
#import "Transaction.h"
#import "Cal.h"
@interface Kid : NSManagedObject {
}
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSNumber *payAmount;
@property (nonatomic, strong) NSNumber *lastWeekPaid;
@property (nonatomic, strong) NSSet *accounts;
+ (void)createWithName:(NSString *)name andAllowance:(int)amount payToday:(bool)payToday;
- (Account *)savingsAccount;
- (NSNumber *)savingsBalance;
- (NSInteger)updateAccount;
- (void)updateAccountBy:(int)amount withNotes:(NSString *)notes;
- (NSString *)balanceString;
- (NSArray *)transactionHistory;
@end
@interface Kid (CoreDataGeneratedAccessors)
- (void)addAccountsObject:(NSManagedObject *)value;
- (void)removeAccountsObject:(NSManagedObject *)value;
- (void)addAccounts:(NSSet *)value;
- (void)removeAccounts:(NSSet *)value;
@end