Exemplo n.º 1
0
 /// <summary>
 /// adds snapshot listener to document, so OnEvent would be called if there's a change
 /// </summary>
 /// <param name="cName">collection name</param>
 /// <param name="dName">document name</param>
 /// <param name="gameActivity">game activity</param>
 public void AddSnapShotListenerToDocument(string cName, string dName, GameActivity gameActivity)
 {
     firestore.Collection(cName).Document(dName).AddSnapshotListener(gameActivity);
 }
Exemplo n.º 2
0
 /// <summary>
 /// adds snapshot listener to collection, so OnEvent would be called if there's a change
 /// </summary>
 /// <param name="cName">collection name</param>
 /// <param name="activity">game gameActivity</param>
 public void AddSnapshotListenerToCollection(string cName, GameActivity gameActivity)
 {
     firestore.Collection(cName).AddSnapshotListener(gameActivity);
 }