Diffusion Apple API
6.1.5
Unified Client Library for iOS, tvOS and OS X / macOS
|
Topic details describe a topic.
Where many topics are to have the same definition, the same topic detail can (and indeed should) be used to create many topics.
Topic details are also used to provide details of existing topics to clients. In this case schema and/or attributes may not be present in the details if that level of detail was not requested.
Class Methods | |
(instancetype) | + NS_UNAVAILABLE |
(instancetype) | + topicDetailsWithType: |
(instancetype) | + recordTopicDetails |
(instancetype) | + recordTopicDetailsWithBuilderBlock: |
(instancetype) | + routingTopicDetails |
(instancetype) | + routingTopicDetailsWithBuilderBlock: |
(instancetype) | + singleValueTopicDetails |
(instancetype) | + singleValueTopicDetailsWithBuilderBlock: |
(instancetype) | + slaveTopicDetailsWithBuilderBlock: |
(instancetype) | + statelessTopicDetails |
(instancetype) | + statelessTopicDetailsWithBuilderBlock: |
Properties | |
PTDiffusionTopicAttributes * | attributes |
PTDiffusionTopicSchema * | schema |
PTDiffusionTopicType | type |
Instance Methods | |
(instancetype) | - NS_UNAVAILABLE |
(BOOL) | - isEqualToTopicDetails: |
- (BOOL) isEqualToTopicDetails: | (nullable PTDiffusionTopicDetails *) | topicDetails |
Compares the receiver to the given topic details.
topicDetails | The topic details object with which to compare the receiver. |
YES
if the topic details is equal to the receiver, otherwise NO
.+ (instancetype) recordTopicDetails |
Returns new topic details for a record topic with all default settings.
+ (instancetype) recordTopicDetailsWithBuilderBlock: | (PTDiffusionRecordTopicDetailsBuilderBlock) | block |
Returns new topic details for a record topic configured using the given builder block which is supplied an object conforming to the PTDiffusionRecordTopicDetailsBuilder protocol.
+ (instancetype) routingTopicDetails |
Returns new topic details for a routing topic with all default settings.
+ (instancetype) routingTopicDetailsWithBuilderBlock: | (PTDiffusionRoutingTopicDetailsBuilderBlock) | block |
Returns new topic details for a routing topic configured using the given builder block which is supplied an object conforming to the PTDiffusionRoutingTopicDetailsBuilder protocol.
+ (instancetype) singleValueTopicDetails |
Returns new topic details for a single value topic with all default settings.
+ (instancetype) singleValueTopicDetailsWithBuilderBlock: | (PTDiffusionSingleValueTopicDetailsBuilderBlock) | block |
Returns new topic details for a single value topic configured using the given builder block which is supplied an object conforming to the PTDiffusionSingleValueTopicDetailsBuilder protocol.
+ (instancetype) slaveTopicDetailsWithBuilderBlock: | (PTDiffusionSlaveTopicDetailsBuilderBlock) | block |
Returns new topic details for a slave topic configured using the given builder block which is supplied an object conforming to the PTDiffusionSlaveTopicDetailsBuilder protocol.
+ (instancetype) statelessTopicDetails |
Returns new topic details for a stateless topic with all default settings.
+ (instancetype) statelessTopicDetailsWithBuilderBlock: | (PTDiffusionTopicDetailsBuilderBlock) | block |
Returns new topic details for a stateless topic configured using the given builder block which is supplied an object conforming to the PTDiffusionTopicDetailsBuilder protocol.
+ (instancetype) topicDetailsWithType: | (PTDiffusionTopicType) | type |
Returns new topic details of the given type set with all default settings.
This provides a simpler mechanism than using a builder where all of the builder's default values are suitable and there are no mandatory properties.
type | The topic type for which default details are to be returned. |
PTDiffusionUnsupportedTopicDetailsBuildException | If the creation of topic details for the given type is not supported by this client library. |
PTDiffusionInvalidTopicDetailsBuilderStateException | If default details can't be created for the specified type as a builder has to be used. |
|
readnonatomicassign |
Attributes associated with this topic.
|
readnonatomicassign |
Schema associated with this topic.
|
readnonatomicassign |
The type of topic.