public void onDelete() { // write delete logic here DB_Details dbDetails = new DB_Details(); // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. DatabaseReference reference = FirebaseDatabase.DefaultInstance.RootReference; reference.Child(dbDetails.getTourDBName()).Child(Name.text).RemoveValueAsync().ContinueWith(task => { if (task.IsFaulted) { Debug.Log("ERROR: when accessing Data from Database"); } else if (task.IsCompleted) { Debug.Log("SUCCESS: DATA Deleted IN DATABASE"); } }); item.Destroy(); deletePanel.SetActive(false); }
public void Start() { foreach (var modifier in MeshModifiers) { modifier.Initialize(); } dbDetails = new DB_Details(); locations = new ArrayList(); coordinates = new ArrayList(); _instances = new List <GameObject>(); Singleton singleton = Singleton.Instance(); completedOffSet = 0; ScheduleName = singleton.getScheduleName(); UserName = singleton.getUserName(); path = false; // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; // Add current location to list CurrentPosition = Player.transform.GetGeoPosition(_map.CenterMercator, _map.WorldRelativeScale); locations.Add(new TourLocation("CurrentLocation", 0)); coordinates.Add(CurrentPosition); getScheduleData(); InvokeRepeating("UpdatePath", 2.0f, 0.3f); }
// Start is called before the first frame update void Start() { locations = new ArrayList(); dbDetails = new DB_Details(); // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; // To check if schedules are already displayed schedulesDisplayed = false; }
void Start() { tours = new ArrayList(); dbDetails = new DB_Details(); // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; singleton = Singleton.Instance(); TourName = singleton.getTourName(); TourNameText.text = TourName; locationsDisplayed = false; }
void Start() { scheduleData = new Dictionary <string, string>(); locations = new ArrayList(); dbDetails = new DB_Details(); // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; getLocationData(); locationsDisplayed = false; updateLocationsDisplayed = false; }
// Start is called before the first frame update void Start() { tours = new ArrayList(); dbDetails = new DB_Details(); Debug.Log(tours.Count); // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; getTourData(); toursDisplayed = false; startTime = DateTime.Now; }
public void Start() { foreach (var modifier in MeshModifiers) { modifier.Initialize(); } dbDetails = new DB_Details(); locations = new ArrayList(); coordinates = new ArrayList(); _instances = new List <GameObject>(); Singleton singleton = Singleton.Instance(); TourName = singleton.getTourName(); path = false; // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; CurrentPosition = Player.transform.GetGeoPosition(_map.CenterMercator, _map.WorldRelativeScale); locations.Add(new TourLocation("CurrentLocation", 0)); coordinates.Add(CurrentPosition); PSLocationArraySingleton pSLocationArraySingleton = PSLocationArraySingleton.Instance(); Dictionary <string, ArrayList> toursLocationsDictObject = pSLocationArraySingleton.getToursLocationDictionary(); sharedLocations = singleton.getSharedTourLocations(); int i = 0; foreach (string location in toursLocationsDictObject[TourName]) { locations.Add(new TourLocation(location, i)); i++; } getCoordinates(); InvokeRepeating("UpdatePath", 2.0f, 0.3f); }
void Start() { locationsData = new Dictionary <string, string>(); sharedLocationsData = new Dictionary <string, JObject>(); dbDetails = new DB_Details(); crud = new CrudOperations(); // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; singleton = Singleton.Instance(); ScheduleName = singleton.getScheduleName(); UserName = singleton.getUserName(); ScheduleNameText.text = ScheduleName; getScheduleData(); locationsDisplayed = false; }
public void Start() { foreach (var modifier in MeshModifiers) { modifier.Initialize(); } dbDetails = new DB_Details(); locations = new ArrayList(); coordinates = new ArrayList(); _instances = new List <GameObject>(); pathGenerated = false; path = false; // Set up the Editor before calling into the realtime database. FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(dbDetails.getDBUrl()); // Get the root reference location of the database. reference = FirebaseDatabase.DefaultInstance.RootReference; singleton = Singleton.Instance(); handleScene(); InvokeRepeating("UpdatePath", 2.0f, 0.3f); }