package com.eactive.eai.agent.command;

import java.util.Map;

import com.eactive.eai.rms.common.util.CommonUtil;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor

public class CommandResult {

	@Getter
	@NonNull
	private Map<String, Object> result;

	public String getMessage(boolean newLineBetweenEntries) {
		return CommonUtil.getMapString(result, newLineBetweenEntries);
	}
}
