ALCMessage Class Reference
Inherits from | NSNotification |
---|---|
Declared in | ALCMessage.h |
data
Convenience property for retrieving the raw data of the message. This will also be available via the “data” key of the userInfo
property.
@property (nonatomic, strong, readonly) NSDictionary<NSString*id> *data
Discussion
Convenience property for retrieving the raw data of the message. This will also be available via the “data” key of the userInfo
property.
Declared In
ALCMessage.h
topic
Convenience property for retrieving the topic of the message. This will also be available via the “topic” key of the userInfo
property.
A full list of supported topics may be found in ALCTopic.h.
@property (nonatomic, copy, readonly) NSString *topic
Discussion
Convenience property for retrieving the topic of the message. This will also be available via the “topic” key of the userInfo
property.
A full list of supported topics may be found in ALCTopic.h.
Declared In
ALCMessage.h
publisherIdentifier
Convenience method for retrieving the id of the publisher of the message. This will also be available via the “pub_id” key of the userInfo
property.
@property (nonatomic, copy, readonly) NSString *publisherIdentifier
Discussion
Convenience method for retrieving the id of the publisher of the message. This will also be available via the “pub_id” key of the userInfo
property.
Declared In
ALCMessage.h
– initWithData:topic:fromPublisher:
- (instancetype)initWithData:(NSDictionary<NSString*,id> *)data topic:(NSString *)topic fromPublisher:(id<ALCPublisher>)publisher
Declared In
ALCMessage.h