var VoteService=function() {
VoteService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
VoteService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return VoteService._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
Vote:function(myIdStr,succeededCallback, failedCallback, userContext) {
/// <param name="myIdStr" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Vote',false,{myIdStr:myIdStr},succeededCallback,failedCallback,userContext); },
Unvote:function(myIdStr,succeededCallback, failedCallback, userContext) {
/// <param name="myIdStr" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Unvote',false,{myIdStr:myIdStr},succeededCallback,failedCallback,userContext); },
UpdateVotes:function(myIdStr,url,succeededCallback, failedCallback, userContext) {
/// <param name="myIdStr" type="String">System.String</param>
/// <param name="url" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'UpdateVotes',false,{myIdStr:myIdStr,url:url},succeededCallback,failedCallback,userContext); },
UpdateAllVotes:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'UpdateAllVotes',false,{},succeededCallback,failedCallback,userContext); }}
VoteService.registerClass('VoteService',Sys.Net.WebServiceProxy);
VoteService._staticInstance = new VoteService();
VoteService.set_path = function(value) {
VoteService._staticInstance.set_path(value); }
VoteService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return VoteService._staticInstance.get_path();}
VoteService.set_timeout = function(value) {
VoteService._staticInstance.set_timeout(value); }
VoteService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return VoteService._staticInstance.get_timeout(); }
VoteService.set_defaultUserContext = function(value) { 
VoteService._staticInstance.set_defaultUserContext(value); }
VoteService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return VoteService._staticInstance.get_defaultUserContext(); }
VoteService.set_defaultSucceededCallback = function(value) { 
 VoteService._staticInstance.set_defaultSucceededCallback(value); }
VoteService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return VoteService._staticInstance.get_defaultSucceededCallback(); }
VoteService.set_defaultFailedCallback = function(value) { 
VoteService._staticInstance.set_defaultFailedCallback(value); }
VoteService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return VoteService._staticInstance.get_defaultFailedCallback(); }
VoteService.set_path("/VoteService.asmx");
VoteService.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
VoteService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
VoteService.Vote= function(myIdStr,onSuccess,onFailed,userContext) {
/// <param name="myIdStr" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
VoteService._staticInstance.Vote(myIdStr,onSuccess,onFailed,userContext); }
VoteService.Unvote= function(myIdStr,onSuccess,onFailed,userContext) {
/// <param name="myIdStr" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
VoteService._staticInstance.Unvote(myIdStr,onSuccess,onFailed,userContext); }
VoteService.UpdateVotes= function(myIdStr,url,onSuccess,onFailed,userContext) {
/// <param name="myIdStr" type="String">System.String</param>
/// <param name="url" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
VoteService._staticInstance.UpdateVotes(myIdStr,url,onSuccess,onFailed,userContext); }
VoteService.UpdateAllVotes= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
VoteService._staticInstance.UpdateAllVotes(onSuccess,onFailed,userContext); }

