package com.bitnix.dirtcryptostore.model;

import java.util.ArrayList;
import java.util.List;

public class WalletConfig {

    private final String id;
    private final boolean enabled;
    private final String displayName;
    private final String coin;
    private final String address;
    private final String explorerType;
    private final int minConfirmations;
    private final List<String> allowProducts;

    public WalletConfig(String id,
                        boolean enabled,
                        String displayName,
                        String coin,
                        String address,
                        String explorerType,
                        int minConfirmations,
                        List<String> allowProducts) {
        this.id = id;
        this.enabled = enabled;
        this.displayName = displayName;
        this.coin = coin;
        this.address = address;
        this.explorerType = explorerType;
        this.minConfirmations = minConfirmations;
        this.allowProducts = allowProducts == null ? new ArrayList<>() : new ArrayList<>(allowProducts);
    }

    public String getId() {
        return id;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public String getDisplayName() {
        return displayName;
    }

    public String getCoin() {
        return coin;
    }

    public String getAddress() {
        return address;
    }

    public String getExplorerType() {
        return explorerType;
    }

    public int getMinConfirmations() {
        return minConfirmations;
    }

    public List<String> getAllowProducts() {
        return new ArrayList<>(allowProducts);
    }
}
