 //
 //  ForecastIOClient.swift
-//  8BitWeather
+//  ForecastIOClient
 //
 //  Created by Peter Willsey on 8/5/15.
 //  Copyright (c) 2015 Peter Willsey

        description = json["description"].stringValue
        uri = json["uri"].stringValue
    }
}

public struct Flags {

import AFNetworking
import SwiftyJSON

private func ==<T: Equatable>(lhs: [T]?, rhs: [T]?) -> Bool {
    switch (lhs, rhs) {
    case (.Some(let lhs), .Some(let rhs)):
        return lhs == rhs
    case (.None, .None):
        return true
    default:
        return false
    }
}

extension Forecast : Equatable {}

public func ==(lhs: Forecast, rhs: Forecast) -> Bool {
    return lhs.latitude == rhs.latitude && lhs.longitude == rhs.longitude && lhs.timezone == rhs.timezone && lhs.offset == rhs.offset && lhs.currently == rhs.currently && lhs.minutely == rhs.minutely && lhs.hourly == rhs.hourly && lhs.daily == rhs.daily && lhs.flags == rhs.flags && rhs.alerts == lhs.alerts
}

public struct Forecast {
    public var latitude: Double
    public var longitude: Double
