Type.registerNamespace('Carselect.Services');
Carselect.Services.ShowroomService=function() {
Carselect.Services.ShowroomService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Carselect.Services.ShowroomService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Carselect.Services.ShowroomService._staticInstance.get_path();},
AddToShowroom:function(refNo,succeededCallback, failedCallback, userContext) {
/// <param name="refNo" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddToShowroom',true,{refNo:refNo},succeededCallback,failedCallback,userContext); },
RemoveFromShowroom:function(refNo,succeededCallback, failedCallback, userContext) {
/// <param name="refNo" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveFromShowroom',true,{refNo:refNo},succeededCallback,failedCallback,userContext); },
GetShowroom:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetShowroom',true,{},succeededCallback,failedCallback,userContext); },
GetFullShowroom:function(selectedPage,succeededCallback, failedCallback, userContext) {
/// <param name="selectedPage" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetFullShowroom',true,{selectedPage:selectedPage},succeededCallback,failedCallback,userContext); },
GetNewMakeVariants:function(make,selectedPage,orderBy,orderDirection,numOnPage,succeededCallback, failedCallback, userContext) {
/// <param name="make" type="String">System.String</param>
/// <param name="selectedPage" type="Number">System.Int32</param>
/// <param name="orderBy" type="String">System.String</param>
/// <param name="orderDirection" type="Number">System.Int32</param>
/// <param name="numOnPage" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetNewMakeVariants',true,{make:make,selectedPage:selectedPage,orderBy:orderBy,orderDirection:orderDirection,numOnPage:numOnPage},succeededCallback,failedCallback,userContext); },
GetNumberOfCarsInShowroom:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetNumberOfCarsInShowroom',true,{},succeededCallback,failedCallback,userContext); },
GetRecentlyViewed:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetRecentlyViewed',true,{},succeededCallback,failedCallback,userContext); }}
Carselect.Services.ShowroomService.registerClass('Carselect.Services.ShowroomService',Sys.Net.WebServiceProxy);
Carselect.Services.ShowroomService._staticInstance = new Carselect.Services.ShowroomService();
Carselect.Services.ShowroomService.set_path = function(value) {
Carselect.Services.ShowroomService._staticInstance.set_path(value); }
Carselect.Services.ShowroomService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Carselect.Services.ShowroomService._staticInstance.get_path();}
Carselect.Services.ShowroomService.set_timeout = function(value) {
Carselect.Services.ShowroomService._staticInstance.set_timeout(value); }
Carselect.Services.ShowroomService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Carselect.Services.ShowroomService._staticInstance.get_timeout(); }
Carselect.Services.ShowroomService.set_defaultUserContext = function(value) { 
Carselect.Services.ShowroomService._staticInstance.set_defaultUserContext(value); }
Carselect.Services.ShowroomService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Carselect.Services.ShowroomService._staticInstance.get_defaultUserContext(); }
Carselect.Services.ShowroomService.set_defaultSucceededCallback = function(value) { 
 Carselect.Services.ShowroomService._staticInstance.set_defaultSucceededCallback(value); }
Carselect.Services.ShowroomService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Carselect.Services.ShowroomService._staticInstance.get_defaultSucceededCallback(); }
Carselect.Services.ShowroomService.set_defaultFailedCallback = function(value) { 
Carselect.Services.ShowroomService._staticInstance.set_defaultFailedCallback(value); }
Carselect.Services.ShowroomService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Carselect.Services.ShowroomService._staticInstance.get_defaultFailedCallback(); }
Carselect.Services.ShowroomService.set_path("/services/ShowroomService.svc");
Carselect.Services.ShowroomService.AddToShowroom= function(refNo,onSuccess,onFailed,userContext) {
/// <param name="refNo" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.AddToShowroom(refNo,onSuccess,onFailed,userContext); }
Carselect.Services.ShowroomService.RemoveFromShowroom= function(refNo,onSuccess,onFailed,userContext) {
/// <param name="refNo" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.RemoveFromShowroom(refNo,onSuccess,onFailed,userContext); }
Carselect.Services.ShowroomService.GetShowroom= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.GetShowroom(onSuccess,onFailed,userContext); }
Carselect.Services.ShowroomService.GetFullShowroom= function(selectedPage,onSuccess,onFailed,userContext) {
/// <param name="selectedPage" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.GetFullShowroom(selectedPage,onSuccess,onFailed,userContext); }
Carselect.Services.ShowroomService.GetNewMakeVariants= function(make,selectedPage,orderBy,orderDirection,numOnPage,onSuccess,onFailed,userContext) {
/// <param name="make" type="String">System.String</param>
/// <param name="selectedPage" type="Number">System.Int32</param>
/// <param name="orderBy" type="String">System.String</param>
/// <param name="orderDirection" type="Number">System.Int32</param>
/// <param name="numOnPage" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.GetNewMakeVariants(make,selectedPage,orderBy,orderDirection,numOnPage,onSuccess,onFailed,userContext); }
Carselect.Services.ShowroomService.GetNumberOfCarsInShowroom= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.GetNumberOfCarsInShowroom(onSuccess,onFailed,userContext); }
Carselect.Services.ShowroomService.GetRecentlyViewed= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Carselect.Services.ShowroomService._staticInstance.GetRecentlyViewed(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Carselect.Data.DataObjects');
if (typeof(Carselect.Data.DataObjects.Car) === 'undefined') {
Carselect.Data.DataObjects.Car=gtc("Car:http://schemas.datacontract.org/2004/07/Carselect.Data.DataObjects");
Carselect.Data.DataObjects.Car.registerClass('Carselect.Data.DataObjects.Car');
}
if (typeof(Carselect.Data.DataObjects.UsedCar) === 'undefined') {
Carselect.Data.DataObjects.UsedCar=gtc("UsedCar:http://schemas.datacontract.org/2004/07/Carselect.Data.DataObjects");
Carselect.Data.DataObjects.UsedCar.registerClass('Carselect.Data.DataObjects.UsedCar');
}
if (typeof(Carselect.Data.DataObjects.CarsOfCarh8PvJU7B) === 'undefined') {
Carselect.Data.DataObjects.CarsOfCarh8PvJU7B=gtc("CarsOfCarh8PvJU7B:http://schemas.datacontract.org/2004/07/Carselect.Data.DataObjects");
Carselect.Data.DataObjects.CarsOfCarh8PvJU7B.registerClass('Carselect.Data.DataObjects.CarsOfCarh8PvJU7B');
}
