Type.registerNamespace('Avenue7_Presentation');
Avenue7_Presentation.PollService=function() {
Avenue7_Presentation.PollService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Avenue7_Presentation.PollService.prototype={
PollCreatePickTheBest:function(questionText,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.PollService.get_path(), 'PollCreatePickTheBest',false,{questionText:questionText,answerType:answerType,item1GUID:item1GUID,item2GUID:item2GUID,item3GUID:item3GUID,item4GUID:item4GUID,item5GUID:item5GUID,item6GUID:item6GUID},succeededCallback,failedCallback,userContext); },
PollCreateWhatGoes:function(questionText,questionItemGUID,questionItemType,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.PollService.get_path(), 'PollCreateWhatGoes',false,{questionText:questionText,questionItemGUID:questionItemGUID,questionItemType:questionItemType,answerType:answerType,item1GUID:item1GUID,item2GUID:item2GUID,item3GUID:item3GUID,item4GUID:item4GUID,item5GUID:item5GUID,item6GUID:item6GUID},succeededCallback,failedCallback,userContext); },
PollCreateQuestion:function(questionText,answer1,answer2,answer3,answer4,answer5,answer6,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.PollService.get_path(), 'PollCreateQuestion',false,{questionText:questionText,answer1:answer1,answer2:answer2,answer3:answer3,answer4:answer4,answer5:answer5,answer6:answer6},succeededCallback,failedCallback,userContext); },
PollCreateWhatSuits:function(questionText,questionItemGUID,questionItemType,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.PollService.get_path(), 'PollCreateWhatSuits',false,{questionText:questionText,questionItemGUID:questionItemGUID,questionItemType:questionItemType,answerType:answerType,item1GUID:item1GUID,item2GUID:item2GUID,item3GUID:item3GUID,item4GUID:item4GUID,item5GUID:item5GUID,item6GUID:item6GUID},succeededCallback,failedCallback,userContext); },
PollVote:function(pollGUID,answerID,succeededCallback, failedCallback, userContext) {
return this._invoke(Avenue7_Presentation.PollService.get_path(), 'PollVote',false,{pollGUID:pollGUID,answerID:answerID},succeededCallback,failedCallback,userContext); }}
Avenue7_Presentation.PollService.registerClass('Avenue7_Presentation.PollService',Sys.Net.WebServiceProxy);
Avenue7_Presentation.PollService._staticInstance = new Avenue7_Presentation.PollService();
Avenue7_Presentation.PollService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Avenue7_Presentation.PollService._staticInstance._path = value; }
Avenue7_Presentation.PollService.get_path = function() { return Avenue7_Presentation.PollService._staticInstance._path; }
Avenue7_Presentation.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); }
Avenue7_Presentation.PollService._staticInstance._timeout = value; }
Avenue7_Presentation.PollService.get_timeout = function() { 
return Avenue7_Presentation.PollService._staticInstance._timeout; }
Avenue7_Presentation.PollService.set_defaultUserContext = function(value) { 
Avenue7_Presentation.PollService._staticInstance._userContext = value; }
Avenue7_Presentation.PollService.get_defaultUserContext = function() { 
return Avenue7_Presentation.PollService._staticInstance._userContext; }
Avenue7_Presentation.PollService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Avenue7_Presentation.PollService._staticInstance._succeeded = value; }
Avenue7_Presentation.PollService.get_defaultSucceededCallback = function() { 
return Avenue7_Presentation.PollService._staticInstance._succeeded; }
Avenue7_Presentation.PollService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Avenue7_Presentation.PollService._staticInstance._failed = value; }
Avenue7_Presentation.PollService.get_defaultFailedCallback = function() { 
return Avenue7_Presentation.PollService._staticInstance._failed; }
Avenue7_Presentation.PollService.set_path("/webServices/PollService.asmx");
Avenue7_Presentation.PollService.PollCreatePickTheBest= function(questionText,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,onSuccess,onFailed,userContext) {Avenue7_Presentation.PollService._staticInstance.PollCreatePickTheBest(questionText,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,onSuccess,onFailed,userContext); }
Avenue7_Presentation.PollService.PollCreateWhatGoes= function(questionText,questionItemGUID,questionItemType,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,onSuccess,onFailed,userContext) {Avenue7_Presentation.PollService._staticInstance.PollCreateWhatGoes(questionText,questionItemGUID,questionItemType,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,onSuccess,onFailed,userContext); }
Avenue7_Presentation.PollService.PollCreateQuestion= function(questionText,answer1,answer2,answer3,answer4,answer5,answer6,onSuccess,onFailed,userContext) {Avenue7_Presentation.PollService._staticInstance.PollCreateQuestion(questionText,answer1,answer2,answer3,answer4,answer5,answer6,onSuccess,onFailed,userContext); }
Avenue7_Presentation.PollService.PollCreateWhatSuits= function(questionText,questionItemGUID,questionItemType,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,onSuccess,onFailed,userContext) {Avenue7_Presentation.PollService._staticInstance.PollCreateWhatSuits(questionText,questionItemGUID,questionItemType,answerType,item1GUID,item2GUID,item3GUID,item4GUID,item5GUID,item6GUID,onSuccess,onFailed,userContext); }
Avenue7_Presentation.PollService.PollVote= function(pollGUID,answerID,onSuccess,onFailed,userContext) {Avenue7_Presentation.PollService._staticInstance.PollVote(pollGUID,answerID,onSuccess,onFailed,userContext); }
