aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source/Public
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <mrschmidt@google.com>2017-12-08 14:01:13 -0800
committerGravatar Sebastian Schmidt <mrschmidt@google.com>2017-12-08 14:02:23 -0800
commit84e7f27a3f1885cfe986b154283bcade52f4408d (patch)
treeeb735c6ed16faad3c7074b434929689b864cbe93 /Firestore/Source/Public
parentbf48b0abc18e098c2579ddd3bcd8694269e2db25 (diff)
Adding default option
Diffstat (limited to 'Firestore/Source/Public')
-rw-r--r--Firestore/Source/Public/FIRDocumentSnapshot.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/Firestore/Source/Public/FIRDocumentSnapshot.h b/Firestore/Source/Public/FIRDocumentSnapshot.h
index 0b72fe4..e8e73c9 100644
--- a/Firestore/Source/Public/FIRDocumentSnapshot.h
+++ b/Firestore/Source/Public/FIRDocumentSnapshot.h
@@ -39,6 +39,12 @@ typedef NS_ENUM(NSInteger, FIRServerTimestampBehavior) {
* have not yet been set to their final value.
*/
FIRServerTimestampBehaviorPrevious,
+
+ /**
+ * Return `NSNull` for `FieldValue.serverTimestamp()` fields that have not yet
+ * been set to their final value.
+ */
+ FIRServerTimestampBehaviorNone
};
/**
@@ -102,8 +108,8 @@ NS_SWIFT_NAME(DocumentSnapshot)
/**
* Retrieves all fields in the document as a `Dictionary`.
*
- * @param options `SnapshotOptions` to configure how data is returned from
- * the snapshot (e.g. the desired behavior for server timestamps that have not
+ * @param options `SnapshotOptions` to configure how data is returned from the
+ * snapshot (e.g. the desired behavior for server timestamps that have not
* yet been set to their final value).
* @return A `Dictionary` containing all fields in the document.
*/
@@ -129,8 +135,8 @@ NS_SWIFT_NAME(DocumentSnapshot)
* configure this behavior.
*
* @param field The field to retrieve.
- * @param options `SnapshotOptions` to configure how data is returned from
- * the snapshot (e.g. the desired behavior for server timestamps that have not
+ * @param options `SnapshotOptions` to configure how data is returned from the
+ * snapshot (e.g. the desired behavior for server timestamps that have not
* yet been set to their final value).
* @return The value contained in the field or `nil` if the field doesn't exist.
*/