From: liwei Date: Mon, 28 Sep 2020 07:35:21 +0000 (+0800) Subject: [Service][TV] Support more webapis.productinfo X-Git-Tag: submit/tizen/20201027.083557~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b7fec189a3c571f4b56ff318b51c7f18cd21651;p=platform%2Fframework%2Fweb%2Fwrtjs.git [Service][TV] Support more webapis.productinfo Support webapis.productinfo.is8KPanelSupported() / isUHDAModel() / getSmartTVServerType() / isWallModel() Native Patch: https://review.tizen.org/gerrit/244962/ Change-Id: Icdd34cf44338a8d5b92bfad1c98cd96b07309b4a Signed-off-by: liwei --- diff --git a/wrt_app/service/device_api_router.ts b/wrt_app/service/device_api_router.ts index 4ccf2ef8..8884fb36 100644 --- a/wrt_app/service/device_api_router.ts +++ b/wrt_app/service/device_api_router.ts @@ -87,8 +87,26 @@ export class DeviceAPIRouter { }, getSmartTVServerVersion: () => { return getCachedValue('getSmartTVServerVersion'); + }, + getSmartTVServerType: () => { + return Number(getCachedValue('getSmartTVServerType')); + }, + isWallModel: () => { + return (getCachedValue('isWallModel') === 'true'); + }, + isUHDAModel: () => { + return (getCachedValue('isUHDAModel') === 'true'); + }, + is8KPanelSupported: () => { + return (getCachedValue('is8KPanelSupported') === 'true'); } }; + + global.webapis.productinfo.ProductInfoSiServerType = { + SI_TYPE_OPERATIING_SERVER: 0, + SI_TYPE_DEVELOPMENT_SERVER: 1, + SI_TYPE_DEVELOPING_SERVER: 2 + }; } }