package core.message.crud;

import core.message.MessagePayload;
import core.module.AtomisModule;

/**
 * Created by siberis on 11/15/2016.
 */
public class OperationResult extends MessagePayload {
    private int errorCode;

    public OperationResult() {
    }

    public OperationResult(String computeTopic, int errorCode) {
        super(computeTopic);
        this.errorCode = errorCode;
    }

    public OperationResult(int errorCode) {
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }

    @Override
    public Long getTypeId() {
        return AtomisModule.OPERATION_RESULT;
    }
}