Created
March 21, 2018 14:03
-
-
Save projectxcappe/393075dd801be2aa5c81edf6b07d76b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct VenueListData: Codable { | |
let data: [VenueList] | |
let msg: String | |
let status: Int | |
let statuscode: Int | |
} | |
struct VenueList: Codable { | |
let venue_id: String | |
let place_id: String | |
let name: String | |
let description: String | |
let picture: String //what is the difference btwn logo and picture and name? | |
let logo: String | |
let venue_map: String | |
let food: [VenueFood] | |
} | |
struct VenueFood: Codable, Equatable { | |
let food_id: String | |
let venue_id: String | |
let category_id: String | |
let name: String | |
let description: String | |
let price: String | |
let pic: String | |
static func == (lhs: VenueFood, rhs: VenueFood) -> Bool { | |
return | |
lhs.food_id == rhs.food_id && | |
lhs.venue_id == rhs.venue_id && | |
lhs.category_id == rhs.category_id && | |
lhs.name == rhs.name && | |
lhs.description == rhs.description && | |
lhs.price == rhs.price && | |
lhs.pic == rhs.pic && | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment