twitter4jads.TwitterAdsFactory Maven / Gradle / Ivy
package twitter4jads;
import twitter4jads.auth.AuthorizationFactory;
import twitter4jads.conf.Configuration;
/**
*
* Date: 3/16/16
* Time: 1:10 PM
*/
public class TwitterAdsFactory {
private final Configuration conf;
/**
* Creates a TwitterFactory with the given configuration.
*
* @param conf the configuration to use
* @since Twitter4J 2.1.1
*/
public TwitterAdsFactory(Configuration conf) {
if (conf == null) {
throw new NullPointerException("configuration cannot be null");
}
this.conf = conf;
}
public TwitterAds getAdsInstance() {
return new TwitterAdsImpl(conf, AuthorizationFactory.getInstance(conf));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy