/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Norwegian Defence Research Establishment / NTNU
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package no.ntnu.okse.core;

/**
 * Created by Aleksander Skraastad (myth) on 3/2/15.
 * <p>
 * okse is licenced under the MIT licence.
 */
public class InternalMessage {
}

@@ -1202,16 +1202,43 @@
 .core;%0A%0A
+import java.util.HashMap;%0A%0A
 /**%0A * C
@@ -1371,10 +1371,1214 @@
 ssage %7B%0A
+    private final int ID;%0A    private final String message;%0A    private final String topic;%0A    private final boolean retain;%0A    private boolean delivered;%0A    private HashMap%3CString, String%3E flags;%0A%0A    public InternalMessage(int ID, String topic, String message, boolean retain) %7B%0A        this.ID = ID;%0A        this.message = message;%0A        this.topic = topic;%0A        this.retain = retain;%0A        this.delivered = false;%0A        this.flags = new HashMap%3C%3E();%0A    %7D%0A%0A    /**%0A     * Check if the message is flagged as delivered%0A     * @return Deliverystatus%0A     */%0A    public boolean isDelivered() %7B%0A        return delivered;%0A    %7D%0A%0A    /**%0A     * Flags message as delivered%0A     */%0A    public void setDelivered() %7B%0A        delivered = true;%0A    %7D%0A%0A    /**%0A     * Add a custom flag for this message%0A     * @param key: The flag name%0A     * @param value: The flag value%0A     */%0A    public void setFlag(String key, String value) %7B%0A        flags.put(key, value);%0A    %7D%0A%0A    /**%0A     * Retrieve the value of a certain custom flag%0A     * @param key: The name of the flag%0A     * @return The value of the %22key%22 flag%0A     */%0A    public String getFlag(String key) %7B%0A        return this.flags.get(key);%0A    %7D%0A
 %7D%0A

Create InternalMessage representation stub