ICoordinateRepo¶
Namespace: Database.Repository.CoordinateRepo
Repository interface for sccessing and managing locations.
Methods¶
ExistsPostalCode(Int32)¶
Checks if there is an entry for that opstal code in the database.
Parameters¶
postalcode
Int32
Defines which entry will be checked.
Returns¶
Returns a boolean values for the existence of an entry in the database associated with the postalcode.
GetAllLocations()¶
Gets all postalcodes that are saved in the database.
Returns¶
List with all postalcodes.
GetLocation()¶
Retrieves the coordinates of the postalcode that was inserted last.
Returns¶
Returns coordinates of the location that was last chosen by the User.
GetUnlockedLocation()¶
Gets the next unlocked entry in CoordinateMappings and locks it for the next minute.
Returns¶
InsertNewPostalCode(CoordinateMapping)¶
Inserts a new combination of postalcode and coordinates.
Parameters¶
postalCodeLocation
CoordinateMapping
A CoordinateMapping instance that will be saved in the database.
Returns¶
UpdateTime(Int32, DateTime)¶
Updates the timestamp of an entry in the Coordinates Database.
Parameters¶
postalcode
Int32
Defines which entry will be updated.
newTime
DateTime
Defines the new time for that entry.