Type.registerNamespace('CHI.SiteCore');
CHI.SiteCore.NewsroomService=function() {
CHI.SiteCore.NewsroomService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CHI.SiteCore.NewsroomService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CHI.SiteCore.NewsroomService._staticInstance.get_path();},
GetNewsletters:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNewsletters',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); },
GetNews:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNews',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); },
GetStoryIdeas:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetStoryIdeas',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); },
GetPressReleases:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPressReleases',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); },
GetPublications:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPublications',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); },
GetGraphics:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGraphics',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); },
GetNewsArchive:function(dbName,sortBy,pageNum,perPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNewsArchive',false,{dbName:dbName,sortBy:sortBy,pageNum:pageNum,perPage:perPage},succeededCallback,failedCallback,userContext); }}
CHI.SiteCore.NewsroomService.registerClass('CHI.SiteCore.NewsroomService',Sys.Net.WebServiceProxy);
CHI.SiteCore.NewsroomService._staticInstance = new CHI.SiteCore.NewsroomService();
CHI.SiteCore.NewsroomService.set_path = function(value) { CHI.SiteCore.NewsroomService._staticInstance.set_path(value); }
CHI.SiteCore.NewsroomService.get_path = function() { return CHI.SiteCore.NewsroomService._staticInstance.get_path(); }
CHI.SiteCore.NewsroomService.set_timeout = function(value) { CHI.SiteCore.NewsroomService._staticInstance.set_timeout(value); }
CHI.SiteCore.NewsroomService.get_timeout = function() { return CHI.SiteCore.NewsroomService._staticInstance.get_timeout(); }
CHI.SiteCore.NewsroomService.set_defaultUserContext = function(value) { CHI.SiteCore.NewsroomService._staticInstance.set_defaultUserContext(value); }
CHI.SiteCore.NewsroomService.get_defaultUserContext = function() { return CHI.SiteCore.NewsroomService._staticInstance.get_defaultUserContext(); }
CHI.SiteCore.NewsroomService.set_defaultSucceededCallback = function(value) { CHI.SiteCore.NewsroomService._staticInstance.set_defaultSucceededCallback(value); }
CHI.SiteCore.NewsroomService.get_defaultSucceededCallback = function() { return CHI.SiteCore.NewsroomService._staticInstance.get_defaultSucceededCallback(); }
CHI.SiteCore.NewsroomService.set_defaultFailedCallback = function(value) { CHI.SiteCore.NewsroomService._staticInstance.set_defaultFailedCallback(value); }
CHI.SiteCore.NewsroomService.get_defaultFailedCallback = function() { return CHI.SiteCore.NewsroomService._staticInstance.get_defaultFailedCallback(); }
CHI.SiteCore.NewsroomService.set_path("/services/NewsroomService.svc");
CHI.SiteCore.NewsroomService.GetNewsletters= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetNewsletters(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
CHI.SiteCore.NewsroomService.GetNews= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetNews(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
CHI.SiteCore.NewsroomService.GetStoryIdeas= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetStoryIdeas(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
CHI.SiteCore.NewsroomService.GetPressReleases= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetPressReleases(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
CHI.SiteCore.NewsroomService.GetPublications= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetPublications(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
CHI.SiteCore.NewsroomService.GetGraphics= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetGraphics(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
CHI.SiteCore.NewsroomService.GetNewsArchive= function(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext) {CHI.SiteCore.NewsroomService._staticInstance.GetNewsArchive(dbName,sortBy,pageNum,perPage,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(CHI.SiteCore.NewsroomData) === 'undefined') {
CHI.SiteCore.NewsroomData=gtc("NewsroomData:http://schemas.datacontract.org/2004/07/CHI.SiteCore");
CHI.SiteCore.NewsroomData.registerClass('CHI.SiteCore.NewsroomData');
}
if (typeof(CHI.SiteCore.NewsroomItem) === 'undefined') {
CHI.SiteCore.NewsroomItem=gtc("NewsroomItem:http://schemas.datacontract.org/2004/07/CHI.SiteCore");
CHI.SiteCore.NewsroomItem.registerClass('CHI.SiteCore.NewsroomItem');
}
