/**** CONSTRUCTOR ****/ /// <summary> /// Create new Firebase endpoint /// </summary> /// <param name="_parent">Parent Firebase pointer</param> /// <param name="_key">Key under parent Firebase</param> /// <param name="_root">Root Firebase pointer</param> /// <param name="inheritCallback">If set to <c>true</c> inherit callback.</param> internal Firebase(Firebase _parent, string _key, FirebaseRoot _root, bool inheritCallback = false) { parent = _parent; key = _key; root = _root; fullKey = parent.FullKey + "/" + key; if (inheritCallback) { OnGetSuccess = parent.OnGetSuccess; OnGetFailed = parent.OnGetFailed; OnSetSuccess = parent.OnSetSuccess; OnSetFailed = parent.OnSetFailed; OnUpdateSuccess = parent.OnUpdateSuccess; OnUpdateFailed = parent.OnUpdateFailed; OnPushSuccess = parent.OnPushSuccess; OnPushFailed = parent.OnPushFailed; OnDeleteSuccess = parent.OnDeleteSuccess; OnDeleteFailed = parent.OnDeleteFailed; } }
internal Firebase() { parent = null; key = string.Empty; root = null; }