package com.ard.work.sdk.zlxd.netty.message.response; import lombok.Data; import lombok.EqualsAndHashCode; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * 类描述:预登录响应 * * @author lsy * @since 2026/2/2 9:14 */ @EqualsAndHashCode(callSuper = true) @Data @XmlRootElement(name = "Message") // 根节点与父类一致 @XmlAccessorType(XmlAccessType.FIELD) public class PreLoginResponse extends BaseXmlResponse{ /** * 设备参数信息 * 显式注解,匹配XML的节点 */ @XmlElement(name = "parameters") private Parameters parameters; /** * 设备参数内部类 * 关键:NONE模式下,所有需要映射的字段必须加@XmlElement注解 */ @Data @XmlAccessorType(XmlAccessType.FIELD) public static class Parameters { @XmlElement(name = "sessionID") private String sessionID; @XmlElement(name = "challenge") private String challenge; } }