aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Model/FSTDocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'Firestore/Source/Model/FSTDocument.h')
-rw-r--r--Firestore/Source/Model/FSTDocument.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Firestore/Source/Model/FSTDocument.h b/Firestore/Source/Model/FSTDocument.h
index 36237fd..47e4d28 100644
--- a/Firestore/Source/Model/FSTDocument.h
+++ b/Firestore/Source/Model/FSTDocument.h
@@ -16,9 +16,9 @@
#import <Foundation/Foundation.h>
+#include "Firestore/core/src/firebase/firestore/model/document_key.h"
#include "Firestore/core/src/firebase/firestore/model/field_path.h"
-@class FSTDocumentKey;
@class FSTFieldValue;
@class FSTObjectValue;
@class FSTSnapshotVersion;
@@ -31,14 +31,14 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface FSTMaybeDocument : NSObject <NSCopying>
- (id)init __attribute__((unavailable("Abstract base class")));
+- (const firebase::firestore::model::DocumentKey &)key;
-@property(nonatomic, strong, readonly) FSTDocumentKey *key;
@property(nonatomic, readonly) FSTSnapshotVersion *version;
@end
@interface FSTDocument : FSTMaybeDocument
+ (instancetype)documentWithData:(FSTObjectValue *)data
- key:(FSTDocumentKey *)key
+ key:(firebase::firestore::model::DocumentKey)key
version:(FSTSnapshotVersion *)version
hasLocalMutations:(BOOL)mutations;
@@ -50,7 +50,8 @@ NS_ASSUME_NONNULL_BEGIN
@end
@interface FSTDeletedDocument : FSTMaybeDocument
-+ (instancetype)documentWithKey:(FSTDocumentKey *)key version:(FSTSnapshotVersion *)version;
++ (instancetype)documentWithKey:(firebase::firestore::model::DocumentKey)key
+ version:(FSTSnapshotVersion *)version;
@end
/** An NSComparator suitable for comparing docs using only their keys. */