Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. ...
  2. final ProductBody body = new ProductBody();
  3. if (mActiveProduct != null) {
  4. body.setProductId(mActiveProduct.getId());
  5. if (mCurrentOffer != null) {
  6. body.setOfferCode(mCurrentOffer.getCode());
  7. if (mCurrentOffer == mSmsOffer) {
  8. body.setOpCodes(mCurrentOffer.getCode());
  9. }
  10. }
  11. } else if (mBlockedProduct != null) {
  12. body.setProductId(mBlockedProduct.getId());
  13. }
  14. ((MainActivity) getContext()).apiCallPostProduct(body);
  15. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement