diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a5d883a..46a6f48 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,8 @@ - - - - - + @@ -45,31 +41,112 @@ - - - + + + - - + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + + + + + + + + + @@ -584,8 +661,8 @@ @@ -599,10 +676,10 @@ - @@ -623,8 +700,6 @@ - - @@ -637,24 +712,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -872,6 +837,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + - + + - + + + + - - + + + + - + - + + + + + + + + + + + + + + + + + + @@ -1271,14 +1382,6 @@ - - - - - - - - @@ -1309,29 +1412,26 @@ - - + + + - - - - - - - - + + + - - + + + @@ -1366,22 +1466,25 @@ - - + + + - - + + + - - + + + @@ -1406,13 +1509,7 @@ - - - - - - - + @@ -1508,12 +1605,7 @@ - - - - - - + @@ -1530,9 +1622,6 @@ - - - @@ -1542,8 +1631,6 @@ - - @@ -1560,9 +1647,6 @@ - - - @@ -1578,16 +1662,13 @@ - - - - - + + @@ -1604,7 +1685,6 @@ - @@ -1616,26 +1696,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -1644,6 +1704,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/me/savvy/rixa/modules/twitter/TwitterModule.java b/src/main/java/me/savvy/rixa/modules/twitter/TwitterModule.java index 11847a0..060c7a2 100644 --- a/src/main/java/me/savvy/rixa/modules/twitter/TwitterModule.java +++ b/src/main/java/me/savvy/rixa/modules/twitter/TwitterModule.java @@ -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; - } + }