Attributes

struct Attributes

The attributes for the WeatherTrait.

  • The current weather conditions.

    Declaration

    Swift

    let currentConditions: Google.WeatherTrait.CurrentConditions?
  • 12 hours of hourly forecasted weather conditions. Index 0 is the forecast for the current hour. For example, if it’s currently 16:32, index 0 is the forecast for 16:00-17:00.

    Declaration

    Swift

    let hourlyForecastConditionsArray: [Google.WeatherTrait.HourlyForecastConditions]
  • 10 days of daily forecasted weather conditions. Index 0 is the forecast for the current day. For example, if it’s currently Tuesday at 16:32, index 0 is the forecast for Tuesday.

    Declaration

    Swift

    let dailyForecastConditionsArray: [Google.WeatherTrait.DailyForecastConditions]
  • True if the user’s home does not have address information in the system.

    Declaration

    Swift

    let missingStructureLocation: Bool?
  • The source of the weather data. This is used for displaying attribution in the UI.

    Declaration

    Swift

    let weatherProvider: Google.WeatherTrait.WeatherProvider?
  • Epoch time in seconds of last update for any of the weather data.

    Declaration

    Swift

    let lastUpdateTimeEpochSeconds: Int64?
  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    static func == (lhs: Google.WeatherTrait.Attributes, rhs: Google.WeatherTrait.Attributes) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Hashes the essential components of this value by feeding them into the given hasher.

    Implement this method to conform to the Hashable protocol. The components used for hashing must be the same as the components compared in your type’s == operator implementation. Call hasher.combine(_:) with each of these components.

    Important

    In your implementation of hash(into:), don’t call finalize() on the hasher instance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.

    Declaration

    Swift

    func hash(into hasher: inout Hasher)