Contoh skrip konfigurasi lokal untuk pemetaan daftar game rprr.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi lingkungan pengujian lokal katalog permainan rprr
const rprrLocalConfig = {
brand: "rprr" ,
country: "id" ,
environment: "local-test" ,
supportedGames: [
{ id: "126" , name: "Diner Delights" },
{ id: "162" , name: "Three Cz Pigs" },
{ id: "185" , name: "Poker Kingdom" },
{ id: "104" , name: "Lgd Monkey Kg" },
{ id: "021" , name: "Mr Hallow Jp" }
],
statusCheck: true
};
function validateConfig(config) {
return config.supportedGames.length > 0 ;
}
validateConfig(rprrLocalConfig); JSON
{
"brand" : "rprr" ,
"country" : "id" ,
"environment" : "local-test" ,
"supportedGames" : [
{ "id" : "126" , "name" : "Diner Delights" },
{ "id" : "162" , "name" : "Three Cz Pigs" },
{ "id" : "185" , "name" : "Poker Kingdom" },
{ "id" : "104" , "name" : "Lgd Monkey Kg" },
{ "id" : "021" , "name" : "Mr Hallow Jp" }
],
"statusCheck" : true
}