diff options
author | Sebastian Schmidt <mrschmidt@google.com> | 2017-12-13 17:28:15 +0800 |
---|---|---|
committer | Sebastian Schmidt <mrschmidt@google.com> | 2017-12-13 17:30:11 +0800 |
commit | 2dd7324bd543027e2925e7e653ca83a7bad3c31b (patch) | |
tree | 908b8a11433463144b48238248599dfa8acd2532 /Firestore/Source/API | |
parent | cf4bda440f65939c9a3db7c45764868941b0abcd (diff) |
Adding missing SnapshotOptions method
Diffstat (limited to 'Firestore/Source/API')
-rw-r--r-- | Firestore/Source/API/FIRDocumentSnapshot.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Firestore/Source/API/FIRDocumentSnapshot.m b/Firestore/Source/API/FIRDocumentSnapshot.m index 36430ac..65c7b61 100644 --- a/Firestore/Source/API/FIRDocumentSnapshot.m +++ b/Firestore/Source/API/FIRDocumentSnapshot.m @@ -213,6 +213,12 @@ NS_ASSUME_NONNULL_BEGIN return data; } +- (NSDictionary<NSString *, id> *)dataWithOptions:(FIRSnapshotOptions *)options { + NSDictionary<NSString *, id> *data = [super dataWithOptions:options]; + FSTAssert(data, @"Document in a QueryDocumentSnapshot should exist"); + return data; +} + @end NS_ASSUME_NONNULL_END |