improve addressentry handling

This commit is contained in:
Manfred Karrer 2014-08-24 14:38:16 +02:00
parent 00b41cf537
commit fc85a8ee17
10 changed files with 58 additions and 122 deletions

View file

@ -41,7 +41,8 @@ public class Offer implements Serializable
// Constructor
///////////////////////////////////////////////////////////////////////////////////////////
public Offer(PublicKey messagePublicKey,
public Offer(String id,
PublicKey messagePublicKey,
Direction direction,
double price,
Coin amount,
@ -55,6 +56,7 @@ public class Offer implements Serializable
List<Country> acceptedCountries,
List<Locale> acceptedLanguageLocales)
{
this.id = id;
this.messagePublicKey = messagePublicKey;
this.direction = direction;
this.price = price;
@ -71,7 +73,6 @@ public class Offer implements Serializable
this.acceptedLanguageLocales = acceptedLanguageLocales;
creationDate = new Date();
id = UUID.randomUUID().toString();
}