diff options
author | Michael Lehenbauer <mikelehen@gmail.com> | 2018-04-13 14:22:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 14:22:41 -0700 |
commit | 60d43d7b0980719beac21811da712f1cb4881308 (patch) | |
tree | 268424fabe81a547ee17b737177f24130b1f4d89 /Firestore/Source/API/FIRFieldValue+Internal.h | |
parent | dfdab5bee001546b3f36638c00b96b381cb4c040 (diff) |
Array Transforms public API and parsing
This includes the new FIRFieldValue sentinels, the FSTUserDataConverter code to parse them into internal ArrayTransform operations for use in an FSTTransformMutation, and some sanity testing in FSTMutationTests.
I still need to implement FSTTransformMutation support for local application and serialization (and then integration tests).
Diffstat (limited to 'Firestore/Source/API/FIRFieldValue+Internal.h')
-rw-r--r-- | Firestore/Source/API/FIRFieldValue+Internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Firestore/Source/API/FIRFieldValue+Internal.h b/Firestore/Source/API/FIRFieldValue+Internal.h index 2eb927e..1618cd4 100644 --- a/Firestore/Source/API/FIRFieldValue+Internal.h +++ b/Firestore/Source/API/FIRFieldValue+Internal.h @@ -42,4 +42,16 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)init NS_UNAVAILABLE; @end +/** FIRFieldValue class for array unions. */ +@interface FSTArrayUnionFieldValue : FIRFieldValue +- (instancetype)init NS_UNAVAILABLE; +@property(strong, nonatomic, readonly) NSArray<id> *elements; +@end + +/** FIRFieldValue class for array removes. */ +@interface FSTArrayRemoveFieldValue : FIRFieldValue +- (instancetype)init NS_UNAVAILABLE; +@property(strong, nonatomic, readonly) NSArray<id> *elements; +@end + NS_ASSUME_NONNULL_END |