Type.registerNamespace('SmartInvest.Web');
SmartInvest.Web.NewsService=function() {
SmartInvest.Web.NewsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SmartInvest.Web.NewsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return SmartInvest.Web.NewsService._staticInstance.get_path();},
GetItems:function(filterString,numberOfItems,skip,orderBy,descending,filterExpressionGuid,ListenedProperties,fullDataBind,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetItems',false,{filterString:filterString,numberOfItems:numberOfItems,skip:skip,orderBy:orderBy,descending:descending,filterExpressionGuid:filterExpressionGuid,ListenedProperties:ListenedProperties,fullDataBind:fullDataBind},succeededCallback,failedCallback,userContext); },
GetCount:function(filterExpressionGuid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCount',false,{filterExpressionGuid:filterExpressionGuid},succeededCallback,failedCallback,userContext); },
GetNews:function(numberofItems,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNews',false,{numberofItems:numberofItems},succeededCallback,failedCallback,userContext); },
GetTickerNews:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTickerNews',false,{},succeededCallback,failedCallback,userContext); },
GetNewsByType:function(type,numberOfItems,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNewsByType',false,{type:type,numberOfItems:numberOfItems},succeededCallback,failedCallback,userContext); }}
SmartInvest.Web.NewsService.registerClass('SmartInvest.Web.NewsService',Sys.Net.WebServiceProxy);
SmartInvest.Web.NewsService._staticInstance = new SmartInvest.Web.NewsService();
SmartInvest.Web.NewsService.set_path = function(value) { SmartInvest.Web.NewsService._staticInstance.set_path(value); }
SmartInvest.Web.NewsService.get_path = function() { return SmartInvest.Web.NewsService._staticInstance.get_path(); }
SmartInvest.Web.NewsService.set_timeout = function(value) { SmartInvest.Web.NewsService._staticInstance.set_timeout(value); }
SmartInvest.Web.NewsService.get_timeout = function() { return SmartInvest.Web.NewsService._staticInstance.get_timeout(); }
SmartInvest.Web.NewsService.set_defaultUserContext = function(value) { SmartInvest.Web.NewsService._staticInstance.set_defaultUserContext(value); }
SmartInvest.Web.NewsService.get_defaultUserContext = function() { return SmartInvest.Web.NewsService._staticInstance.get_defaultUserContext(); }
SmartInvest.Web.NewsService.set_defaultSucceededCallback = function(value) { SmartInvest.Web.NewsService._staticInstance.set_defaultSucceededCallback(value); }
SmartInvest.Web.NewsService.get_defaultSucceededCallback = function() { return SmartInvest.Web.NewsService._staticInstance.get_defaultSucceededCallback(); }
SmartInvest.Web.NewsService.set_defaultFailedCallback = function(value) { SmartInvest.Web.NewsService._staticInstance.set_defaultFailedCallback(value); }
SmartInvest.Web.NewsService.get_defaultFailedCallback = function() { return SmartInvest.Web.NewsService._staticInstance.get_defaultFailedCallback(); }
SmartInvest.Web.NewsService.set_path("/WebServices/NewsService.asmx");
SmartInvest.Web.NewsService.GetItems= function(filterString,numberOfItems,skip,orderBy,descending,filterExpressionGuid,ListenedProperties,fullDataBind,onSuccess,onFailed,userContext) {SmartInvest.Web.NewsService._staticInstance.GetItems(filterString,numberOfItems,skip,orderBy,descending,filterExpressionGuid,ListenedProperties,fullDataBind,onSuccess,onFailed,userContext); }
SmartInvest.Web.NewsService.GetCount= function(filterExpressionGuid,onSuccess,onFailed,userContext) {SmartInvest.Web.NewsService._staticInstance.GetCount(filterExpressionGuid,onSuccess,onFailed,userContext); }
SmartInvest.Web.NewsService.GetNews= function(numberofItems,onSuccess,onFailed,userContext) {SmartInvest.Web.NewsService._staticInstance.GetNews(numberofItems,onSuccess,onFailed,userContext); }
SmartInvest.Web.NewsService.GetTickerNews= function(onSuccess,onFailed,userContext) {SmartInvest.Web.NewsService._staticInstance.GetTickerNews(onSuccess,onFailed,userContext); }
SmartInvest.Web.NewsService.GetNewsByType= function(type,numberOfItems,onSuccess,onFailed,userContext) {SmartInvest.Web.NewsService._staticInstance.GetNewsByType(type,numberOfItems,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(SmartInvest.Web.Result) === 'undefined') {
SmartInvest.Web.Result=gtc("SmartInvest.Web.Result");
SmartInvest.Web.Result.registerClass('SmartInvest.Web.Result');
}
Type.registerNamespace('SmartInvest.Core.Domain');
if (typeof(SmartInvest.Core.Domain.News) === 'undefined') {
SmartInvest.Core.Domain.News=gtc("SmartInvest.Core.Domain.News");
SmartInvest.Core.Domain.News.registerClass('SmartInvest.Core.Domain.News');
}
