package com.samourai.wallet.whirlpool.models;

import com.samourai.wallet.send.MyTransactionOutPoint;

public class Coin {

    private MyTransactionOutPoint outpoint = null;

    private Coin()  { ; }

    public Coin(MyTransactionOutPoint outpoint)  {
        this.outpoint = outpoint;
    }

    //States for recycler view
    private Boolean isSelected = false, blocked = false;

    public String getAddress() {
        return outpoint.getAddress();
    }

    public long getValue() {
        return outpoint.getValue().longValue();
    }

    public Boolean getSelected() {
        return isSelected;
    }

    public Coin setSelected(Boolean selected) {
        isSelected = selected;
        return this;
    }

    public Boolean getBlocked() {
        return blocked;
    }

    public void setBlocked(Boolean blocked) {
        this.blocked = blocked;
    }

    @Override
    public String toString() {
        return this.getAddress().concat("\t");
    }

}

@@ -284,24 +284,105 @@
 int;%0A    %7D%0A%0A
+    public MyTransactionOutPoint getOutpoint() %7B%0A        return outpoint;%0A    %7D%0A%0A
     //States

add getter for MyTransactionOutpoint member