[FeaturedBrandsPanel] test, system alert (luna)
This commit is contained in:
@@ -269,3 +269,37 @@ export const deleteReservation = (scheduleIdList) => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const searchReservation = () => {
|
||||
if (typeof window === "object" && !window.PalmSystem) {
|
||||
console.log("LUNA SEND searchReservation");
|
||||
return;
|
||||
}
|
||||
|
||||
return new LS2Request().send({
|
||||
service: "luna://com.palm.db",
|
||||
method: "search",
|
||||
parameters: {
|
||||
query: {
|
||||
from: "com.webos.service.tvReservationAgent.info:1",
|
||||
orderBy: "startTime",
|
||||
filter: [{ prop: "reserveType", op: "=", val: 6 }], // 6 LG Shopping 전용.
|
||||
},
|
||||
},
|
||||
onSuccess: (res) => {
|
||||
console.log("LUNA SEND searchReservation success", res);
|
||||
let items = [];
|
||||
res.result.forEach((item) => {
|
||||
let obj = JSON.parse(item.information.information);
|
||||
items.push({
|
||||
_id: item._id,
|
||||
showId: obj.showId,
|
||||
});
|
||||
});
|
||||
return items;
|
||||
},
|
||||
onFailur: (err) => {
|
||||
console.log("LUNA SEND searchReservation failed", err);
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user