/// <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); }
/// <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); }