com.ullink.slack.simpleslackapi.impl.SlackSessionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleslackapi-lib Show documentation
Show all versions of simpleslackapi-lib Show documentation
A simple API to build bot running on Slack
The newest version!
package com.ullink.slack.simpleslackapi.impl;
import java.net.Proxy;
import com.ullink.slack.simpleslackapi.SlackSession;
public class SlackSessionFactory
{
public static SlackSession createWebSocketSlackSession(String authToken)
{
return new SlackWebSocketSessionImpl(authToken, true);
}
public static SlackSession createWebSocketSlackSession(final String authToken, Proxy.Type proxyType, String proxyAddress, int proxyPort)
{
return new SlackWebSocketSessionImpl(authToken, proxyType, proxyAddress, proxyPort, true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy