var PostServices=function() {
PostServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PostServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PostServices._staticInstance.get_path();},
AddPostVote:function(voteValue,postId,succeededCallback, failedCallback, userContext) {
/// <param name="voteValue" type="String">System.String</param>
/// <param name="postId" type="Number">System.Int32</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(), 'AddPostVote',false,{voteValue:voteValue,postId:postId},succeededCallback,failedCallback,userContext); },
SendEmail:function(to,message,link,succeededCallback, failedCallback, userContext) {
/// <param name="to" type="String">System.String</param>
/// <param name="message" type="String">System.String</param>
/// <param name="link" 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(), 'SendEmail',false,{to:to,message:message,link:link},succeededCallback,failedCallback,userContext); },
AddComment:function(nome,email,testo,postid,succeededCallback, failedCallback, userContext) {
/// <param name="nome" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="testo" type="String">System.String</param>
/// <param name="postid" type="Number">System.Int32</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(), 'AddComment',false,{nome:nome,email:email,testo:testo,postid:postid},succeededCallback,failedCallback,userContext); }}
PostServices.registerClass('PostServices',Sys.Net.WebServiceProxy);
PostServices._staticInstance = new PostServices();
PostServices.set_path = function(value) {
PostServices._staticInstance.set_path(value); }
PostServices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return PostServices._staticInstance.get_path();}
PostServices.set_timeout = function(value) {
PostServices._staticInstance.set_timeout(value); }
PostServices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return PostServices._staticInstance.get_timeout(); }
PostServices.set_defaultUserContext = function(value) { 
PostServices._staticInstance.set_defaultUserContext(value); }
PostServices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return PostServices._staticInstance.get_defaultUserContext(); }
PostServices.set_defaultSucceededCallback = function(value) { 
 PostServices._staticInstance.set_defaultSucceededCallback(value); }
PostServices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return PostServices._staticInstance.get_defaultSucceededCallback(); }
PostServices.set_defaultFailedCallback = function(value) { 
PostServices._staticInstance.set_defaultFailedCallback(value); }
PostServices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return PostServices._staticInstance.get_defaultFailedCallback(); }
PostServices.set_path("/Services/PostServices.asmx");
PostServices.AddPostVote= function(voteValue,postId,onSuccess,onFailed,userContext) {
/// <param name="voteValue" type="String">System.String</param>
/// <param name="postId" type="Number">System.Int32</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>
PostServices._staticInstance.AddPostVote(voteValue,postId,onSuccess,onFailed,userContext); }
PostServices.SendEmail= function(to,message,link,onSuccess,onFailed,userContext) {
/// <param name="to" type="String">System.String</param>
/// <param name="message" type="String">System.String</param>
/// <param name="link" 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>
PostServices._staticInstance.SendEmail(to,message,link,onSuccess,onFailed,userContext); }
PostServices.AddComment= function(nome,email,testo,postid,onSuccess,onFailed,userContext) {
/// <param name="nome" type="String">System.String</param>
/// <param name="email" type="String">System.String</param>
/// <param name="testo" type="String">System.String</param>
/// <param name="postid" type="Number">System.Int32</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>
PostServices._staticInstance.AddComment(nome,email,testo,postid,onSuccess,onFailed,userContext); }

