From 84e7f27a3f1885cfe986b154283bcade52f4408d Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 8 Dec 2017 14:01:13 -0800 Subject: Adding default option --- Firestore/Source/Public/FIRDocumentSnapshot.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Firestore/Source/Public') 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. */ -- cgit v1.2.3