[bisq-network/bisq] Add backward compatibility for revolut change (#4481)

chimp1984 notifications at github.com
Sun Sep 6 17:08:42 UTC 2020


@chimp1984 commented on this pull request.



> +            label = Res.get("payment.account.userName");
+            value = userName;
+
+            if (hasOldAccountId()) {
+                label += "/" + Res.get("payment.account.phoneNr");
+                value += "/" + accountId;
+            }
+        } else {
+            label = Res.get("payment.account.phoneNr");
+            value = accountId;
+        }
+        return new Tuple2<>(label, value);
+    }
+
+    public Tuple2<String, String> getRecipientsAccountData() {
+        Tuple2<String, String> tuple = getLabelValueTuple();

I am not a fan of 'var', prefer to have the type information more explicit. I know in such a small context it does not make much difference, but in larger context it does.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4481#discussion_r484093081
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200906/d26b3d41/attachment.html>


More information about the bisq-github mailing list