variable pushTask

Codec for <PushTask>.

Examples

Build a <PushTask> element

import { assertStringIncludes } from "@std/assert";
import { pushTask } from "@hertzg/reolink-api/protocol/params";

const xml = pushTask.encode({
  channelId: 0,
  enable: 0,
  typeScheduleList: [{ type: "vehicle", valueTable: "0".repeat(168) }],
});

assertStringIncludes(xml, "<item><type>vehicle</type>");

Type

XmlParam<"PushTask", PushTask>

Usage

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