Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isCurrentUserSeller(){ // TODO check this method in various scenarios
- if(isCounter){
- if(isMyOfferToMyself()){
- return negotiationTypeID == NegotiationType.SELL;
- }
- return seller.getId() == UserStorage.get().getId();
- }
- return negotiationTypeID == NegotiationType.BUY;
- // return (isCurrentUserCreator() && negotiationTypeID == NegotiationType.SELL) || (!isCurrentUserCreator() && negotiationTypeID == NegotiationType.BUY);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement