-
Notifications
You must be signed in to change notification settings - Fork 0
/
Account.h
28 lines (22 loc) · 1.13 KB
/
Account.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
//
// Account.h
// Headshot-ios
//
// Created by Charlie White on 5/23/14.
// Copyright (c) 2014 Charlie White. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import <SLRESTfulCoreData.h>
@class User;
@interface Account : NSManagedObject
@property (nonatomic, retain) NSString * identifier;
@property (nonatomic, retain) User *currentUser;
+ (void)currentAccountWithCompletionHandler:(void(^)(Account *account, NSError *error))completionHandler;
+ (void)requestPasswordResetForEmail:(NSString *)email completion:(void(^)(NSString *message, NSError *error))completionHandler;
- (void)updateAccountWithSuccess:(void (^)(Account *account))success failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
- (void)updatePassword:(NSString *)currentPassword password:(NSString *)password confirmedPassword:(NSString *)confirmedPassword withCompletion:(void (^)(NSError *error))completion;
- (void)updateAvatarImage:(UIImage *)image withCompletion:(void (^)(UIImage *image, NSError *error))completion;
- (void)logoutWithCompletion:(void (^)(NSError *error))completion;
- (void)resetBadgeCount;
@end