Exemplo n.º 1
0
 public FirebaseMessage(WriteBehavior behavior, FirebasePath path, string value, FirebasePriority priority,
     FirebaseStatusCallback callback, MessageSouce source)
 {
     Behavior = behavior;
     Path = path;
     Value = value;
     Callback = callback;
     Priority = priority;
     Source = source;
 }
Exemplo n.º 2
0
 public FirebaseMessage(WriteBehavior behavior, FirebasePath path, string value, FirebasePriority priority,
                        FirebaseStatusCallback callback, MessageSouce source)
 {
     Behavior = behavior;
     Path     = path;
     Value    = value;
     Callback = callback;
     Priority = priority;
     Source   = source;
 }
Exemplo n.º 3
0
        public int Compare(JObject x, JObject y)
        {
            if (ReferenceEquals(x, y))
            {
                return(0);
            }

            var xp = new FirebasePriority((JValue)x[".priority"]);
            var yp = new FirebasePriority((JValue)y[".priority"]);

            int result = xp.CompareTo(yp);

            if (result == 0)
            {
                result = _keySort.Value.Compare(x.Path, y.Path);
            }

            return(result);
        }