variable emailTask

Codec for <EmailTask>.

Examples

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>");

Type

XmlParam<"EmailTask", EmailTask>

Usage

import { emailTask } from "protocol/params/mod.ts";