예제 #1
0
        private void onValueChanged(DBResult ea)
        {
            string s = ea.getRawJsonValue();

            if (!string.IsNullOrEmpty(s))
            {
                RemoteData rd = JsonConvert.DeserializeObject <RemoteData>(s);
                rd.setSource(s);
                if (!string.Equals(rd.sid, FirebaseManager.getMePid()))
                {
                    valueChangedListeners.ForEach(l => {
                        l(rd);
                    });
                }
            }
            initCallback.done();
        }