mirror of
https://github.com/Monibuca/plugin-gb28181.git
synced 2025-12-24 13:27:57 +08:00
26 lines
417 B
Go
26 lines
417 B
Go
package sip
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Response Response
|
|
type Response struct {
|
|
*Message
|
|
}
|
|
// AlarmResponseXML alarm response xml样式
|
|
var (AlarmResponseXML = `<?xml version="1.0"?>
|
|
<Response>
|
|
<CmdType>Alarm</CmdType>
|
|
<SN>17430</SN>
|
|
<DeviceID>%s</DeviceID>
|
|
</Response>
|
|
`
|
|
)
|
|
|
|
// BuildRecordInfoXML 获取录像文件列表指令
|
|
func BuildAlarmResponseXML(id string) string {
|
|
return fmt.Sprintf(AlarmResponseXML, id)
|
|
}
|
|
|