aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Source
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-05-04 15:21:22 -0400
committerGravatar GitHub <noreply@github.com>2018-05-04 15:21:22 -0400
commite12b997c6147663c692233a7e29a7433f4aee6f6 (patch)
treec19fe24c70e057fac00de00ebe5c63214972d72d /Firestore/Source
parentadc514a894b819c0a63e85c083b766907b68e6ea (diff)
[De]serialize DocumentKeys via the remote Serializer (#1212)
Diffstat (limited to 'Firestore/Source')
-rw-r--r--Firestore/Source/Remote/FSTSerializerBeta.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Firestore/Source/Remote/FSTSerializerBeta.h b/Firestore/Source/Remote/FSTSerializerBeta.h
index d1371fa..cdf5d1f 100644
--- a/Firestore/Source/Remote/FSTSerializerBeta.h
+++ b/Firestore/Source/Remote/FSTSerializerBeta.h
@@ -70,6 +70,10 @@ NS_ASSUME_NONNULL_BEGIN
/** Returns the database ID, such as `projects/{project id}/databases/{database_id}`. */
- (NSString *)encodedDatabaseID;
+/**
+ * Encodes the given document key as a fully qualified name. This includes the
+ * databaseId associated with this FSTSerializerBeta and the key path.
+ */
- (NSString *)encodedDocumentKey:(const firebase::firestore::model::DocumentKey &)key;
- (firebase::firestore::model::DocumentKey)decodedDocumentKey:(NSString *)key;