mirror of
https://github.com/bspeice/itcs4180
synced 2025-08-02 13:35:25 -04:00
A whole lot of skeleton work for the scavenger hunt
This commit is contained in:
@ -0,0 +1,33 @@
|
||||
package edu.uncc.scavenger.database;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import edu.uncc.scavenger.rest.RestLocation;
|
||||
|
||||
public class LocationDatabaseClient {
|
||||
|
||||
/*
|
||||
* Super high-level API for working with locations.
|
||||
* Also helpful for just drawing out skeletons of code.
|
||||
*/
|
||||
|
||||
public List<RestLocation> getAllLocations() {
|
||||
// TODO: Implement method to get all locations that exist in the database
|
||||
return null;
|
||||
}
|
||||
|
||||
public void persistLocation(RestLocation location) {
|
||||
// TODO: Save a location to the database
|
||||
}
|
||||
|
||||
public void persistLocation(List<RestLocation> locations) {
|
||||
for (RestLocation l: locations) {
|
||||
persistLocation(l);
|
||||
}
|
||||
}
|
||||
|
||||
public void synchronizeLocations(List<RestLocation> locations) {
|
||||
// TODO: Implement method to save all values in locations, and remove values that aren't there.
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user