function parsePrivacyMode parsePrivacyMode(xml: string): boolean Reads the privacy mode state from the reply to a cmd 574 request. Examples Read an off state import { assertEquals } from "@std/assert"; import { parsePrivacyMode } from "@hertzg/reolink-api/protocol/privacy"; assertEquals( parsePrivacyMode("<body><sleepState><sleep>0</sleep></sleepState></body>"), false, ); Parameters xml: string The decrypted reply body. Return Type boolean true when privacy mode is on. Throws Error When the reply has no <sleep> element.