Renaming of storage messages, add comments

This commit is contained in:
Manfred Karrer 2016-02-11 13:26:38 +01:00
parent fa2da8dbe5
commit 3dbcfb650a
22 changed files with 241 additions and 182 deletions

View file

@ -57,7 +57,7 @@ public class OfferBook {
@Override
public void onAdded(ProtectedData entry) {
log.debug("onAdded " + entry);
Serializable data = entry.expirablePayload;
Serializable data = entry.expirableMessage;
if (data instanceof Offer) {
Offer offer = (Offer) data;
OfferBookListItem offerBookListItem = new OfferBookListItem(offer);
@ -69,8 +69,8 @@ public class OfferBook {
@Override
public void onRemoved(ProtectedData entry) {
log.debug("onRemoved " + entry);
if (entry.expirablePayload instanceof Offer) {
Offer offer = (Offer) entry.expirablePayload;
if (entry.expirableMessage instanceof Offer) {
Offer offer = (Offer) entry.expirableMessage;
// Update state in case that that offer is used in the take offer screen, so it gets updated correctly
offer.setState(Offer.State.REMOVED);