private void getLocationAndSetSPUser() { if (checkIfValueHasBeenSet(location)) { String[] latAndLongt = location.Split(','); String latitude = spliLatAndLongt(latAndLongt [0]); String longtitude = spliLatAndLongt(latAndLongt [1]); SponsorPay.SPLocation locationToBeSet = new SponsorPay.SPLocation(); locationToBeSet.Lat = float.Parse(latitude); locationToBeSet.Long = float.Parse(longtitude); SPUser.SetLocation(locationToBeSet); } }
public void SetLocation(SPLocation location) { Put(SPLOCATION, location); }
private void getLocationAndSetSPUser() { if (checkIfValueHasBeenSet (location)) { String[] latAndLongt = location.Split (','); String latitude = spliLatAndLongt (latAndLongt [0]); String longtitude = spliLatAndLongt (latAndLongt [1]); SponsorPay.SPLocation locationToBeSet = new SponsorPay.SPLocation (); locationToBeSet.Lat = float.Parse (latitude); locationToBeSet.Long = float.Parse (longtitude); SPUser.SetLocation (locationToBeSet); } }