variable pushClientId

Codec for <PushClientID>.

Examples

Build a cmd 522 request

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

const xml = pushClientId.encode({
  clientType: "android",
  pushToken: "token-abc123",
});

assertStringIncludes(xml, "<pushToken>token-abc123</pushToken>");

Type

XmlParam<"PushClientID", PushClientId>

Usage

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