com.ullink.slack.simpleslackapi.impl.PinAddedImpl 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 com.ullink.slack.simpleslackapi.SlackChannel;
import com.ullink.slack.simpleslackapi.SlackFile;
import com.ullink.slack.simpleslackapi.SlackMessage;
import com.ullink.slack.simpleslackapi.SlackUser;
import com.ullink.slack.simpleslackapi.events.PinAdded;
import com.ullink.slack.simpleslackapi.events.SlackEventType;
public class PinAddedImpl implements PinAdded {
private final SlackUser sender;
private final SlackChannel channel;
private final String timestamp;
private final SlackFile file;
private final String message;
public PinAddedImpl(SlackUser sender, SlackChannel channel, String timestamp, SlackFile file, String message) {
this.sender = sender;
this.channel = channel;
this.timestamp = timestamp;
this.file = file;
this.message = message;
}
@Override
public SlackUser getSender() {
return this.sender;
}
@Override
public SlackChannel getChannel() {
return this.channel;
}
@Override
public String getTimestamp() {
return this.timestamp;
}
@Override
public SlackFile getFile() {
return this.file;
}
@Override
public String getMessage() {
return this.message;
}
@Override
public SlackEventType getEventType() {
return SlackEventType.PIN_ADDED;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy