variable imageFileInfo

Codec for <imageFileInfo>.

Examples

Announce an image to import

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

const xml = imageFileInfo.encode({
  channelId: 0,
  fileSize: 65536,
  imageName: "guard.jpg",
});

assertStringIncludes(xml, "<imageName>guard.jpg</imageName>");

Type

XmlParam<"imageFileInfo", ImageFileInfo>

Usage

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