package pp.monopoly.message.server;

import java.util.List;

import pp.monopoly.model.fields.PropertyField;
/**
 * Represents a response containing the player's assets.
 */
public class ViewAssetsResponse extends ServerMessage{

    private List<PropertyField> properties;
    private int accountBalance;
    private int jailCards;

    /**
     * Constructs a ViewAssetsResponse with the specified properties and account balance.
     *
     * @param properties    a List of PropertyField objects representing the player's properties
     * @param accountBalance the player's current account balance
     */
    public ViewAssetsResponse(List<PropertyField> properties, int accountBalance, int jailCards) {
        this.properties = properties;
        this.accountBalance = accountBalance;
        this.jailCards = jailCards;
    }

    @Override
    public void accept(ServerInterpreter interpreter) {
        interpreter.received(this);
    }

    @Override
    public String getInfoTextKey() {
        // TODO Auto-generated method stub
        throw new UnsupportedOperationException("Unimplemented method 'getInfoTextKey'");
    }

    public List<PropertyField> getProperties() {
        return properties;
    }

    public int getAccountBalance() {
        return accountBalance;
    }

    public int getJailCards() {
        return jailCards;
    }

}
