Type.registerNamespace('Pants.Cms');
Pants.Cms.Services=function() {
Pants.Cms.Services.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Pants.Cms.Services.prototype={
AddChannel:function(_channelName,_channelTitle,_channelDesc,_isRSS,_visible,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'AddChannel',false,{_channelName:_channelName,_channelTitle:_channelTitle,_channelDesc:_channelDesc,_isRSS:_isRSS,_visible:_visible},succeededCallback,failedCallback,userContext); },
UpdateChannel:function(_channelId,_channelName,_channelTitle,_channelDesc,_isRSS,_visible,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'UpdateChannel',false,{_channelId:_channelId,_channelName:_channelName,_channelTitle:_channelTitle,_channelDesc:_channelDesc,_isRSS:_isRSS,_visible:_visible},succeededCallback,failedCallback,userContext); },
DelChannel:function(_channelId,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'DelChannel',false,{_channelId:_channelId},succeededCallback,failedCallback,userContext); },
AddPage:function(_channelId,_pageName,_pageTitle,_pageDesc,_pageKeywords,_pageBodyHtml,_visible,_author,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'AddPage',false,{_channelId:_channelId,_pageName:_pageName,_pageTitle:_pageTitle,_pageDesc:_pageDesc,_pageKeywords:_pageKeywords,_pageBodyHtml:_pageBodyHtml,_visible:_visible,_author:_author},succeededCallback,failedCallback,userContext); },
UpdatePage:function(_pageId,_pageName,_pageTitle,_pageDesc,_pageKeywords,_pageBodyHtml,_visible,_author,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'UpdatePage',false,{_pageId:_pageId,_pageName:_pageName,_pageTitle:_pageTitle,_pageDesc:_pageDesc,_pageKeywords:_pageKeywords,_pageBodyHtml:_pageBodyHtml,_visible:_visible,_author:_author},succeededCallback,failedCallback,userContext); },
DelPage:function(_pageId,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'DelPage',false,{_pageId:_pageId},succeededCallback,failedCallback,userContext); },
UpdatePageOrder:function(ID,ChannelID,SortOrder,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'UpdatePageOrder',false,{ID:ID,ChannelID:ChannelID,SortOrder:SortOrder},succeededCallback,failedCallback,userContext); },
UpdateChannelOrder:function(ID,SortOrder,succeededCallback, failedCallback, userContext) {
return this._invoke(Pants.Cms.Services.get_path(), 'UpdateChannelOrder',false,{ID:ID,SortOrder:SortOrder},succeededCallback,failedCallback,userContext); }}
Pants.Cms.Services.registerClass('Pants.Cms.Services',Sys.Net.WebServiceProxy);
Pants.Cms.Services._staticInstance = new Pants.Cms.Services();
Pants.Cms.Services.set_path = function(value) { Pants.Cms.Services._staticInstance._path = value; }
Pants.Cms.Services.get_path = function() { return Pants.Cms.Services._staticInstance._path; }
Pants.Cms.Services.set_timeout = function(value) { Pants.Cms.Services._staticInstance._timeout = value; }
Pants.Cms.Services.get_timeout = function() { return Pants.Cms.Services._staticInstance._timeout; }
Pants.Cms.Services.set_defaultUserContext = function(value) { Pants.Cms.Services._staticInstance._userContext = value; }
Pants.Cms.Services.get_defaultUserContext = function() { return Pants.Cms.Services._staticInstance._userContext; }
Pants.Cms.Services.set_defaultSucceededCallback = function(value) { Pants.Cms.Services._staticInstance._succeeded = value; }
Pants.Cms.Services.get_defaultSucceededCallback = function() { return Pants.Cms.Services._staticInstance._succeeded; }
Pants.Cms.Services.set_defaultFailedCallback = function(value) { Pants.Cms.Services._staticInstance._failed = value; }
Pants.Cms.Services.get_defaultFailedCallback = function() { return Pants.Cms.Services._staticInstance._failed; }
Pants.Cms.Services.set_path("/pants.cms.services.asmx");
Pants.Cms.Services.AddChannel= function(_channelName,_channelTitle,_channelDesc,_isRSS,_visible,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.AddChannel(_channelName,_channelTitle,_channelDesc,_isRSS,_visible,onSuccess,onFailed,userContext); }
Pants.Cms.Services.UpdateChannel= function(_channelId,_channelName,_channelTitle,_channelDesc,_isRSS,_visible,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.UpdateChannel(_channelId,_channelName,_channelTitle,_channelDesc,_isRSS,_visible,onSuccess,onFailed,userContext); }
Pants.Cms.Services.DelChannel= function(_channelId,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.DelChannel(_channelId,onSuccess,onFailed,userContext); }
Pants.Cms.Services.AddPage= function(_channelId,_pageName,_pageTitle,_pageDesc,_pageKeywords,_pageBodyHtml,_visible,_author,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.AddPage(_channelId,_pageName,_pageTitle,_pageDesc,_pageKeywords,_pageBodyHtml,_visible,_author,onSuccess,onFailed,userContext); }
Pants.Cms.Services.UpdatePage= function(_pageId,_pageName,_pageTitle,_pageDesc,_pageKeywords,_pageBodyHtml,_visible,_author,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.UpdatePage(_pageId,_pageName,_pageTitle,_pageDesc,_pageKeywords,_pageBodyHtml,_visible,_author,onSuccess,onFailed,userContext); }
Pants.Cms.Services.DelPage= function(_pageId,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.DelPage(_pageId,onSuccess,onFailed,userContext); }
Pants.Cms.Services.UpdatePageOrder= function(ID,ChannelID,SortOrder,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.UpdatePageOrder(ID,ChannelID,SortOrder,onSuccess,onFailed,userContext); }
Pants.Cms.Services.UpdateChannelOrder= function(ID,SortOrder,onSuccess,onFailed,userContext) {Pants.Cms.Services._staticInstance.UpdateChannelOrder(ID,SortOrder,onSuccess,onFailed,userContext); }
