Contoh struktur representasi katalog permainan lokal rk55.
{ } catalog.js{ } catalog.json
Salin kode
JavaScript
// Contoh konfigurasi data lokal katalog permainan rk55
const catalogConfig = {
platform: "rk55" ,
country: "id" ,
supportedGames: [
{ id: "182" , title: "Pharaoh Royals" , category: "Permainan Slot" },
{ id: "118" , title: "Lucky Piggy" , category: "Permainan Slot" },
{ id: "140" , title: "Gladi Glory" , category: "Permainan Slot" },
{ id: "138" , title: "Cruise Royale" , category: "Permainan Slot" },
{ id: "110" , title: "Fortune Tiger" , category: "Permainan Slot" }
],
defaultLocale: "Bahasa Indonesia"
};
function getGameInfo(gameId) {
return catalogConfig.supportedGames.find(item => item.id === gameId);
} JSON
{
"platform" : "rk55" ,
"country" : "id" ,
"supportedGames" : [
{ "id" : "182" , "title" : "Pharaoh Royals" , "category" : "Permainan Slot" },
{ "id" : "118" , "title" : "Lucky Piggy" , "category" : "Permainan Slot" },
{ "id" : "140" , "title" : "Gladi Glory" , "category" : "Permainan Slot" },
{ "id" : "138" , "title" : "Cruise Royale" , "category" : "Permainan Slot" },
{ "id" : "110" , "title" : "Fortune Tiger" , "category" : "Permainan Slot" }
],
"defaultLocale" : "Bahasa Indonesia"
}