CatalogResponse.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package com.wydpp.gb28181.meta;
  2. import com.alibaba.fastjson.JSON;
  3. import com.alibaba.fastjson.serializer.SerializerFeature;
  4. import javax.xml.bind.annotation.XmlAccessOrder;
  5. import javax.xml.bind.annotation.XmlAccessType;
  6. import javax.xml.bind.annotation.XmlAccessorOrder;
  7. import javax.xml.bind.annotation.XmlAccessorType;
  8. import javax.xml.bind.annotation.XmlAttribute;
  9. import javax.xml.bind.annotation.XmlElement;
  10. import javax.xml.bind.annotation.XmlElementWrapper;
  11. import javax.xml.bind.annotation.XmlRootElement;
  12. import javax.xml.bind.annotation.XmlType;
  13. import java.io.Serializable;
  14. import java.util.List;
  15. /**
  16. * <pre>
  17. *
  18. * Created by zhaopx.
  19. * Date: 2025/5/23
  20. * Time: 19:52
  21. * Vendor: exlive.cn
  22. *
  23. * </pre>
  24. *
  25. * @author zhaopx
  26. */
  27. @XmlType(propOrder = {})
  28. @XmlRootElement(name = "Response")
  29. @XmlAccessorType(XmlAccessType.PROPERTY)
  30. @XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
  31. public class CatalogResponse extends SipResponse {
  32. /**
  33. * 摄像头列表
  34. */
  35. List<DeviceItem> deviceList;
  36. public CatalogResponse() {
  37. super("Catalog");
  38. }
  39. @XmlElementWrapper(name = "DeviceList")
  40. @XmlElement(name = "Item")
  41. public List<DeviceItem> getDeviceList() {
  42. return deviceList;
  43. }
  44. public void setDeviceList(List<DeviceItem> deviceList) {
  45. this.deviceList = deviceList;
  46. }
  47. @Override
  48. public String toString() {
  49. return "CatalogResponse" + JSON.toJSONString(this, SerializerFeature.PrettyFormat);
  50. }
  51. }