var pollService=function() {
pollService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
pollService.prototype={
returnResult:function(pollId,answerid,succeededCallback, failedCallback, userContext) {
return this._invoke(pollService.get_path(), 'returnResult',false,{pollId:pollId,answerid:answerid},succeededCallback,failedCallback,userContext); }}
pollService.registerClass('pollService',Sys.Net.WebServiceProxy);
pollService._staticInstance = new pollService();
pollService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; pollService._staticInstance._path = value; }
pollService.get_path = function() { return pollService._staticInstance._path; }
pollService.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); }
pollService._staticInstance._timeout = value; }
pollService.get_timeout = function() { 
return pollService._staticInstance._timeout; }
pollService.set_defaultUserContext = function(value) { 
pollService._staticInstance._userContext = value; }
pollService.get_defaultUserContext = function() { 
return pollService._staticInstance._userContext; }
pollService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; pollService._staticInstance._succeeded = value; }
pollService.get_defaultSucceededCallback = function() { 
return pollService._staticInstance._succeeded; }
pollService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; pollService._staticInstance._failed = value; }
pollService.get_defaultFailedCallback = function() { 
return pollService._staticInstance._failed; }
pollService.set_path("/asset/ascx/content/pollService.asmx");
pollService.returnResult= function(pollId,answerid,onSuccess,onFailed,userContext) {pollService._staticInstance.returnResult(pollId,answerid,onSuccess,onFailed,userContext); }
