-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.h
51 lines (40 loc) · 1.78 KB
/
User.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
47
48
49
50
51
//
// User.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"
#import "HeadshotAPIClient.h"
@class Company, EmployeeInfo, Department, OfficeLocation, Account;
@interface User : NSManagedObject
@property (nonatomic, retain) Account * account;
@property (nonatomic, retain) NSString * identifier;
@property (nonatomic, retain) NSString * firstName;
@property (nonatomic, retain) NSString * lastName;
@property (nonatomic, retain) NSString * fullName;
@property (nonatomic, retain) NSString * email;
@property (nonatomic, retain) NSString * avatarFaceUrl;
@property (nonatomic, retain) NSString * avatarFace2xUrl;
@property (nonatomic, retain) NSString * avatarUrl;
@property (nonatomic, retain) NSNumber * installedApp;
@property (nonatomic, retain) NSNumber * sharingOfficeLocation;
@property (nonatomic, retain) NSNumber * archived;
@property (nonatomic, retain) EmployeeInfo *employeeInfo;
@property (nonatomic, retain) Company *company;
@property (nonatomic, retain) User *manager;
@property (nonatomic, retain) Department *department;
@property (nonatomic, retain) NSSet *subordinates;
@property (nonatomic, retain) OfficeLocation *currentOfficeLocation;
@property (nonatomic, retain) OfficeLocation *primaryOfficeLocation;
@property (nonatomic, readonly) NSSet *messageThreads;
@property (nonatomic, readonly) NSString *nameInitials;
+ (NSArray *)findAllExcludeCurrent;
+ (void)usersWithCompletionHandler:(void(^)(NSArray *users, NSError *error))completionHandler;
@end
@interface NSManagedObject (SLRESTfulCoreDataQueryInterface)
- (void)updateWithCompletionHandler:(void(^)(id managedObject, NSError *error))completionHandler;
@end