All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.lkqm.hcnet.model.PassThroughResponse Maven / Gradle / Ivy

The newest version!
package com.github.lkqm.hcnet.model;

import java.io.Serializable;
import lombok.Data;

/**
 * 设备透传响应数据.
 */
@Data
public class PassThroughResponse implements Serializable {

    /**
     * 执行透传成功返回数据.
     */
    private byte[] bytes;

    /**
     * 透传执行失败返回的详细错误信息.
     */
    private ResponseStatus status;

    /**
     * 返回字符串的数据.
     */
    public String getStringData() {
        if (bytes != null) {
            return new String(bytes).trim();
        }
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy