MarcoEidinger / npsapi-swift
Showing 2 of 77 files from the diff.
Other files ignored by Codecov
docs/index.html has changed.
docs/Classes.html has changed.
docs/docsets/.tgz has changed.
docs/Structs.html has changed.
docs/search.json has changed.
docs/Enums.html has changed.

@@ -20,14 +20,15 @@
Loading
20 20
    case addresses
21 21
    /// Hours and seasons when the park is open or closed
22 22
    case operatingHours
23 -
23 +
    /// Information about contacting staff at the facility
24 +
    case contacts
24 25
}
25 26
26 27
/// Park basics data includes location, contact, operating hours, and entrance fee/pass information for each national park. At least five photos of each park are also available.
27 28
public struct Park: Decodable, Identifiable, Hashable {
28 29
29 30
    enum CodingKeys: CodingKey {
30 -
        case id, parkCode, name, fullName, description, url, designation, states, latLong, directionsInfo, directionsUrl, weatherInfo, images, entranceFees, entrancePasses, addresses, operatingHours
31 +
        case id, parkCode, name, fullName, description, url, designation, states, latLong, directionsInfo, directionsUrl, weatherInfo, images, entranceFees, entrancePasses, addresses, operatingHours, contacts
31 32
    }
32 33
33 34
    /// Park identification string
@@ -64,9 +65,11 @@
Loading
64 65
    public let addresses: [Address]?
65 66
    /// Hours and seasons when the park is open or closed
66 67
    public let operatingHours: [OperatingHour]?
68 +
    /// Information about contacting staff at the facility
69 +
    public let contacts: ContactInformation?
67 70
68 71
    /// Memberwise Initializer
69 -
    public init(id: String, parkCode: String, name: String, fullName: String, description: String, designation: ParkUnitDesignation, states: [StateInUSA], gpsLocation: CLLocation?, directionsInfo: String, directionsUrl: URL?, weatherInfo: String?, url: URL?, images: [NpsImage]?, entranceFees: [Fee]?, entrancePasses: [Fee]?, addresses: [Address]?, operatingHours: [OperatingHour]?) {
72 +
    public init(id: String, parkCode: String, name: String, fullName: String, description: String, designation: ParkUnitDesignation, states: [StateInUSA], gpsLocation: CLLocation?, directionsInfo: String, directionsUrl: URL?, weatherInfo: String?, url: URL?, images: [NpsImage]?, entranceFees: [Fee]?, entrancePasses: [Fee]?, addresses: [Address]?, operatingHours: [OperatingHour]?, contacts: ContactInformation?) {
70 73
        self.id = id
71 74
        self.parkCode = parkCode
72 75
        self.name = name
@@ -84,6 +87,7 @@
Loading
84 87
        self.entrancePasses = entrancePasses
85 88
        self.addresses = addresses
86 89
        self.operatingHours = operatingHours
90 +
        self.contacts = contacts
87 91
    }
88 92
89 93
    /// Park can be compared for equality using the equal-to operator (`==`) or inequality using the not-equal-to operator (`!=`)
@@ -119,5 +123,6 @@
Loading
119 123
        entrancePasses = try values.decodeIfPresent([Fee].self, forKey: .entrancePasses)
120 124
        addresses = try values.decodeIfPresent([Address].self, forKey: .addresses)
121 125
        operatingHours = try values.decodeIfPresent([OperatingHour].self, forKey: .operatingHours)
126 +
        contacts = try values.decodeIfPresent(ContactInformation.self, forKey: .contacts)
122 127
    }
123 128
}

@@ -14,12 +14,14 @@
Loading
14 14
    case addresses
15 15
    /// Hours and seasons when the visitor center is open or closed
16 16
    case operatingHours
17 +
18 +
    case contacts
17 19
}
18 20
19 21
/// Visitor center data includes location, contact, and operating hours information for visitor centers and other visitor contact facilities in national parks At least one visitor center is listed for each park; some parks with multiple visitor centers may include information about more than one
20 22
public struct VisitorCenter: Decodable, Identifiable {
21 23
    enum CodingKeys: String, CodingKey {
22 -
        case id, parkCode, name, description, directionsInfo, directionsUrl, latLong, addresses, operatingHours
24 +
        case id, parkCode, name, description, directionsInfo, directionsUrl, latLong, addresses, operatingHours, contacts
23 25
    }
24 26
25 27
    /// ID
@@ -40,6 +42,8 @@
Loading
40 42
    public let addresses: [Address]?
41 43
    /// Hours and seasons when the visitor center is open or closed
42 44
    public let operatingHours: [OperatingHour]?
45 +
46 +
    public let contacts: ContactInformation?
43 47
}
44 48
45 49
extension VisitorCenter {
@@ -54,5 +58,6 @@
Loading
54 58
        gpsLocation = try values.decodeIfPresent(String.self, forKey: .latLong)?.toLocation()
55 59
        addresses = try values.decodeIfPresent([Address].self, forKey: .addresses)
56 60
        operatingHours = try values.decodeIfPresent([OperatingHour].self, forKey: .operatingHours)
61 +
        contacts = try values.decodeIfPresent(ContactInformation.self, forKey: .contacts)
57 62
    }
58 63
}
Files Coverage
Sources/NatParkSwiftKit 96.20%
Project Totals (12 files) 96.20%
78.1
default=
TRAVIS_OS_NAME=osx

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading