﻿/// <reference name="MicrosoftAjax.js"/>
/// <reference path="../Scripts/jquery.js" />
/// <reference path="product.svc" />

function ProductSelection(productId, quantity, attributes, components) {
    this.ProductId = productId;
    this.Quantity = quantity;
    this.Attributes = attributes;
    this.Components = components;
}
ProductSelection.prototype =
{
    ProductId: null,
    Quantity: null,
    Attributes: null,
    Components: null
}

function ProductComponentSelection(productComponentId, productId, quantity) {
    this.ProductComponentId = productComponentId;
    this.ProductId = productId;
    this.Quantity = quantity;
}
ProductComponentSelection.prototype =
{
    ProductComponentId: null,
    ProductId: null,
    Quantity: null
}

function ProductAttributeSelection(productAttributeId, attributeValueId) {
    this.ProductAttributeId = productAttributeId;
    this.AttributeValueId = attributeValueId;
}
ProductComponentSelection.prototype =
{
    ProductAttributeId: null,
    AttributeValueId: null
}

