aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Remote/FSTWatchChange.h
diff options
context:
space:
mode:
authorGravatar zxu <zxu@google.com>2018-03-24 11:06:32 -0400
committerGravatar GitHub <noreply@github.com>2018-03-24 11:06:32 -0400
commitb3050e42d842a4aef122efd277481c46bfa88dff (patch)
treed18994e8d1c85d726ca3007f86ade676e70242b6 /Firestore/Source/Remote/FSTWatchChange.h
parent38170347b9f71798602f652e20404b565d4bd049 (diff)
port C++ `DocumentKey` to `Remote/*` (#965)
* port C++ DocumentKey to Remote's * port C++ DocumentKey to Remote's * address changes * address changes * address changes
Diffstat (limited to 'Firestore/Source/Remote/FSTWatchChange.h')
-rw-r--r--Firestore/Source/Remote/FSTWatchChange.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/Firestore/Source/Remote/FSTWatchChange.h b/Firestore/Source/Remote/FSTWatchChange.h
index 8ce24fa..8f730de 100644
--- a/Firestore/Source/Remote/FSTWatchChange.h
+++ b/Firestore/Source/Remote/FSTWatchChange.h
@@ -18,7 +18,8 @@
#import "Firestore/Source/Core/FSTTypes.h"
-@class FSTDocumentKey;
+#include "Firestore/core/src/firebase/firestore/model/document_key.h"
+
@class FSTExistenceFilter;
@class FSTMaybeDocument;
@class FSTSnapshotVersion;
@@ -41,21 +42,21 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithUpdatedTargetIDs:(NSArray<NSNumber *> *)updatedTargetIDs
removedTargetIDs:(NSArray<NSNumber *> *)removedTargetIDs
- documentKey:(FSTDocumentKey *)documentKey
+ documentKey:(firebase::firestore::model::DocumentKey)documentKey
document:(nullable FSTMaybeDocument *)document
NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
+/** The key of the document for this change. */
+- (const firebase::firestore::model::DocumentKey &)documentKey;
+
/** The new document applies to all of these targets. */
@property(nonatomic, strong, readonly) NSArray<NSNumber *> *updatedTargetIDs;
/** The new document is removed from all of these targets. */
@property(nonatomic, strong, readonly) NSArray<NSNumber *> *removedTargetIDs;
-/** The key of the document for this change. */
-@property(nonatomic, strong, readonly) FSTDocumentKey *documentKey;
-
/**
* The new document or DeletedDocument if it was deleted. Is null if the document went out of
* view without the server sending a new document.