-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bidderInfoResponse container as a first step to use BidInfo in workflow #1254
Conversation
# Conflicts: # src/main/java/org/prebid/server/auction/BidResponseCreator.java # src/main/java/org/prebid/server/auction/model/BidInfo.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor issues, mainly about naming. Pls consider, up to you.
import java.util.List; | ||
|
||
/** | ||
* Seatid returned by a {@link Bidder}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls fix typo.
*/ | ||
@AllArgsConstructor(staticName = "of") | ||
@Value | ||
public class BidderInfoSeatBid { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or BidderSeatBidInfo
? ;-)
public class BidderInfoSeatBid { | ||
|
||
/** | ||
* List of bids which bidder wishes to make. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we can skip java docs in this model since we've already described in original BidderSeatBid
.
/** | ||
* List of bids which bidder wishes to make. | ||
*/ | ||
List<BidInfo> bids; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or bidInfos
?
*/ | ||
@AllArgsConstructor(staticName = "of") | ||
@Value | ||
public class BidderInfoResponse { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or BidderResponseInfo
?
return imps.stream() | ||
.filter(imp -> Objects.equals(impId, imp.getId())) | ||
.findFirst() | ||
// Should never occur. See ResponseBidValidator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we can if secureMarkupEnforcement == skip
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be fixed in next PR.
Based on #1249