コード例 #1
0
        /// <summary>
        /// Adds Firebase Set Time Stamp request with callback to queue.
        /// </summary>
        /// <param name="firebase">Firebase.</param>
        /// <param name="keyName">Key name.</param>
        /// <param name="_OnSuccess">On success callback.</param>
        /// <param name="_OnFailed">On fail callback.</param>
        public void AddQueueSetTimeStamp(SimpleFirebase firebase, string keyName, Action <SimpleFirebase, SimpleDataSnapshot> _OnSuccess, Action <SimpleFirebase, SimpleFirebaseError> _OnFailed)
        {
            SimpleFirebase temp = firebase.Child(keyName);

            temp.OnSetSuccess += _OnSuccess;
            temp.OnSetFailed  += _OnFailed;

            AddQueueSet(temp, SERVER_VALUE_TIMESTAMP, true);
        }
コード例 #2
0
        /// <summary>
        /// Adds Firebase Set Time Stamp request to queue.
        /// </summary>
        /// <param name="firebase">Firebase.</param>
        /// <param name="keyName">Time stamp key name.</param>
        public void AddQueueSetTimeStamp(SimpleFirebase firebase, string keyName)
        {
            SimpleFirebase temp = firebase.Child(keyName, false);

            AddQueueSet(temp, SERVER_VALUE_TIMESTAMP, true, "print=silent");
        }