var IncidentsService=function() {
IncidentsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
IncidentsService.prototype={
GetIncidentsWithImpactLevel:function(impactLevel,succeededCallback, failedCallback, userContext) {
return this._invoke(IncidentsService.get_path(), 'GetIncidentsWithImpactLevel',true,{impactLevel:impactLevel},succeededCallback,failedCallback,userContext); },
ImpactLevelExists:function(impactLevel,succeededCallback, failedCallback, userContext) {
return this._invoke(IncidentsService.get_path(), 'ImpactLevelExists',true,{impactLevel:impactLevel},succeededCallback,failedCallback,userContext); }}
IncidentsService.registerClass('IncidentsService',Sys.Net.WebServiceProxy);
IncidentsService._staticInstance = new IncidentsService();
IncidentsService.set_path = function(value) { IncidentsService._staticInstance._path = value; }
IncidentsService.get_path = function() { return IncidentsService._staticInstance._path; }
IncidentsService.set_timeout = function(value) { IncidentsService._staticInstance._timeout = value; }
IncidentsService.get_timeout = function() { return IncidentsService._staticInstance._timeout; }
IncidentsService.set_defaultUserContext = function(value) { IncidentsService._staticInstance._userContext = value; }
IncidentsService.get_defaultUserContext = function() { return IncidentsService._staticInstance._userContext; }
IncidentsService.set_defaultSucceededCallback = function(value) { IncidentsService._staticInstance._succeeded = value; }
IncidentsService.get_defaultSucceededCallback = function() { return IncidentsService._staticInstance._succeeded; }
IncidentsService.set_defaultFailedCallback = function(value) { IncidentsService._staticInstance._failed = value; }
IncidentsService.get_defaultFailedCallback = function() { return IncidentsService._staticInstance._failed; }
IncidentsService.set_path("/service/incidents.asmx");
IncidentsService.GetIncidentsWithImpactLevel= function(impactLevel,onSuccess,onFailed,userContext) {IncidentsService._staticInstance.GetIncidentsWithImpactLevel(impactLevel,onSuccess,onFailed,userContext); }
IncidentsService.ImpactLevelExists= function(impactLevel,onSuccess,onFailed,userContext) {IncidentsService._staticInstance.ImpactLevelExists(impactLevel,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DotNetSolutions.TrafficEye.API');
if (typeof(DotNetSolutions.TrafficEye.API.Incident) === 'undefined') {
DotNetSolutions.TrafficEye.API.Incident=gtc("DotNetSolutions.TrafficEye.API.Incident");
DotNetSolutions.TrafficEye.API.Incident.registerClass('DotNetSolutions.TrafficEye.API.Incident');
}
Type.registerNamespace('DotNetSolutions.TrafficEye.API.Query');
DotNetSolutions.TrafficEye.API.Query.ImpactLevel = function() { throw Error.invalidOperation(); }
DotNetSolutions.TrafficEye.API.Query.ImpactLevel.prototype = {High: 0,Normal: 1}
DotNetSolutions.TrafficEye.API.Query.ImpactLevel.registerEnum('DotNetSolutions.TrafficEye.API.Query.ImpactLevel', true);
