Type.registerNamespace('WebCars.WebServices');
WebCars.WebServices.WebVehicleStatistic=function() {
WebCars.WebServices.WebVehicleStatistic.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebCars.WebServices.WebVehicleStatistic.prototype={
AddStatistic:function(statistic,succeededCallback, failedCallback, userContext) {
return this._invoke(WebCars.WebServices.WebVehicleStatistic.get_path(), 'AddStatistic',false,{statistic:statistic},succeededCallback,failedCallback,userContext); }}
WebCars.WebServices.WebVehicleStatistic.registerClass('WebCars.WebServices.WebVehicleStatistic',Sys.Net.WebServiceProxy);
WebCars.WebServices.WebVehicleStatistic._staticInstance = new WebCars.WebServices.WebVehicleStatistic();
WebCars.WebServices.WebVehicleStatistic.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; WebCars.WebServices.WebVehicleStatistic._staticInstance._path = value; }
WebCars.WebServices.WebVehicleStatistic.get_path = function() { return WebCars.WebServices.WebVehicleStatistic._staticInstance._path; }
WebCars.WebServices.WebVehicleStatistic.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
WebCars.WebServices.WebVehicleStatistic._staticInstance._timeout = value; }
WebCars.WebServices.WebVehicleStatistic.get_timeout = function() { 
return WebCars.WebServices.WebVehicleStatistic._staticInstance._timeout; }
WebCars.WebServices.WebVehicleStatistic.set_defaultUserContext = function(value) { 
WebCars.WebServices.WebVehicleStatistic._staticInstance._userContext = value; }
WebCars.WebServices.WebVehicleStatistic.get_defaultUserContext = function() { 
return WebCars.WebServices.WebVehicleStatistic._staticInstance._userContext; }
WebCars.WebServices.WebVehicleStatistic.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; WebCars.WebServices.WebVehicleStatistic._staticInstance._succeeded = value; }
WebCars.WebServices.WebVehicleStatistic.get_defaultSucceededCallback = function() { 
return WebCars.WebServices.WebVehicleStatistic._staticInstance._succeeded; }
WebCars.WebServices.WebVehicleStatistic.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; WebCars.WebServices.WebVehicleStatistic._staticInstance._failed = value; }
WebCars.WebServices.WebVehicleStatistic.get_defaultFailedCallback = function() { 
return WebCars.WebServices.WebVehicleStatistic._staticInstance._failed; }
WebCars.WebServices.WebVehicleStatistic.set_path("/WS/WebVehicleStatistic.asmx");
WebCars.WebServices.WebVehicleStatistic.AddStatistic= function(statistic,onSuccess,onFailed,userContext) {WebCars.WebServices.WebVehicleStatistic._staticInstance.AddStatistic(statistic,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(WebCars.WebServices.VehicleStatisticEntity) === 'undefined') {
WebCars.WebServices.VehicleStatisticEntity=gtc("WebCars.WebServices.VehicleStatisticEntity");
WebCars.WebServices.VehicleStatisticEntity.registerClass('WebCars.WebServices.VehicleStatisticEntity');
}
