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

io.dangernoodle.slack.events.SlackUnknownEvent Maven / Gradle / Ivy

The newest version!
package io.dangernoodle.slack.events;

import java.util.HashMap;
import java.util.Map;


public class SlackUnknownEvent extends SlackEvent
{
    private final String rawResponse;

    private final Map response;

    public SlackUnknownEvent(Map response, String rawResponse)
    {
        this.response = response;
        this.rawResponse = rawResponse;

        setType(SlackEventType.UNKNOWN);
    }

    public String getRawResponse()
    {
        return rawResponse;
    }

    public Map getDeserialized()
    {
        // always a copy...
        return new HashMap<>(response);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy