Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaisgold committed Sep 25, 2015
1 parent 8fad617 commit 91a461a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
3 changes: 1 addition & 2 deletions bidding/src/main/java/com/bidtorrent/bidding/Auctioneer.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.bidtorrent.bidding;

import com.bidtorrent.bidding.messages.BidResponse;
import com.bidtorrent.bidding.messages.Imp;
import com.bidtorrent.bidding.messages.ContextualizedBidResponse;
import com.bidtorrent.bidding.messages.Imp;
import com.google.common.base.Function;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
Expand Down
3 changes: 2 additions & 1 deletion bidding/src/main/java/com/bidtorrent/bidding/IBidder.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.bidtorrent.bidding;

import com.bidtorrent.bidding.messages.Imp;
import com.bidtorrent.bidding.messages.ContextualizedBidResponse;
import com.bidtorrent.bidding.messages.Imp;
import com.google.common.util.concurrent.ListenableFuture;

import java.io.Serializable;

public interface IBidder extends Serializable{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ public void apply(WaitingClient client, ReadyAd ad) {
},
new TriggerBidFunction(
this.selector,
this.publisherConfiguration,
this.pooledHttpClient,
this.executor,
this.auctioneer),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import com.bidtorrent.bidding.AuctionResult;
import com.bidtorrent.bidding.Notificator;
import com.bidtorrent.bidding.messages.Imp;
import com.bidtorrent.bidding.messages.ContextualizedBidResponse;
import com.bidtorrent.bidding.messages.Imp;
import com.bidtorrent.bidding.messages.configuration.PublisherConfiguration;
import com.bidtorrent.biddingservice.Constants;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.bidtorrent.biddingservice.configuration;

import android.content.res.AssetManager;
import android.net.Uri;
import android.util.Log;

import com.bidtorrent.bidding.PooledHttpClient;
Expand All @@ -10,10 +9,8 @@
import com.bidtorrent.bidding.messages.Ext;
import com.bidtorrent.bidding.messages.Imp;
import com.bidtorrent.bidding.messages.Publisher;
import com.bidtorrent.bidding.messages.configuration.BidderConfiguration;
import com.bidtorrent.bidding.messages.configuration.PublisherConfiguration;
import com.google.common.base.Function;
import com.google.common.util.concurrent.AsyncFunction;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,17 @@ public class TriggerBidFunction implements Function<Imp, ListenableFuture<Auctio

public static final String DEFAULT_CREATIVE = "<html><head><meta name=\"viewport\" content=\"initial-scale=1, width=300, user-scalable=no\" /></head><body style=\"padding:0px; margin:0px\"><img width=\"100%\" src=\"http://adlb.me/bidder/Ads/kitten_ad-300x250.jpg\"/></body></html>";
private BidderSelector selector;
private PublisherConfiguration publisherConfiguration;
private PooledHttpClient pooledHttpClient;
private ListeningExecutorService executor;
private Auctioneer auctioneer;

public TriggerBidFunction(
BidderSelector selector,
PublisherConfiguration publisherConfiguration,
PooledHttpClient pooledHttpClient,
ListeningExecutorService executor,
Auctioneer auctioneer)
{
this.selector = selector;
this.publisherConfiguration = publisherConfiguration;
this.pooledHttpClient = pooledHttpClient;
this.executor = executor;
this.auctioneer = auctioneer;
Expand All @@ -56,9 +53,7 @@ public ListenableFuture<AuctionResult> apply(final Imp impression) {
for (BidderConfiguration config : selector.getAvailableBidders()) {
bidders.add(
new HttpBidder(
1,
"Kitten",
config.bid_ep,
config,
pooledHttpClient));
}

Expand Down

0 comments on commit 91a461a

Please sign in to comment.