All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devebot.opflow.OpflowMessage Maven / Gradle / Ivy

There is a newer version: 0.1.3
Show newest version
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