More lombok
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package me.savvy.rixa.modules.twitter;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import me.savvy.rixa.guild.RixaGuild;
|
||||
import twitter4j.*;
|
||||
import twitter4j.conf.ConfigurationBuilder;
|
||||
@@ -8,15 +10,24 @@ import twitter4j.conf.ConfigurationBuilder;
|
||||
* Created by savit on 7/9/2017.
|
||||
*/
|
||||
public class TwitterModule {
|
||||
|
||||
|
||||
@Getter
|
||||
private final TwitterStream twitterStream;
|
||||
@Getter
|
||||
private ConfigurationBuilder configurationBuilder;
|
||||
@Getter
|
||||
private Twitter twitter;
|
||||
@Getter
|
||||
private TwitterFactory twitterFactory;
|
||||
@Getter
|
||||
private final RixaGuild rixaGuild;
|
||||
@Getter @Setter
|
||||
private String consumerKey;
|
||||
@Getter @Setter
|
||||
private String consumerSecret;
|
||||
@Getter @Setter
|
||||
private String accessToken;
|
||||
@Getter @Setter
|
||||
private String accessTokenSecret;
|
||||
|
||||
public TwitterModule(RixaGuild rixaGuild, String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret) {
|
||||
@@ -34,56 +45,5 @@ public class TwitterModule {
|
||||
twitterStream = new TwitterStreamFactory().getInstance();
|
||||
twitter = twitterFactory.getInstance();
|
||||
}
|
||||
|
||||
public ConfigurationBuilder getConfigurationBuilder() {
|
||||
return configurationBuilder;
|
||||
}
|
||||
|
||||
public TwitterFactory getTwitterFactory() {
|
||||
return twitterFactory;
|
||||
}
|
||||
|
||||
public Twitter getTwitter() {
|
||||
return twitter;
|
||||
}
|
||||
|
||||
public String getConsumerKey() {
|
||||
return consumerKey;
|
||||
}
|
||||
|
||||
public void setConsumerKey(String consumerKey) {
|
||||
this.consumerKey = consumerKey;
|
||||
}
|
||||
|
||||
public String getConsumerSecret() {
|
||||
return consumerSecret;
|
||||
}
|
||||
|
||||
public void setConsumerSecret(String consumerSecret) {
|
||||
this.consumerSecret = consumerSecret;
|
||||
}
|
||||
|
||||
public String getAccessToken() {
|
||||
return accessToken;
|
||||
}
|
||||
|
||||
public void setAccessToken(String accessToken) {
|
||||
this.accessToken = accessToken;
|
||||
}
|
||||
|
||||
public String getAccessTokenSecret() {
|
||||
return accessTokenSecret;
|
||||
}
|
||||
|
||||
public void setAccessTokenSecret(String accessTokenSecret) {
|
||||
this.accessTokenSecret = accessTokenSecret;
|
||||
}
|
||||
|
||||
public TwitterStream getTwitterStream() {
|
||||
return twitterStream;
|
||||
}
|
||||
|
||||
public RixaGuild getRixaGuild() {
|
||||
return rixaGuild;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user