Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save projectxcappe/20be6fba693c525c00fa710e5ffa5788 to your computer and use it in GitHub Desktop.
Save projectxcappe/20be6fba693c525c00fa710e5ffa5788 to your computer and use it in GitHub Desktop.
struct Venue: Codable, Equatable {
static func ==(lhs: Venue, rhs: Venue) -> Bool {
return
lhs.longitude == rhs.longitude &&
lhs.latitude == rhs.latitude &&
lhs.venue_id == rhs.venue_id &&
lhs.venue_tax_rate == rhs.venue_tax_rate &&
lhs.name == rhs.name &&
lhs.places_count == rhs.places_count &&
lhs.address == rhs.address &&
lhs.close_time == rhs.close_time &&
lhs.open_time == rhs.open_time &&
lhs.phone_number == rhs.phone_number &&
lhs.image == rhs.image &&
lhs.venue_map == rhs.venue_map
}
let longitude: Double
let latitude: Double
let venue_id: Int
let venue_tax_rate: Double
let name: String
let places_count: Int
let address: String
let close_time: String
let open_time: String
let phone_number: String
let image: URL
let venue_map: URL
let places:[Place]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment