Struktur konfigurasi mock data lokal untuk integrasi katalog game lampu777.
{ } example.js{ } example.json
Salin kode
JavaScript
// Konfigurasi objek lokal katalog game lampu777
const localCatalogConfig = {
platformId: 'lampu777' ,
locale: 'id-ID' ,
timeoutMs: 5000 ,
featuredTitles: [
{ id: '026' , name: 'Santas Gift Rush' , category: 'Slot' },
{ id: '022' , name: 'Legend Of Hou Yi' , category: 'Slot' },
{ id: '101' , name: 'Crypt Fortune' , category: 'Slot' },
{ id: '116' , name: 'Battleground' , category: 'Aksi' },
{ id: '139' , name: 'Safari Wilds' , category: 'Slot' }
]
};
function getFeaturedGameById(gameId) {
return localCatalogConfig.featuredTitles.find(item => item.id === gameId) || null ;
}
// Ekspor konfigurasi lokal untuk pengujian
module.exports = { localCatalogConfig, getFeaturedGameById }; JSON
{
"platformId" : "lampu777" ,
"locale" : "id-ID" ,
"timeoutMs" : 5000 ,
"featuredTitles" : [
{
"id" : "026" ,
"name" : "Santas Gift Rush" ,
"category" : "Slot"
},
{
"id" : "022" ,
"name" : "Legend Of Hou Yi" ,
"category" : "Slot"
},
{
"id" : "101" ,
"name" : "Crypt Fortune" ,
"category" : "Slot"
},
{
"id" : "116" ,
"name" : "Battleground" ,
"category" : "Aksi"
},
{
"id" : "139" ,
"name" : "Safari Wilds" ,
"category" : "Slot"
}
]
}