XMPPResourceCoreDataStorageObject.h
1.25 KB
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
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPResource.h"
@class XMPPStream;
@class XMPPPresence;
@class XMPPUserCoreDataStorageObject;
@interface XMPPResourceCoreDataStorageObject : NSManagedObject <XMPPResource>
@property (nonatomic, strong) XMPPJID *jid;
@property (nonatomic, strong) XMPPPresence *presence;
@property (nonatomic, assign) int priority;
@property (nonatomic, assign) int intShow;
@property (nonatomic, strong) NSString * jidStr;
@property (nonatomic, strong) NSString * presenceStr;
@property (nonatomic, strong) NSString * streamBareJidStr;
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) NSString * show;
@property (nonatomic, strong) NSString * status;
@property (nonatomic, strong) NSDate * presenceDate;
@property (nonatomic, strong) NSNumber * priorityNum;
@property (nonatomic, strong) NSNumber * showNum;
@property (nonatomic, strong) XMPPUserCoreDataStorageObject * user;
+ (id)insertInManagedObjectContext:(NSManagedObjectContext *)moc
withPresence:(XMPPPresence *)presence
streamBareJidStr:(NSString *)streamBareJidStr;
- (void)updateWithPresence:(XMPPPresence *)presence;
- (NSComparisonResult)compare:(id <XMPPResource>)another;
@end