aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Model/FSTMutation.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Source/Model/FSTMutation.h')
-rw-r--r--Firestore/Source/Model/FSTMutation.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/Firestore/Source/Model/FSTMutation.h b/Firestore/Source/Model/FSTMutation.h
index 72f6a25..2d29dc9 100644
--- a/Firestore/Source/Model/FSTMutation.h
+++ b/Firestore/Source/Model/FSTMutation.h
@@ -16,9 +16,12 @@
#import <Foundation/Foundation.h>
+#include <vector>
+
+#include "Firestore/core/src/firebase/firestore/model/field_path.h"
+
@class FSTDocument;
@class FSTDocumentKey;
-@class FSTFieldPath;
@class FSTFieldValue;
@class FSTMaybeDocument;
@class FSTObjectValue;
@@ -46,9 +49,10 @@ NS_ASSUME_NONNULL_BEGIN
* Initializes the field mask with the given field paths. Caller is expected to either copy or
* or release the array of fields.
*/
-- (instancetype)initWithFields:(NSArray<FSTFieldPath *> *)fields NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithFields:(std::vector<firebase::firestore::model::FieldPath>)fields
+ NS_DESIGNATED_INITIALIZER;
-@property(nonatomic, strong, readonly) NSArray<FSTFieldPath *> *fields;
+- (const std::vector<firebase::firestore::model::FieldPath> &)fields;
@end
#pragma mark - FSTFieldTransform
@@ -65,9 +69,9 @@ NS_ASSUME_NONNULL_BEGIN
/** A field path and the FSTTransformOperation to perform upon it. */
@interface FSTFieldTransform : NSObject
- (instancetype)init NS_UNAVAILABLE;
-- (instancetype)initWithPath:(FSTFieldPath *)path
+- (instancetype)initWithPath:(firebase::firestore::model::FieldPath)path
transform:(id<FSTTransformOperation>)transform NS_DESIGNATED_INITIALIZER;
-@property(nonatomic, strong, readonly) FSTFieldPath *path;
+- (const firebase::firestore::model::FieldPath &)path;
@property(nonatomic, strong, readonly) id<FSTTransformOperation> transform;
@end