Type.registerNamespace('Spraywise');
Spraywise.legendService=function() {
Spraywise.legendService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Spraywise.legendService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Spraywise.legendService._staticInstance.get_path();},
requestLegend:function(url,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'requestLegend',false,{url:url},succeededCallback,failedCallback,userContext); },
requestLegendForImage:function(url,parameter,frequency,forecast,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'requestLegendForImage',false,{url:url,parameter:parameter,frequency:frequency,forecast:forecast},succeededCallback,failedCallback,userContext); }}
Spraywise.legendService.registerClass('Spraywise.legendService',Sys.Net.WebServiceProxy);
Spraywise.legendService._staticInstance = new Spraywise.legendService();
Spraywise.legendService.set_path = function(value) { Spraywise.legendService._staticInstance.set_path(value); }
Spraywise.legendService.get_path = function() { return Spraywise.legendService._staticInstance.get_path(); }
Spraywise.legendService.set_timeout = function(value) { Spraywise.legendService._staticInstance.set_timeout(value); }
Spraywise.legendService.get_timeout = function() { return Spraywise.legendService._staticInstance.get_timeout(); }
Spraywise.legendService.set_defaultUserContext = function(value) { Spraywise.legendService._staticInstance.set_defaultUserContext(value); }
Spraywise.legendService.get_defaultUserContext = function() { return Spraywise.legendService._staticInstance.get_defaultUserContext(); }
Spraywise.legendService.set_defaultSucceededCallback = function(value) { Spraywise.legendService._staticInstance.set_defaultSucceededCallback(value); }
Spraywise.legendService.get_defaultSucceededCallback = function() { return Spraywise.legendService._staticInstance.get_defaultSucceededCallback(); }
Spraywise.legendService.set_defaultFailedCallback = function(value) { Spraywise.legendService._staticInstance.set_defaultFailedCallback(value); }
Spraywise.legendService.get_defaultFailedCallback = function() { return Spraywise.legendService._staticInstance.get_defaultFailedCallback(); }
Spraywise.legendService.set_enableJsonp = function(value) { Spraywise.legendService._staticInstance.set_enableJsonp(value); }
Spraywise.legendService.get_enableJsonp = function() { return Spraywise.legendService._staticInstance.get_enableJsonp(); }
Spraywise.legendService.set_jsonpCallbackParameter = function(value) { Spraywise.legendService._staticInstance.set_jsonpCallbackParameter(value); }
Spraywise.legendService.get_jsonpCallbackParameter = function() { return Spraywise.legendService._staticInstance.get_jsonpCallbackParameter(); }
Spraywise.legendService.set_path("/Services/legendService.asmx");
Spraywise.legendService.requestLegend= function(url,onSuccess,onFailed,userContext) {Spraywise.legendService._staticInstance.requestLegend(url,onSuccess,onFailed,userContext); }
Spraywise.legendService.requestLegendForImage= function(url,parameter,frequency,forecast,onSuccess,onFailed,userContext) {Spraywise.legendService._staticInstance.requestLegendForImage(url,parameter,frequency,forecast,onSuccess,onFailed,userContext); }

