com.devebot.opflow.OpflowMessage Maven / Gradle / Ivy
package com.devebot.opflow;
import java.util.Map;
/**
*
* @author drupalex
*/
public class OpflowMessage {
private final byte[] content;
private final Map info;
public final static OpflowMessage EMPTY = new OpflowMessage();
public final static OpflowMessage ERROR = new OpflowMessage();
private OpflowMessage() {
content = null;
info = null;
}
public OpflowMessage(byte[] content, Map info) {
this.content = content;
this.info = info;
}
public byte[] getContent() {
return content;
}
public String getContentAsString() {
if (content == null) return null;
return OpflowUtil.getString(content);
}
public Map getInfo() {
return info;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy