package org.wcs.model.bo.etag;

import lombok.Data;

/**
 * 电子标签数据返回类
 */
@Data
public class EtagReturnInfo {

    /**
     * 控制器 id
     */
    private String controllerId;


    /**
     * 按键类型
     * @remark Data(1)= 16H “confirmatin key “ pressed
     *     ///  43H “shotage button/down-count button” pressed
     *     ///  25H “function button/up-count button” pressed.
     */
    private Integer keyType;

    /**
     * 消息类型
     * @remark 01H:Tag busy,04H 功能键
     */
    private Integer msgType;

    /**
     * 提交命令
     * @remark 13卡键
     *     /// 10 通讯超时
     */
    private Integer subCommand;

    /**
     * ip
     */
    private String ip;

    /**
     * 标签 id
     */
    private Integer tagId;

    /**
     * 端口，注意这里端口使标签提交的端口，不是控制器的ip端口
     */
    private Integer etagPort;

    /**
     * 返回的数据
     */
    private String data;


    @Override
    public String toString() {
        return "EtagReturnInfo{" +
                "controllerId=" + controllerId +
                ", keyType=" + keyType +
                ", msgType=" + msgType +
                ", subCommand=" + subCommand +
                ", ip='" + ip + '\'' +
                ", tagId=" + tagId +
                ", etagPort=" + etagPort +
                ", data='" + data + '\'' +
                '}';
    }

}
