Skip to content

Instantly share code, notes, and snippets.

@chaintng
Last active December 11, 2018 09:00
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 chaintng/1b09f95787b2a483465623c42423f975 to your computer and use it in GitHub Desktop.
Save chaintng/1b09f95787b2a483465623c42423f975 to your computer and use it in GitHub Desktop.
review_structure.js
/*
TBD: AGODA, BOOKING => Should be ID or Enum string ?
TBD: Demographic (ALL_GUEST, BUSINESS_TRAVELLER) => ,
TBD: Score Category (OVERVIEW, CLEANLINESS) => Should be ID or Enum string ?
*/
{
reviews: {
displayingProviderId: AGODA,
defaultProviderId: AGODA,
reviewData: {
AGODA: {
maxScore: 10,
overviewScore: {
ALL_GUEST: {
reviewCount: 312,
scores: {
OVERVIEW: {
score: 8.9,
name: "",
scoreText: "",
},
CLEANLINESS: {
score: 8.5,
name: "Cleanliness",
scoreText: ""
},
...OTHER_SCORE_TYPE: {
...
},
}
},
BUSINESS_TRAVELLER: {
...,
},
...OTHER_DEMOGRAPHIC: {
...,
}
},
recommendationScore: 97
},
BOOKING: {
...
},
JTB: {
...
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment