Diffusion Apple API
6.10.4
Unified Client Library for iOS, tvOS and OS X / macOS
|
Extension adding support to Topics feature fetch requests allowing them to be constrained to only those topics with a data type compatible with primitive values.
- (void) fetchDoubleFloatNumberValuesWithTopicSelectorExpression: | (NSString *) | expression | |
completionHandler: | (PTDiffusionNumberFetchResult *_Nullable) | result | |
(NSError *_Nullable error) | completionHandler | ||
Sends a fetch request to the server, specifying that values should be returned for selected topics, constraining the selection to only those topics with a data type compatible with double-precision floating point (Eight-byte IEEE 754).
The doubleFloat data type constrains the topic types. So, any topic types specified in a previous call to topicTypes: (PTDiffusionFetchRequest) that cannot be read as double-precision floating point (Eight-byte IEEE 754) will be removed from the list of topic types.
Results are returned for all topics matching the selector that satisfy the request constraints within any range defined by fromTopicPath: (PTDiffusionFetchRequest) / afterTopicPath: (PTDiffusionFetchRequest) and/or toTopicPath: (PTDiffusionFetchRequest) / beforeTopicPath: (PTDiffusionFetchRequest)
expression | Specifies a topic selector, evaluated at the server, which selects the topics to be fetched. |
completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil . The completion handler will be called asynchronously on the main dispatch queue. |
NSInvalidArgumentException | Raised if any supplied arguments are nil . |
Extends class PTDiffusionFetchRequest.
- (void) fetchInt64NumberValuesWithTopicSelectorExpression: | (NSString *) | expression | |
completionHandler: | (PTDiffusionNumberFetchResult *_Nullable) | result | |
(NSError *_Nullable error) | completionHandler | ||
Sends a fetch request to the server, specifying that values should be returned for selected topics, constraining the selection to only those topics with a data type compatible with 64-bit integer.
The int64 data type constrains the topic types. So, any topic types specified in a previous call to topicTypes: (PTDiffusionFetchRequest) that cannot be read as 64-bit integer will be removed from the list of topic types.
Results are returned for all topics matching the selector that satisfy the request constraints within any range defined by fromTopicPath: (PTDiffusionFetchRequest) / afterTopicPath: (PTDiffusionFetchRequest) and/or toTopicPath: (PTDiffusionFetchRequest) / beforeTopicPath: (PTDiffusionFetchRequest)
expression | Specifies a topic selector, evaluated at the server, which selects the topics to be fetched. |
completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil . The completion handler will be called asynchronously on the main dispatch queue. |
NSInvalidArgumentException | Raised if any supplied arguments are nil . |
Extends class PTDiffusionFetchRequest.
- (void) fetchStringValuesWithTopicSelectorExpression: | (NSString *) | expression | |
completionHandler: | (PTDiffusionStringFetchResult *_Nullable) | result | |
(NSError *_Nullable error) | completionHandler | ||
Sends a fetch request to the server, specifying that values should be returned for selected topics, constraining the selection to only those topics with a data type compatible with string.
The string data type constrains the topic types. So, any topic types specified in a previous call to topicTypes: (PTDiffusionFetchRequest) that cannot be read as strings will be removed from the list of topic types.
Results are returned for all topics matching the selector that satisfy the request constraints within any range defined by fromTopicPath: (PTDiffusionFetchRequest) / afterTopicPath: (PTDiffusionFetchRequest) and/or toTopicPath: (PTDiffusionFetchRequest) / beforeTopicPath: (PTDiffusionFetchRequest)
expression | Specifies a topic selector, evaluated at the server, which selects the topics to be fetched. |
completionHandler | Block to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil . The completion handler will be called asynchronously on the main dispatch queue. |
NSInvalidArgumentException | Raised if any supplied arguments are nil . |
Extends class PTDiffusionFetchRequest.