Type.registerNamespace('TradersMag.WebService');
TradersMag.WebService.BlogService=function() {
TradersMag.WebService.BlogService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TradersMag.WebService.BlogService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return TradersMag.WebService.BlogService._staticInstance.get_path();},
GetBlogContent:function(page,parameter,succeededCallback, failedCallback, userContext) {
/// <param name="page" type="Number">System.Int32</param>
/// <param name="parameter" type="Array">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(), 'GetBlogContent',false,{page:page,parameter:parameter},succeededCallback,failedCallback,userContext); },
GetBlogArticle:function(blogId,comment,succeededCallback, failedCallback, userContext) {
/// <param name="blogId" type="Number">System.Int32</param>
/// <param name="comment" type="Boolean">System.Boolean</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(), 'GetBlogArticle',false,{blogId:blogId,comment:comment},succeededCallback,failedCallback,userContext); },
SaveBlogComment:function(blogId,commentText,succeededCallback, failedCallback, userContext) {
/// <param name="blogId" type="Number">System.Int32</param>
/// <param name="commentText" 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(), 'SaveBlogComment',false,{blogId:blogId,commentText:commentText},succeededCallback,failedCallback,userContext); },
UpdateBlogComment:function(commentId,comment,succeededCallback, failedCallback, userContext) {
/// <param name="commentId" type="Number">System.Int32</param>
/// <param name="comment" 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(), 'UpdateBlogComment',false,{commentId:commentId,comment:comment},succeededCallback,failedCallback,userContext); },
DeleteBlogComment:function(commentId,succeededCallback, failedCallback, userContext) {
/// <param name="commentId" 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(), 'DeleteBlogComment',false,{commentId:commentId},succeededCallback,failedCallback,userContext); },
CreateNewArticle:function(categoryId,header,succeededCallback, failedCallback, userContext) {
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="header" 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(), 'CreateNewArticle',false,{categoryId:categoryId,header:header},succeededCallback,failedCallback,userContext); },
UpdateBlogArticle:function(blogId,categoryId,title,html,tags,succeededCallback, failedCallback, userContext) {
/// <param name="blogId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="title" type="String">System.String</param>
/// <param name="html" type="String">System.String</param>
/// <param name="tags" 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(), 'UpdateBlogArticle',false,{blogId:blogId,categoryId:categoryId,title:title,html:html,tags:tags},succeededCallback,failedCallback,userContext); },
DeleteBlogArticle:function(blogId,succeededCallback, failedCallback, userContext) {
/// <param name="blogId" 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(), 'DeleteBlogArticle',false,{blogId:blogId},succeededCallback,failedCallback,userContext); },
GetBlogEditor:function(blogId,succeededCallback, failedCallback, userContext) {
/// <param name="blogId" 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(), 'GetBlogEditor',false,{blogId:blogId},succeededCallback,failedCallback,userContext); },
GetAboutBlogger:function(bloggerId,succeededCallback, failedCallback, userContext) {
/// <param name="bloggerId" type="String">System.Guid</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(), 'GetAboutBlogger',false,{bloggerId:bloggerId},succeededCallback,failedCallback,userContext); }}
TradersMag.WebService.BlogService.registerClass('TradersMag.WebService.BlogService',Sys.Net.WebServiceProxy);
TradersMag.WebService.BlogService._staticInstance = new TradersMag.WebService.BlogService();
TradersMag.WebService.BlogService.set_path = function(value) {
TradersMag.WebService.BlogService._staticInstance.set_path(value); }
TradersMag.WebService.BlogService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return TradersMag.WebService.BlogService._staticInstance.get_path();}
TradersMag.WebService.BlogService.set_timeout = function(value) {
TradersMag.WebService.BlogService._staticInstance.set_timeout(value); }
TradersMag.WebService.BlogService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return TradersMag.WebService.BlogService._staticInstance.get_timeout(); }
TradersMag.WebService.BlogService.set_defaultUserContext = function(value) { 
TradersMag.WebService.BlogService._staticInstance.set_defaultUserContext(value); }
TradersMag.WebService.BlogService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return TradersMag.WebService.BlogService._staticInstance.get_defaultUserContext(); }
TradersMag.WebService.BlogService.set_defaultSucceededCallback = function(value) { 
 TradersMag.WebService.BlogService._staticInstance.set_defaultSucceededCallback(value); }
TradersMag.WebService.BlogService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return TradersMag.WebService.BlogService._staticInstance.get_defaultSucceededCallback(); }
TradersMag.WebService.BlogService.set_defaultFailedCallback = function(value) { 
TradersMag.WebService.BlogService._staticInstance.set_defaultFailedCallback(value); }
TradersMag.WebService.BlogService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return TradersMag.WebService.BlogService._staticInstance.get_defaultFailedCallback(); }
TradersMag.WebService.BlogService.set_path("/WebService/BlogService.asmx");
TradersMag.WebService.BlogService.GetBlogContent= function(page,parameter,onSuccess,onFailed,userContext) {
/// <param name="page" type="Number">System.Int32</param>
/// <param name="parameter" type="Array">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>
TradersMag.WebService.BlogService._staticInstance.GetBlogContent(page,parameter,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.GetBlogArticle= function(blogId,comment,onSuccess,onFailed,userContext) {
/// <param name="blogId" type="Number">System.Int32</param>
/// <param name="comment" type="Boolean">System.Boolean</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>
TradersMag.WebService.BlogService._staticInstance.GetBlogArticle(blogId,comment,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.SaveBlogComment= function(blogId,commentText,onSuccess,onFailed,userContext) {
/// <param name="blogId" type="Number">System.Int32</param>
/// <param name="commentText" 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>
TradersMag.WebService.BlogService._staticInstance.SaveBlogComment(blogId,commentText,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.UpdateBlogComment= function(commentId,comment,onSuccess,onFailed,userContext) {
/// <param name="commentId" type="Number">System.Int32</param>
/// <param name="comment" 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>
TradersMag.WebService.BlogService._staticInstance.UpdateBlogComment(commentId,comment,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.DeleteBlogComment= function(commentId,onSuccess,onFailed,userContext) {
/// <param name="commentId" 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>
TradersMag.WebService.BlogService._staticInstance.DeleteBlogComment(commentId,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.CreateNewArticle= function(categoryId,header,onSuccess,onFailed,userContext) {
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="header" 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>
TradersMag.WebService.BlogService._staticInstance.CreateNewArticle(categoryId,header,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.UpdateBlogArticle= function(blogId,categoryId,title,html,tags,onSuccess,onFailed,userContext) {
/// <param name="blogId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="title" type="String">System.String</param>
/// <param name="html" type="String">System.String</param>
/// <param name="tags" 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>
TradersMag.WebService.BlogService._staticInstance.UpdateBlogArticle(blogId,categoryId,title,html,tags,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.DeleteBlogArticle= function(blogId,onSuccess,onFailed,userContext) {
/// <param name="blogId" 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>
TradersMag.WebService.BlogService._staticInstance.DeleteBlogArticle(blogId,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.GetBlogEditor= function(blogId,onSuccess,onFailed,userContext) {
/// <param name="blogId" 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>
TradersMag.WebService.BlogService._staticInstance.GetBlogEditor(blogId,onSuccess,onFailed,userContext); }
TradersMag.WebService.BlogService.GetAboutBlogger= function(bloggerId,onSuccess,onFailed,userContext) {
/// <param name="bloggerId" type="String">System.Guid</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>
TradersMag.WebService.BlogService._staticInstance.GetAboutBlogger(bloggerId,onSuccess,onFailed,userContext); }
