io.dangernoodle.slack.objects.api.SlackStartRtmResponse Maven / Gradle / Ivy
The newest version!
package io.dangernoodle.slack.objects.api;
import java.util.Collection;
import java.util.Collections;
import io.dangernoodle.slack.objects.SlackChannel;
import io.dangernoodle.slack.objects.SlackDirectMessage;
import io.dangernoodle.slack.objects.SlackIntegration;
import io.dangernoodle.slack.objects.SlackSelf;
import io.dangernoodle.slack.objects.SlackTeam;
import io.dangernoodle.slack.objects.SlackUser;
public class SlackStartRtmResponse
{
private Collection bots;
private Collection channels;
private Collection groups;
private Collection ims;
private String error;
private boolean ok;
private SlackSelf self;
private SlackTeam team;
private String url;
private Collection users;
private SlackStartRtmResponse()
{
// use the builder
}
public Collection getDirectMessages()
{
return ims;
}
public Collection getChannels()
{
return returnCollection(channels);
}
public Collection getGroups()
{
return returnCollection(groups);
}
public String getError()
{
return error;
}
public Collection getIntegrations()
{
return returnCollection(bots);
}
public SlackSelf getSelf()
{
return self;
}
public SlackTeam getTeam()
{
return team;
}
public String getUrl()
{
return url;
}
public Collection getUsers()
{
return returnCollection(users);
}
public boolean isOk()
{
return ok;
}
private Collection returnCollection(Collection collection)
{
return (collection == null) ? Collections.emptyList() : collection;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy