Type.registerNamespace('Miles33.SAM.UI');
Miles33.SAM.UI.MotorsConfig=function() {
Miles33.SAM.UI.MotorsConfig.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Miles33.SAM.UI.MotorsConfig.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Miles33.SAM.UI.MotorsConfig._staticInstance.get_path();},
GetMakes:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMakes',false,{},succeededCallback,failedCallback,userContext); },
GetModels:function(make,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetModels',false,{make:make},succeededCallback,failedCallback,userContext); },
GetTrims:function(make,model,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTrims',false,{make:make,model:model},succeededCallback,failedCallback,userContext); },
GetEngineSizes:function(make,model,trim,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetEngineSizes',false,{make:make,model:model,trim:trim},succeededCallback,failedCallback,userContext); },
GetBodyTypes:function(make,model,trim,enginesize,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetBodyTypes',false,{make:make,model:model,trim:trim,enginesize:enginesize},succeededCallback,failedCallback,userContext); },
GetDoors:function(make,model,trim,enginesize,bodytype,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDoors',false,{make:make,model:model,trim:trim,enginesize:enginesize,bodytype:bodytype},succeededCallback,failedCallback,userContext); },
GetFuelTypes:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFuelTypes',false,{},succeededCallback,failedCallback,userContext); },
GetYears:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetYears',false,{},succeededCallback,failedCallback,userContext); },
GetRegistrations:function(year,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRegistrations',false,{year:year},succeededCallback,failedCallback,userContext); },
FetchMotorsData:function(challenge,response,carRegistration,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FetchMotorsData',false,{challenge:challenge,response:response,carRegistration:carRegistration},succeededCallback,failedCallback,userContext); }}
Miles33.SAM.UI.MotorsConfig.registerClass('Miles33.SAM.UI.MotorsConfig',Sys.Net.WebServiceProxy);
Miles33.SAM.UI.MotorsConfig._staticInstance = new Miles33.SAM.UI.MotorsConfig();
Miles33.SAM.UI.MotorsConfig.set_path = function(value) { Miles33.SAM.UI.MotorsConfig._staticInstance.set_path(value); }
Miles33.SAM.UI.MotorsConfig.get_path = function() { return Miles33.SAM.UI.MotorsConfig._staticInstance.get_path(); }
Miles33.SAM.UI.MotorsConfig.set_timeout = function(value) { Miles33.SAM.UI.MotorsConfig._staticInstance.set_timeout(value); }
Miles33.SAM.UI.MotorsConfig.get_timeout = function() { return Miles33.SAM.UI.MotorsConfig._staticInstance.get_timeout(); }
Miles33.SAM.UI.MotorsConfig.set_defaultUserContext = function(value) { Miles33.SAM.UI.MotorsConfig._staticInstance.set_defaultUserContext(value); }
Miles33.SAM.UI.MotorsConfig.get_defaultUserContext = function() { return Miles33.SAM.UI.MotorsConfig._staticInstance.get_defaultUserContext(); }
Miles33.SAM.UI.MotorsConfig.set_defaultSucceededCallback = function(value) { Miles33.SAM.UI.MotorsConfig._staticInstance.set_defaultSucceededCallback(value); }
Miles33.SAM.UI.MotorsConfig.get_defaultSucceededCallback = function() { return Miles33.SAM.UI.MotorsConfig._staticInstance.get_defaultSucceededCallback(); }
Miles33.SAM.UI.MotorsConfig.set_defaultFailedCallback = function(value) { Miles33.SAM.UI.MotorsConfig._staticInstance.set_defaultFailedCallback(value); }
Miles33.SAM.UI.MotorsConfig.get_defaultFailedCallback = function() { return Miles33.SAM.UI.MotorsConfig._staticInstance.get_defaultFailedCallback(); }
Miles33.SAM.UI.MotorsConfig.set_path("/WebServices/MotorsConfig.asmx");
Miles33.SAM.UI.MotorsConfig.GetMakes= function(onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetMakes(onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetModels= function(make,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetModels(make,onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetTrims= function(make,model,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetTrims(make,model,onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetEngineSizes= function(make,model,trim,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetEngineSizes(make,model,trim,onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetBodyTypes= function(make,model,trim,enginesize,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetBodyTypes(make,model,trim,enginesize,onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetDoors= function(make,model,trim,enginesize,bodytype,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetDoors(make,model,trim,enginesize,bodytype,onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetFuelTypes= function(onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetFuelTypes(onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetYears= function(onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetYears(onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.GetRegistrations= function(year,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.GetRegistrations(year,onSuccess,onFailed,userContext); }
Miles33.SAM.UI.MotorsConfig.FetchMotorsData= function(challenge,response,carRegistration,onSuccess,onFailed,userContext) {Miles33.SAM.UI.MotorsConfig._staticInstance.FetchMotorsData(challenge,response,carRegistration,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Miles33.SAM.UI.Car) === 'undefined') {
Miles33.SAM.UI.Car=gtc("Miles33.SAM.UI.Car");
Miles33.SAM.UI.Car.registerClass('Miles33.SAM.UI.Car');
}

