Improve display for role (buyer/seller/offerer/taker)

This commit is contained in:
Manfred Karrer 2016-02-03 23:20:12 +01:00
parent d31a4c2947
commit ba4a228fed
6 changed files with 70 additions and 18 deletions

View file

@ -98,6 +98,10 @@ public class Contract implements Serializable {
this.takerBtcPubKey = takerBtcPubKey;
}
public boolean isBuyerOffererAndSellerTaker() {
return isBuyerOffererAndSellerTaker;
}
public String getBuyerAccountId() {
return isBuyerOffererAndSellerTaker ? offererAccountId : takerAccountId;
}