eventNotificationAlert.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package eventServer
  2. type EventNotificationAlert struct {
  3. IpAddress string `xml:"ipAddress"`
  4. PortNo string `xml:"portNo"`
  5. Protocol string `xml:"protocol"`
  6. MacAddress string `xml:"macAddress"`
  7. ChannelID string `xml:"channelID"`
  8. DateTime string `xml:"dateTime"`
  9. ActivePostCount string `xml:"activePostCount"`
  10. EventType string `xml:"eventType"`
  11. EventState string `xml:"eventState"`
  12. EventDescription string `xml:"eventDescription"`
  13. DetectionRegionList struct {
  14. DetectionRegionEntry []struct {
  15. RegionID string `xml:"regionID"`
  16. SensitivityLevel string `xml:"sensitivityLevel"`
  17. RegionCoordinatesList struct {
  18. RegionCoordinates []struct {
  19. PositionX string `xml:"positionX"`
  20. PositionY string `xml:"positionY"`
  21. } `xml:"RegionCoordinates"`
  22. } `xml:"RegionCoordinatesList"`
  23. DetectionTarget string `xml:"detectionTarget"`
  24. TargetRect struct {
  25. X string `xml:"X"`
  26. Y string `xml:"Y"`
  27. Width string `xml:"width"`
  28. Height string `xml:"height"`
  29. } `xml:"TargetRect"`
  30. } `xml:"DetectionRegionEntry"`
  31. } `xml:"DetectionRegionList"`
  32. ChannelName string `xml:"channelName"`
  33. DetectionPictureTransType string `xml:"detectionPictureTransType"`
  34. DetectionPicturesNumber string `xml:"detectionPicturesNumber"`
  35. IsDataRetransmission string `xml:"isDataRetransmission"`
  36. DurationList struct {
  37. Duration []struct {
  38. RelationEvent string `xml:"relationEvent"`
  39. } `xml:"Duration"`
  40. } `xml:"DurationList"`
  41. }
  42. var sMap = map[string]string{
  43. "shelteralarm": "遮盖报警",
  44. "regionEntrance": "进入区域",
  45. "fielddetection": "区域入侵",
  46. "linedetection": "越界侦测",
  47. }