Ejemplo n.º 1
0
 internal static DocumentSnapshot ForDocument(FirestoreDb db, Document document, Timestamp readTime) =>
 new DocumentSnapshot(db, document.Name, document, readTime);
Ejemplo n.º 2
0
 internal static DocumentSnapshot ForMissingDocument(FirestoreDb db, string name, Timestamp readTime) =>
 new DocumentSnapshot(db, name, null, readTime);
Ejemplo n.º 3
0
 internal WriteBatch(FirestoreDb firestoreDb)
 {
     _db = firestoreDb;
 }
Ejemplo n.º 4
0
 internal WatchStream(IWatchState state, Target target, FirestoreDb db, CancellationToken cancellationToken)
     : this(SystemScheduler.Instance, state, target, db, cancellationToken)
 {
 }
Ejemplo n.º 5
0
 internal CollectionReference(FirestoreDb database, DocumentReference parent, string id) : base(database, parent, id)
 {
     Parent = parent; // May be null
     Id     = GaxPreconditions.CheckNotNull(id, nameof(id));
     Path   = $"{ParentPath}/{Id}";
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a sentinel value to indicate the removal of the given values with an array. This over
 /// </summary>
 /// <param name="database">Database to check for custom serialization.</param>
 /// <param name="values">The values to include in the resulting sentinel value. Must not be null.</param>
 /// <returns>A sentinel value representing an array removal.</returns>
 public static object ArrayRemove(FirestoreDb database, params object[] values) =>
 SentinelValue.ForArrayValue(GaxPreconditions.CheckNotNull(database, nameof(database)).SerializationContext, SentinelKind.ArrayRemove, values);
Ejemplo n.º 7
0
 private Query(FirestoreDb database, StructuredQuery query, CollectionReference collection)
 {
     Database   = database;
     QueryProto = query;
     Collection = collection;
 }