Backup
public protocol Backup
A type that represents a backup created by the Hill Lists app and provides read-only access to its data.
Properties are generally of two types:
- those that represent configuration options selected by the user on the app’s settings view; and
- those that store hill ascent-related data recorded by the user.
Additionally, there’s a property that stores metadata about the backup itself.
-
Various metadata describing properties of the backup itself.
Declaration
Swift
var metadata: Metadata -
The hill lists being tracked, ordered according to the selected sorting configuration. Entries are not duplicated i.e. the property could be represented by a sorted set.
Declaration
Swift
var trackedHillLists: [HillList] -
The hill ascents recorded in this backup. Elements appear to be in order by date of ascent, earliest first, with ascents on unknown dates sorting first. Entries are not duplicated i.e. the property could be represented by a sorted set.
Declaration
Swift
var ascendedHills: [AscendedHill] -
The configuration specifying how backups should be created and where they should be stored.
Declaration
Swift
var backupConfiguration: BackupConfiguration -
The various pieces of contact information entered by the user.
Declaration
Swift
var contactDetailsConfiguration: ContactDetailsConfiguration -
The units of measurement configured for presentation of distances and heights.
Declaration
Swift
var unitsConfiguration: UnitsConfiguration -
The map view configuration selected by the user.
Declaration
Swift
var mapViewConfiguration: MapViewConfiguration -
How tracked lists should be sorted in the app’s initial view and hills sorted in the view of an individual tracked list’s content.
Declaration
Swift
var sortingConfigurations: SortingConfigurations -
The last location set by the user or recorded by their iOS device, and how that location should be used.
Declaration
Swift
var locationConfiguration: LocationConfiguration -
Miscellaneous pieces of configuration data that don’t fit into or justify a more specific category.
Declaration
Swift
var miscellaneousConfiguration: MiscellaneousConfiguration
View on GitHub
Backup Protocol Reference