//
// (c) 2006 DS Data Systems UK Ltd, All rights reserved.
//
// DS Data Systems and KonaKart and their respective logos, are 
// trademarks of DS Data Systems UK Ltd. All rights reserved.
//
// The information in this document is the proprietary property of
// DS Data Systems UK Ltd. and is protected by English copyright law,
// the laws of foreign jurisdictions, and international treaties,
// as applicable. No part of this document may be reproduced,
// transmitted, transcribed, transferred, modified, published, or
// translated into any language, in any form or by any means, for
// any purpose other than expressly permitted by DS Data Systems UK Ltd.
// in writing.
//
package com.konakart.forms;


/**
 * 
 * This form contains all of the information required in order to add a product to the cart. The
 * optionId and valueId arrays contain the values for certain options which may be applicable for
 * the selected product. valueId[0] contains the selected valueId for the optionId[0] and so on.
 */
@SuppressWarnings("serial")
public class AddToCartForm extends BaseForm
{

    private int[] optionId = new int[20];

    private int[] valueId = new int[20];

    private String productId;
    
    private int numOptions = 0;

    /**
     * @param index
     * @return Returns the optionId.
     */
    public int getOptionId(int index)
    {
        return optionId[index];
    }

    /**
     * @param index
     * @param value
     */
    public void setOptionId(int index, int value)
    {
        this.optionId[index] = value;
    }

    /**
     * @param index
     * @return Returns the valueId.
     */
    public int getValueId(int index)
    {
        return valueId[index];
    }

    /**
     * @param index
     * @param value
     */
    public void setValueId(int index, int value)
    {
        this.valueId[index] = value;
    }

    /**
     * @return Returns the productId.
     */
    public String getProductId()
    {
        return productId;
    }

    /**
     * @param productId
     *            The productId to set.
     */
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    /**
     * @return Returns the numOptions.
     */
    public int getNumOptions()
    {
        return numOptions;
    }

    /**
     * @param numOptions The numOptions to set.
     */
    public void setNumOptions(int numOptions)
    {
        this.numOptions = numOptions;
    }




}
