com.ullink.slack.simpleslackapi.impl.SlackMessageDeletedImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleslackapi Show documentation
Show all versions of simpleslackapi Show documentation
A simple API to build bot running on Slack
package com.ullink.slack.simpleslackapi.impl;
import com.ullink.slack.simpleslackapi.SlackChannel;
import com.ullink.slack.simpleslackapi.events.SlackEventType;
import com.ullink.slack.simpleslackapi.events.SlackMessageDeleted;
class SlackMessageDeletedImpl implements SlackMessageDeleted
{
private final SlackChannel channel;
private final String messageTimestamp;
private final String deleteTimestamp;
SlackMessageDeletedImpl(SlackChannel channel, String messageTimestamp, String deleteTimestamp)
{
this.channel = channel;
this.messageTimestamp = messageTimestamp;
this.deleteTimestamp = deleteTimestamp;
}
@Override
public SlackChannel getChannel()
{
return channel;
}
@Override
public String getMessageTimestamp()
{
return messageTimestamp;
}
@Override
public String getTimeStamp()
{
return deleteTimestamp;
}
@Override
public SlackEventType getEventType()
{
return SlackEventType.SLACK_MESSAGE_DELETED;
}
}