Type.registerNamespace('Teascapes_Web.Services');
Teascapes_Web.Services.ProductCalls=function() {
Teascapes_Web.Services.ProductCalls.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Teascapes_Web.Services.ProductCalls.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Teascapes_Web.Services.ProductCalls._staticInstance.get_path();},
GetProductOption:function(optionID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProductOption',false,{optionID:optionID},succeededCallback,failedCallback,userContext); },
SendNotification:function(optionid,emailAddress,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendNotification',false,{optionid:optionid,emailAddress:emailAddress},succeededCallback,failedCallback,userContext); },
AddToCart:function(optionid,qty,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToCart',false,{optionid:optionid,qty:qty},succeededCallback,failedCallback,userContext); }}
Teascapes_Web.Services.ProductCalls.registerClass('Teascapes_Web.Services.ProductCalls',Sys.Net.WebServiceProxy);
Teascapes_Web.Services.ProductCalls._staticInstance = new Teascapes_Web.Services.ProductCalls();
Teascapes_Web.Services.ProductCalls.set_path = function(value) { Teascapes_Web.Services.ProductCalls._staticInstance.set_path(value); }
Teascapes_Web.Services.ProductCalls.get_path = function() { return Teascapes_Web.Services.ProductCalls._staticInstance.get_path(); }
Teascapes_Web.Services.ProductCalls.set_timeout = function(value) { Teascapes_Web.Services.ProductCalls._staticInstance.set_timeout(value); }
Teascapes_Web.Services.ProductCalls.get_timeout = function() { return Teascapes_Web.Services.ProductCalls._staticInstance.get_timeout(); }
Teascapes_Web.Services.ProductCalls.set_defaultUserContext = function(value) { Teascapes_Web.Services.ProductCalls._staticInstance.set_defaultUserContext(value); }
Teascapes_Web.Services.ProductCalls.get_defaultUserContext = function() { return Teascapes_Web.Services.ProductCalls._staticInstance.get_defaultUserContext(); }
Teascapes_Web.Services.ProductCalls.set_defaultSucceededCallback = function(value) { Teascapes_Web.Services.ProductCalls._staticInstance.set_defaultSucceededCallback(value); }
Teascapes_Web.Services.ProductCalls.get_defaultSucceededCallback = function() { return Teascapes_Web.Services.ProductCalls._staticInstance.get_defaultSucceededCallback(); }
Teascapes_Web.Services.ProductCalls.set_defaultFailedCallback = function(value) { Teascapes_Web.Services.ProductCalls._staticInstance.set_defaultFailedCallback(value); }
Teascapes_Web.Services.ProductCalls.get_defaultFailedCallback = function() { return Teascapes_Web.Services.ProductCalls._staticInstance.get_defaultFailedCallback(); }
Teascapes_Web.Services.ProductCalls.set_path("/Services/ProductCalls.asmx");
Teascapes_Web.Services.ProductCalls.GetProductOption= function(optionID,onSuccess,onFailed,userContext) {Teascapes_Web.Services.ProductCalls._staticInstance.GetProductOption(optionID,onSuccess,onFailed,userContext); }
Teascapes_Web.Services.ProductCalls.SendNotification= function(optionid,emailAddress,onSuccess,onFailed,userContext) {Teascapes_Web.Services.ProductCalls._staticInstance.SendNotification(optionid,emailAddress,onSuccess,onFailed,userContext); }
Teascapes_Web.Services.ProductCalls.AddToCart= function(optionid,qty,onSuccess,onFailed,userContext) {Teascapes_Web.Services.ProductCalls._staticInstance.AddToCart(optionid,qty,onSuccess,onFailed,userContext); }
