event.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package model
  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. }