Codec for <EmailTask>.
Build a <EmailTask> element
Build a <EmailTask> element
import { assertStringIncludes } from "@std/assert"; import { emailTask } from "@hertzg/reolink-api/protocol/params"; const xml = emailTask.encode({ channelId: 0, enable: 1, typeScheduleList: [{ type: "people", valueTable: "1".repeat(168) }], }); assertStringIncludes(xml, "<typeScheduleList><item><type>people</type>");