void Awake() { Debug.Log("Awake"); if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
public void Delete(string locationId) { _locationCtrl = new LocationCtrl(); int.TryParse(locationId, out int locId); _locationCtrl.Delete(locId); }
public void SetTopLocations() { _locationCtrl = new LocationCtrl(); _locationCtrl.SetTopLocations(); }
public int UserUpdateLocation(Location location) { _locationCtrl = new LocationCtrl(); _locationCtrl.UserUpdateLocation(location); return(1); }
public void UpdateLocation(Location location) { _locationCtrl = new LocationCtrl(); _locationCtrl.UpdateLocation(location); }
public double GetAverageRating(string locationId) { _locationCtrl = new LocationCtrl(); int.TryParse(locationId, out int locId); return(_locationCtrl.GetAverageRating(locId)); }
public List <Location> GetLocationsByCommentUserName(string userName) { _locationCtrl = new LocationCtrl(); return(_locationCtrl.GetLocationsByCommentUserName(userName)); }
public List <Location> GetLocationsByTagName(string tagName) { _locationCtrl = new LocationCtrl(); return(_locationCtrl.GetLocationsByTagName(tagName)); }
public Location GetLocationByLocationName(string locationName) { _locationCtrl = new LocationCtrl(); return(_locationCtrl.GetLocationByName(locationName)); }
public Location GetLocationById(string locationId) { _locationCtrl = new LocationCtrl(); int.TryParse(locationId, out int locId); return(_locationCtrl.GetLocationById(locId)); }
public int CreateLocation(Location location) { _locationCtrl = new LocationCtrl(); return(_locationCtrl.CreateLocation(location)); }
public List <Location> GetAllLocations() { _locationCtrl = new LocationCtrl(); return(_locationCtrl.GetAllLocations()); }