Model konfigurasi objek JavaScript dan JSON untuk pengelolaan data katalog lokal t999.
JavaScript
// Konfigurasi status lokal permainan t999
const localGameCatalog = {
brand: "t999",
environment: "local_test",
activeGames: [
{ id: "038", name: "Emperors Favour", category: "Slot", enabled: true },
{ id: "056", name: "Shaolin Soccer", category: "Slot", enabled: true },
{ id: "092", name: "Wild Bandito", category: "Slot", enabled: false }
],
filterActive() {
return this.activeGames.filter(game => game.enabled);
}
};
console.log("Permainan aktif:", localGameCatalog.filterActive());
JSON
{
"brand": "t999",
"environment": "local_test",
"activeGames": [
{
"id": "038",
"name": "Emperors Favour",
"category": "Slot",
"enabled": true
},
{
"id": "056",
"name": "Shaolin Soccer",
"category": "Slot",
"enabled": true
},
{
"id": "092",
"name": "Wild Bandito",
"category": "Slot",
"enabled": false
}
]
}