From e12b997c6147663c692233a7e29a7433f4aee6f6 Mon Sep 17 00:00:00 2001 From: rsgowman Date: Fri, 4 May 2018 15:21:22 -0400 Subject: [De]serialize DocumentKeys via the remote Serializer (#1212) --- Firestore/Source/Remote/FSTSerializerBeta.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Firestore/Source') 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; -- cgit v1.2.3