package pp.monopoly.message.server;

import pp.monopoly.model.TradeHandler;

/**
 * Represents a trade Request message from one player to another.
 */
public class TradeRequest extends ServerMessage{
    private int receiverId;
    private TradeHandler tradehandler;


    /**
     * Constructs a TradeRequest with the specified details.
     *
     * @param receiverId the ID of the player receiving the Request
     * @param tradehandler the tradehandler
     */
    public TradeRequest(int receiverId, TradeHandler tradehandler) {
        this.receiverId = receiverId;
        this.tradehandler = tradehandler;
    }

    public int getReceiverId() { return receiverId; }
    public TradeHandler getTradeHandler() { return tradehandler; }


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

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

}
