"""Reolink Baichuan XML templates."""
XML_HEADER = """
"""
LOGIN_XML = """
{userName}
{password}
1
LAN
0
"""
LOGOUT_XML = """
{userName}
{password}
1
"""
CHANNEL_EXTENSION_XML = """
{channel}
"""
UDP_GET_UID_XML = """
{port}
"""
UDP_CONNECT_XML = """
{uid}
{port}
{client_id}
{mtu}
0
WIN
"""
UDP_DISCONNECT_XML = """
{client_id}
{host_id}
"""
WEBHOOK_PUSH = """
{enable}
{url}
0
"""
DingDongOpt_1_XML = """
delDevice
{chime_id}
"""
DingDongOpt_2_XML = """
{chime_id}
getParam
"""
DingDongOpt_3_XML = """
setParam
{chime_id}
{vol}
{led}
{name}
"""
DingDongOpt_4_XML = """
{chime_id}
ringWithMusic
{tone_id}
"""
SetDingDongCfg_XML = """
{chime_id}
{state}
{tone_id}
{event_type}
"""
DingDongSilent = """
{chime_id}
"""
SetDingDongSilent = """
{chime_id}
63
"""
GetDingDongCtrl_XML = """
machineStateGet
"""
SetDingDongCtrl_XML = """
machineStateSet
{chime_type}
{enabled}
1
"""
QuickReplyPlay_XML = """
{channel}
{file_id}
0
"""
SetRecEnable = """
{channel}
{enable}
"""
SetPrivacyMode = """
2
{enable}
"""
GetSceneInfo = """
{scene_id}
"""
DisableScene = """
0
"""
SetScene = """
1
{scene_id}
"""
FileInfoListOpen = """
{uid}
1
{channel}
255
mainStream
manual, sched, io, md, people, face, vehicle, dog_cat, visitor, other, package
{start_year}
{start_month}
{start_day}
{start_hour}
{start_minute}
{start_second}
{end_year}
{end_month}
{end_day}
{end_hour}
{end_minute}
{end_second}
"""
FileInfoList = """
{channel}
{uid}
1
{handle}
"""
FindRecVideoOpen = """
{channel}
{uid}
255
{stream_type}
0
{start_year}
{start_month}
{start_day}
{start_hour}
{start_minute}
{start_second}
{end_year}
{end_month}
{end_day}
{end_hour}
{end_minute}
{end_second}
md, pir, io, people, face, vehicle, dog_cat, visitor, other, package, cry, crossline, intrusion, loitering, legacy, loss
"""
FindRecVideo = """
{channel}
{fileHandle}
"""
UserList = """
{username}
"""
AbilityInfo = """
{username}
image, video
"""
SetWhiteLed = """
{channel}
{state}
180
"""
WifiSSID = """
0
"""
PreRecord = """
{enable}
{batteryStop}
{preTime}
{schedule}
{fps}
"""
SirenManual = """
{channel}
2
10
1
{enable}
"""
SirenTimes = """
{channel}
0
10
{times}
1
"""
SirenHubManual = """
2
10
1
{enable}
"""
SirenHubTimes = """
0
10
{times}
1
"""
GetRule = """
{rule_id}
"""
SetAutoFocus = """
{channel}
{disable}
"""
GetAiAlarm = """
{channel}
{ai_type}
"""
Snap = """
{channel}
{logicChannel}
0
{stream}
"""
CoverPreview = """
{channel}
0
{stream}Stream
{start_year}
{start_month}
{start_day}
{start_hour}
{start_minute}
{start_second}
{end_year}
{end_month}
{end_day}
{end_hour}
{end_minute}
{end_second}
1
"""
PtzControl = """
{channel}
{command}
"""
PtzPreset = """
{channel}
{preset_id}
toPos
"""
Ptz3DLocation = """
{channel}
{pos_x}
{pos_y}
{pos_width}
{pos_height}
{speed}
{width}
{height}
"""
PtzGuard = """
{channel}
{enable}
{cmd_str}
{timeout}
{set_pos}
"""