diff options
author | rsgowman <rgowman@google.com> | 2018-05-04 15:21:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 15:21:22 -0400 |
commit | e12b997c6147663c692233a7e29a7433f4aee6f6 (patch) | |
tree | c19fe24c70e057fac00de00ebe5c63214972d72d /Firestore/Source | |
parent | adc514a894b819c0a63e85c083b766907b68e6ea (diff) |
[De]serialize DocumentKeys via the remote Serializer (#1212)
Diffstat (limited to 'Firestore/Source')
-rw-r--r-- | Firestore/Source/Remote/FSTSerializerBeta.h | 4 |
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; |