package org.jeecg.pm.hikvision.sdk.result;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author: JJww
 * @Date:2022/3/21
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class HikvisionBaseResult implements Serializable {

    /**
     * 0 表示成功
     */
    public final static int SUCCESS = 0;

    private Integer errorCode;

    private String errorMessage;

    public boolean isSuccess() {
        return SUCCESS == errorCode;
    }
}
