Type.registerNamespace('IMO.Modules.Surveys.Service');
IMO.Modules.Surveys.Service.SurveyAjax=function() {
IMO.Modules.Surveys.Service.SurveyAjax.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
IMO.Modules.Surveys.Service.SurveyAjax.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.get_path();},
GetSurvey:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSurvey',false,{id:id},succeededCallback,failedCallback,userContext); },
VoteSurvey:function(id,answers,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'VoteSurvey',false,{id:id,answers:answers},succeededCallback,failedCallback,userContext); },
GetSurveyResult:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSurveyResult',false,{id:id},succeededCallback,failedCallback,userContext); }}
IMO.Modules.Surveys.Service.SurveyAjax.registerClass('IMO.Modules.Surveys.Service.SurveyAjax',Sys.Net.WebServiceProxy);
IMO.Modules.Surveys.Service.SurveyAjax._staticInstance = new IMO.Modules.Surveys.Service.SurveyAjax();
IMO.Modules.Surveys.Service.SurveyAjax.set_path = function(value) { IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.set_path(value); }
IMO.Modules.Surveys.Service.SurveyAjax.get_path = function() { return IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.get_path(); }
IMO.Modules.Surveys.Service.SurveyAjax.set_timeout = function(value) { IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.set_timeout(value); }
IMO.Modules.Surveys.Service.SurveyAjax.get_timeout = function() { return IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.get_timeout(); }
IMO.Modules.Surveys.Service.SurveyAjax.set_defaultUserContext = function(value) { IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.set_defaultUserContext(value); }
IMO.Modules.Surveys.Service.SurveyAjax.get_defaultUserContext = function() { return IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.get_defaultUserContext(); }
IMO.Modules.Surveys.Service.SurveyAjax.set_defaultSucceededCallback = function(value) { IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.set_defaultSucceededCallback(value); }
IMO.Modules.Surveys.Service.SurveyAjax.get_defaultSucceededCallback = function() { return IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.get_defaultSucceededCallback(); }
IMO.Modules.Surveys.Service.SurveyAjax.set_defaultFailedCallback = function(value) { IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.set_defaultFailedCallback(value); }
IMO.Modules.Surveys.Service.SurveyAjax.get_defaultFailedCallback = function() { return IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.get_defaultFailedCallback(); }
IMO.Modules.Surveys.Service.SurveyAjax.set_path("/DesktopModules/Surveys/Service/SurveyAjax.asmx");
IMO.Modules.Surveys.Service.SurveyAjax.GetSurvey= function(id,onSuccess,onFailed,userContext) {IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.GetSurvey(id,onSuccess,onFailed,userContext); }
IMO.Modules.Surveys.Service.SurveyAjax.VoteSurvey= function(id,answers,onSuccess,onFailed,userContext) {IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.VoteSurvey(id,answers,onSuccess,onFailed,userContext); }
IMO.Modules.Surveys.Service.SurveyAjax.GetSurveyResult= function(id,onSuccess,onFailed,userContext) {IMO.Modules.Surveys.Service.SurveyAjax._staticInstance.GetSurveyResult(id,onSuccess,onFailed,userContext); }
