XMPPRoomLightMessageCoreDataStorageObject.h
1.63 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
43
44
45
46
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import "XMPPRoomLight.h"
#import "XMPPFramework/XMPPRoomMessage.h"
@interface XMPPRoomLightMessageCoreDataStorageObject : NSManagedObject <XMPPRoomMessage>
/**
* The properties below are documented in the XMPPRoomMessage protocol.
**/
@property (nonatomic, retain) XMPPMessage * message; // Transient (proper type, not on disk)
@property (nonatomic, retain) NSString * messageStr; // Shadow (binary data, written to disk)
@property (nonatomic, strong) XMPPJID * roomJID; // Transient (proper type, not on disk)
@property (nonatomic, strong) NSString * roomJIDStr; // Shadow (binary data, written to disk)
@property (nonatomic, retain) XMPPJID * jid; // Transient (proper type, not on disk)
@property (nonatomic, retain) NSString * jidStr; // Shadow (binary data, written to disk)
@property (nonatomic, retain) NSString * nickname;
@property (nonatomic, retain) NSString * body;
@property (nonatomic, retain) NSDate * localTimestamp;
@property (nonatomic, strong) NSDate * remoteTimestamp;
@property (nonatomic, assign) BOOL isFromMe;
@property (nonatomic, strong) NSNumber * fromMe;
/**
* The 'type' property can be used to inject event messages.
* For example: "JohnDoe entered the room".
*
* You can define your own types to suit your needs.
* All normal messages will have a type of zero.
**/
@property (nonatomic, strong) NSNumber * type;
/**
* If a single instance of XMPPRoomCoreDataStorage is shared between multiple xmppStream's,
* this may be needed to distinguish between the streams.
**/
@property (nonatomic, strong) NSString *streamBareJidStr;
@end