Diffusion Apple API
6.10.4
Unified Client Library for iOS, tvOS and OS X / macOS
|
Extension adding support to partial JSON update constraints for requiring primitive values at locations referenced with a JSON pointer.
Instance Methods | |
(nullable instancetype) | - withBinaryValue:atPointer:comparisonOperator:error: |
- (nullable instancetype) withBinaryValue: | (nonnull NSData *) | value | |
atPointer: | (nonnull NSString *) | pointer | |
comparisonOperator: | (nonnull PTDiffusionUpdateConstraintOperator *) | comparisonOperator | |
error: | (NSError *__autoreleasing *const) | error | |
Compares a location within the JSON topic value to a specified value.
If there is no value found at the specified pointer position, the constraint will be unsatisfied.
Only the operator IS) can be used with binary values.
value | The value to be compared against the topic value. |
pointer | A JSON Pointer) syntax reference locating the value in the JSON object. comparisonOperator The comparison operator. See PTDiffusionUpdateConstraintOperator. |
error | Location to store a reason in case of failure. May be nil . |
nil
on failure.Extends class PTDiffusionPartialJSONUpdateConstraint.