Ejemplo n.º 1
0
        /// <summary>
        /// Adds Firebase Set Priority request with callback to queue.
        /// </summary>
        /// <param name="firebase">Firebase node.</param>
        /// <param name="priority">Time stamp key name.</param>
        /// <param name="_OnSuccess">On success callback.</param>
        /// <param name="_OnFailed">On fail callback.</param>
        public void AddQueueSetPriority(Firebase firebase, float priority, Action<Firebase, DataSnapshot> _OnSuccess, Action<Firebase, FirebaseError> _OnFailed)
        {
            Firebase temp = firebase.Child(".priority");
            temp.OnSetSuccess += _OnSuccess;
            temp.OnSetFailed += _OnFailed;

            AddQueueSet(temp, priority);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds Firebase Set Time Stamp request with callback to queue.
        /// </summary>
        /// <param name="firebase">Firebase node.</param>
        /// <param name="keyName">Key name.</param>
        /// <param name="_OnSuccess">On success callback.</param>
        /// <param name="_OnFailed">On fail callback.</param>
        public void AddQueueSetTimeStamp(Firebase firebase, string keyName, Action<Firebase, DataSnapshot> _OnSuccess, Action<Firebase, FirebaseError> _OnFailed)
        {
            Firebase temp = firebase.Child(keyName);
            temp.OnSetSuccess += _OnSuccess;
            temp.OnSetFailed += _OnFailed;

            AddQueueSet(temp, SERVER_VALUE_TIMESTAMP, true);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Sets the priority of the node.
        /// </summary>
        /// <param name="OnSuccess">On success callback.</param>
        /// <param name="OnFailed">On failed callback.</param>
        /// <param name="priority">Priority.</param>
        /// <param name="query">REST call parameters wrapped in FirebaseQuery class</param>
        public void SetPriority(Action <Firebase, DataSnapshot> OnSuccess, Action <Firebase, FirebaseError> OnFailed, float priority, FirebaseParam query)
        {
            Firebase temp = Copy(false);

            temp.OnSetSuccess += OnSuccess;
            temp.OnSetFailed  += OnFailed;
            temp.Child(".priority").SetValue(priority, query);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Sets the time stamp with the time since UNIX epoch by server value (in milliseconds).
        /// </summary>
        /// <param name="OnSuccess">On success callback.</param>
        /// <param name="OnFailed">On failed callback.</param>
        /// <param name="keyName">Key name.</param>
        /// <param name="query">REST call parameters wrapped in FirebaseQuery class</param>
        public void SetTimeStamp(Action <Firebase, DataSnapshot> OnSuccess, Action <Firebase, FirebaseError> OnFailed, string keyName, FirebaseParam query)
        {
            Firebase temp = Copy(false);

            temp.OnSetSuccess += OnSuccess;
            temp.OnSetFailed  += OnFailed;
            temp.Child(keyName).SetValue(SERVER_VALUE_TIMESTAMP, true, query);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Adds Firebase Set Priority request to queue.
 /// </summary>
 /// <param name="firebase">Firebase node.</param>
 /// <param name="priority">Time stamp key name.</param>
 public void AddQueueSetPriority(Firebase firebase, float priority)
 {
     Firebase temp = firebase.Child(".priority", false);
     AddQueueSet(temp, priority, "print=silent");
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Adds Firebase Set Time Stamp request to queue.
 /// </summary>
 /// <param name="firebase">Firebase node.</param>
 /// <param name="keyName">Time stamp key name.</param>
 public void AddQueueSetTimeStamp(Firebase firebase, string keyName)
 {
     Firebase temp = firebase.Child(keyName, false);
     AddQueueSet(temp, SERVER_VALUE_TIMESTAMP, true, "print=silent");
 }