Diffusion Apple API  6.10.3
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
Instance Methods | List of all members
PTDiffusionPartialJSONUpdateConstraint(PTDiffusionBinary) Category Reference

Introduction

Extension adding support to partial JSON update constraints for requiring primitive values at locations referenced with a JSON pointer.

Since
6.10

Instance Methods

(nullable instancetype) - withBinaryValue:atPointer:comparisonOperator:error:
 

Method Documentation

- (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.

Parameters
valueThe value to be compared against the topic value.
pointerA JSON Pointer) syntax reference locating the value in the JSON object. comparisonOperator The comparison operator. See PTDiffusionUpdateConstraintOperator.
errorLocation to store a reason in case of failure. May be nil.
Returns
The new constraint, or nil on failure.
Since
6.10

Extends class PTDiffusionPartialJSONUpdateConstraint.