package com.genersoft.iot.vmp.media.zlm.dto.hook;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class HookResult {

    private int code;
    private String msg;


    public HookResult() {
    }

    public HookResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static HookResult SUCCESS(){
        return new HookResult(0, "success");
    }

    public static HookResultForOnPublish Fail(){
        return new HookResultForOnPublish(-1, "fail");
    }

}
