var Polls=function() {
Polls.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Polls.prototype={
getActivePollD:function(lang,showWide,succeededCallback, failedCallback, userContext) {
return this._invoke(Polls.get_path(), 'getActivePollD',false,{lang:lang,showWide:showWide},succeededCallback,failedCallback,userContext); },
getActivePoll:function(lang,showWide,succeededCallback, failedCallback, userContext) {
return this._invoke(Polls.get_path(), 'getActivePoll',false,{lang:lang,showWide:showWide},succeededCallback,failedCallback,userContext); },
putAnswer:function(lang,UID,userIP,siteID,answerID,pollID,showWide,succeededCallback, failedCallback, userContext) {
return this._invoke(Polls.get_path(), 'putAnswer',false,{lang:lang,UID:UID,userIP:userIP,siteID:siteID,answerID:answerID,pollID:pollID,showWide:showWide},succeededCallback,failedCallback,userContext); },
GetPoll:function(ID,showWide,succeededCallback, failedCallback, userContext) {
return this._invoke(Polls.get_path(), 'GetPoll',false,{ID:ID,showWide:showWide},succeededCallback,failedCallback,userContext); },
GetAllPolls:function(lang,succeededCallback, failedCallback, userContext) {
return this._invoke(Polls.get_path(), 'GetAllPolls',false,{lang:lang},succeededCallback,failedCallback,userContext); }}
Polls.registerClass('Polls',Sys.Net.WebServiceProxy);
Polls._staticInstance = new Polls();
Polls.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Polls._staticInstance._path = value; }
Polls.get_path = function() { return Polls._staticInstance._path; }
Polls.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); }
Polls._staticInstance._timeout = value; }
Polls.get_timeout = function() { 
return Polls._staticInstance._timeout; }
Polls.set_defaultUserContext = function(value) { 
Polls._staticInstance._userContext = value; }
Polls.get_defaultUserContext = function() { 
return Polls._staticInstance._userContext; }
Polls.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Polls._staticInstance._succeeded = value; }
Polls.get_defaultSucceededCallback = function() { 
return Polls._staticInstance._succeeded; }
Polls.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Polls._staticInstance._failed = value; }
Polls.get_defaultFailedCallback = function() { 
return Polls._staticInstance._failed; }
Polls.set_path("/Services/Polls.asmx");
Polls.getActivePollD= function(lang,showWide,onSuccess,onFailed,userContext) {Polls._staticInstance.getActivePollD(lang,showWide,onSuccess,onFailed,userContext); }
Polls.getActivePoll= function(lang,showWide,onSuccess,onFailed,userContext) {Polls._staticInstance.getActivePoll(lang,showWide,onSuccess,onFailed,userContext); }
Polls.putAnswer= function(lang,UID,userIP,siteID,answerID,pollID,showWide,onSuccess,onFailed,userContext) {Polls._staticInstance.putAnswer(lang,UID,userIP,siteID,answerID,pollID,showWide,onSuccess,onFailed,userContext); }
Polls.GetPoll= function(ID,showWide,onSuccess,onFailed,userContext) {Polls._staticInstance.GetPoll(ID,showWide,onSuccess,onFailed,userContext); }
Polls.GetAllPolls= function(lang,onSuccess,onFailed,userContext) {Polls._staticInstance.GetAllPolls(lang,onSuccess,onFailed,userContext); }
