Contoh berkas konfigurasi lokal JavaScript dan JSON untuk pemetaan data game rt555.
JavaScript
// Konfigurasi lokal katalog permainan rt555
const rt555LocalConfig = {
platform: "rt555",
country: "id",
environment: "local_test",
featuredGames: [
{ id: "070", name: "Genies Wishes", category: "Permainan Slot" },
{ id: "075", name: "Sct Cleopatra", category: "Permainan Slot" },
{ id: "120", name: "Legend Perseus", category: "Permainan Slot" },
{ id: "091", name: "Candy Superwin", category: "Permainan Kasual" },
{ id: "045", name: "Leprechaun Riches", category: "Permainan Slot" }
],
support: {
selfServiceUrl: "/help/troubleshooting/"
}
};
function getGameCategory(gameId) {
const item = rt555LocalConfig.featuredGames.find(g => g.id === gameId);
return item ? item.category : "Unknown";
}
JSON
{
"platform": "rt555",
"country": "id",
"environment": "local_test",
"featuredGames": [
{
"id": "070",
"name": "Genies Wishes",
"category": "Permainan Slot"
},
{
"id": "075",
"name": "Sct Cleopatra",
"category": "Permainan Slot"
},
{
"id": "120",
"name": "Legend Perseus",
"category": "Permainan Slot"
},
{
"id": "091",
"name": "Candy Superwin",
"category": "Permainan Kasual"
},
{
"id": "045",
"name": "Leprechaun Riches",
"category": "Permainan Slot"
}
],
"support": {
"selfServiceUrl": "/help/troubleshooting/"
}
}