Type.registerNamespace('Geno');
Geno.GenoAPI=function() {
Geno.GenoAPI.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Geno.GenoAPI.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Geno.GenoAPI._staticInstance.get_path();},
AddToCart:function(cartId,trainingDeliveryId,qty,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToCart',false,{cartId:cartId,trainingDeliveryId:trainingDeliveryId,qty:qty},succeededCallback,failedCallback,userContext); },
CreateCart:function(userId,trainingDeliveryId,qty,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateCart',false,{userId:userId,trainingDeliveryId:trainingDeliveryId,qty:qty},succeededCallback,failedCallback,userContext); },
DisplayNameIsUnique:function(userNameEntered,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DisplayNameIsUnique',false,{userNameEntered:userNameEntered},succeededCallback,failedCallback,userContext); },
GetAllTraining:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllTraining',false,{},succeededCallback,failedCallback,userContext); },
GetCartEntryByCartId:function(cartId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCartEntryByCartId',false,{cartId:cartId},succeededCallback,failedCallback,userContext); },
GetCategories:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCategories',false,{},succeededCallback,failedCallback,userContext); },
GetChannelDetailsByChannelName:function(channelName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetChannelDetailsByChannelName',false,{channelName:channelName},succeededCallback,failedCallback,userContext); },
GetDeliveryMethods:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDeliveryMethods',false,{},succeededCallback,failedCallback,userContext); },
GetFeaturedTraining:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFeaturedTraining',false,{},succeededCallback,failedCallback,userContext); },
GetFeedBackById:function(i,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFeedBackById',false,{i:i},succeededCallback,failedCallback,userContext); },
GetPreviousBillAndShipLocationsForUser:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPreviousBillAndShipLocationsForUser',false,{id:id},succeededCallback,failedCallback,userContext); },
GetTrainingByAuthorId:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTrainingByAuthorId',false,{id:id},succeededCallback,failedCallback,userContext); },
GetTrainingByCategoryId:function(s,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTrainingByCategoryId',false,{s:s},succeededCallback,failedCallback,userContext); },
GetTrainingByDeliveryMethodId:function(s,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTrainingByDeliveryMethodId',false,{s:s},succeededCallback,failedCallback,userContext); },
GetUserIdByCartId:function(cartId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserIdByCartId',false,{cartId:cartId},succeededCallback,failedCallback,userContext); },
RecordViews:function(tid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RecordViews',false,{tid:tid},succeededCallback,failedCallback,userContext); },
RemoveFromCart:function(cartId,itm,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveFromCart',false,{cartId:cartId,itm:itm},succeededCallback,failedCallback,userContext); },
UpdateCartQty:function(cartId,itm,qty,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateCartQty',false,{cartId:cartId,itm:itm,qty:qty},succeededCallback,failedCallback,userContext); }}
Geno.GenoAPI.registerClass('Geno.GenoAPI',Sys.Net.WebServiceProxy);
Geno.GenoAPI._staticInstance = new Geno.GenoAPI();
Geno.GenoAPI.set_path = function(value) { Geno.GenoAPI._staticInstance.set_path(value); }
Geno.GenoAPI.get_path = function() { return Geno.GenoAPI._staticInstance.get_path(); }
Geno.GenoAPI.set_timeout = function(value) { Geno.GenoAPI._staticInstance.set_timeout(value); }
Geno.GenoAPI.get_timeout = function() { return Geno.GenoAPI._staticInstance.get_timeout(); }
Geno.GenoAPI.set_defaultUserContext = function(value) { Geno.GenoAPI._staticInstance.set_defaultUserContext(value); }
Geno.GenoAPI.get_defaultUserContext = function() { return Geno.GenoAPI._staticInstance.get_defaultUserContext(); }
Geno.GenoAPI.set_defaultSucceededCallback = function(value) { Geno.GenoAPI._staticInstance.set_defaultSucceededCallback(value); }
Geno.GenoAPI.get_defaultSucceededCallback = function() { return Geno.GenoAPI._staticInstance.get_defaultSucceededCallback(); }
Geno.GenoAPI.set_defaultFailedCallback = function(value) { Geno.GenoAPI._staticInstance.set_defaultFailedCallback(value); }
Geno.GenoAPI.get_defaultFailedCallback = function() { return Geno.GenoAPI._staticInstance.get_defaultFailedCallback(); }
Geno.GenoAPI.set_path("/GenoAPI.asmx");
Geno.GenoAPI.AddToCart= function(cartId,trainingDeliveryId,qty,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.AddToCart(cartId,trainingDeliveryId,qty,onSuccess,onFailed,userContext); }
Geno.GenoAPI.CreateCart= function(userId,trainingDeliveryId,qty,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.CreateCart(userId,trainingDeliveryId,qty,onSuccess,onFailed,userContext); }
Geno.GenoAPI.DisplayNameIsUnique= function(userNameEntered,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.DisplayNameIsUnique(userNameEntered,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetAllTraining= function(onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetAllTraining(onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetCartEntryByCartId= function(cartId,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetCartEntryByCartId(cartId,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetCategories= function(onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetCategories(onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetChannelDetailsByChannelName= function(channelName,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetChannelDetailsByChannelName(channelName,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetDeliveryMethods= function(onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetDeliveryMethods(onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetFeaturedTraining= function(onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetFeaturedTraining(onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetFeedBackById= function(i,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetFeedBackById(i,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetPreviousBillAndShipLocationsForUser= function(id,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetPreviousBillAndShipLocationsForUser(id,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetTrainingByAuthorId= function(id,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetTrainingByAuthorId(id,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetTrainingByCategoryId= function(s,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetTrainingByCategoryId(s,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetTrainingByDeliveryMethodId= function(s,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetTrainingByDeliveryMethodId(s,onSuccess,onFailed,userContext); }
Geno.GenoAPI.GetUserIdByCartId= function(cartId,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.GetUserIdByCartId(cartId,onSuccess,onFailed,userContext); }
Geno.GenoAPI.RecordViews= function(tid,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.RecordViews(tid,onSuccess,onFailed,userContext); }
Geno.GenoAPI.RemoveFromCart= function(cartId,itm,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.RemoveFromCart(cartId,itm,onSuccess,onFailed,userContext); }
Geno.GenoAPI.UpdateCartQty= function(cartId,itm,qty,onSuccess,onFailed,userContext) {Geno.GenoAPI._staticInstance.UpdateCartQty(cartId,itm,qty,onSuccess,onFailed,userContext); }
