-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathMessage.h
More file actions
33 lines (26 loc) · 988 Bytes
/
Message.h
File metadata and controls
33 lines (26 loc) · 988 Bytes
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
//
// libobjcipc
// Message.h
//
// Created by Alan Yip on 6 Feb 2014
// Copyright 2014 Alan Yip. All rights reserved.
//
#import "header.h"
@interface OBJCIPCMessage : NSObject {
BOOL _isReply;
NSString *_messageIdentifier;
OBJCIPCReplyHandler _replyHandler;
NSString *_messageName;
NSDictionary *_dictionary;
}
@property(nonatomic) BOOL isReply;
@property(nonatomic, copy) NSString *messageIdentifier;
@property(nonatomic, copy) OBJCIPCReplyHandler replyHandler;
@property(nonatomic, copy) NSString *messageName;
@property(nonatomic, retain) NSDictionary *dictionary;
// construct new messages
+ (instancetype)handshakeMessageWithDictionary:(NSDictionary *)dictionary;
+ (instancetype)outgoingMessageWithMessageName:(NSString *)messageName dictionary:(NSDictionary *)dictionary messageIdentifier:(NSString *)messageIdentifier isReply:(BOOL)isReply replyHandler:(OBJCIPCReplyHandler)handler;
// retrieve message data with header and content
- (NSData *)messageData;
@end