Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' into merged-voting
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Aug 15, 2018
2 parents 89ff8fa + f3939f0 commit 88bb79c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/bisq/common/util/Tuple2.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,12 @@ public int hashCode() {
result = 31 * result + (second != null ? second.hashCode() : 0);
return result;
}

@Override
public String toString() {
return "Tuple2{" +
"\n first=" + first +
",\n second=" + second +
"\n}";
}
}
24 changes: 24 additions & 0 deletions src/main/proto/pb.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,11 @@ message PreferencesPayload {
string custom_bridges = 37;
int32 bitcoin_nodes_option_ordinal = 38;
string referral_id = 39;
string phone_key_and_token = 40;
bool use_sound_for_mobile_notifications = 41;
bool use_trade_notifications = 42;
bool use_market_notifications = 43;
bool use_price_notifications = 44;
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -1276,6 +1281,8 @@ message UserPayload {
repeated Mediator accepted_mediators = 9;
Arbitrator registered_arbitrator = 10;
Mediator registered_mediator = 11;
PriceAlertFilter price_alert_filter = 12;
repeated MarketAlertFilter market_alert_filters = 13;
}

///////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1668,6 +1675,23 @@ message Region {
string name = 2;
}

///////////////////////////////////////////////////////////////////////////////////////////
// Notifications
///////////////////////////////////////////////////////////////////////////////////////////

message PriceAlertFilter {
string currencyCode = 1;
int64 high = 2;
int64 low = 3;
}

message MarketAlertFilter {
PaymentAccount payment_account = 1;
int32 trigger_value = 2;
bool is_buy_offer = 3;
repeated string alert_ids = 4;
}

///////////////////////////////////////////////////////////////////////////////////////////
// Mock
///////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 88bb79c

Please sign in to comment.