Type.registerNamespace("MPortal");

MPortal.Article = function(id){this.Id = id;this.Title = null;this.URL = null;this.PublishDate = null;this.__sig = "Id";this.__type = "MPortal.Article";
MPortal.Article.initializeBase(this);}

MPortal.Article.prototype = {SetArticleGrade : function(params,onSuccess, onFailure, args){	 return cfw_get('http://www.poslovni.hr/CorvusClient/MPortal.Article.SetArticleGrade$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
GetLinkedArticlesByPublishDate : function(params,onSuccess, onFailure, args){	 return cfw_get('http://www.poslovni.hr/CorvusClient/MPortal.Article.GetLinkedArticlesByPublishDate$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,

getSig : function() {return MPortal.Article.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure) {	 cfw_get('http://www.poslovni.hr/CorvusClient/MPortal.Article._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', null);}}
MPortal.Article.GetArticles = function(params,onSuccess,onFailure, args){	 return cfw_get('http://www.poslovni.hr/CorvusClient/MPortal.Article.GetArticles$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '',args);}

MPortal.Article.registerClass('MPortal.Article',Corvus.JsBase.Base);

MPortal.User = function(id){this.Avatar = null;this.Id = id;this.DateCreated = null;this.Login = null;this.BlogId = null;this.__sig = "Id";this.__type = "MPortal.User";
MPortal.User.initializeBase(this);}

MPortal.User.prototype = {GetPMs : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.GetPMs$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
CreateFriendRequest : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.CreateFriendRequest$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ApproveFriendRequest : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.ApproveFriendRequest$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
RemoveFriendRequest : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.RemoveFriendRequest$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
GetCart : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.GetCart$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
SendPMWithMesssageValidation : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.SendPMWithMesssageValidation$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,
ToggleForumSubscription : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.ToggleForumSubscription$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,

getSig : function() {return MPortal.User.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure) {	 cfw_get('http://www.poslovni.hr/CorvusClient/MPortal.User._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', null);}}
MPortal.User.TryLogin = function(params,onSuccess,onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.TryLogin$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
MPortal.User.RetrievePasword = function(params,onSuccess,onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.RetrievePasword$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
MPortal.User.RegisterPrivateUser = function(params,onSuccess,onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.RegisterPrivateUser$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
MPortal.User.RegisterLegalUser = function(params,onSuccess,onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.RegisterLegalUser$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}
MPortal.User.RefreshSession = function(params,onSuccess,onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.User.RefreshSession$' + cfw_prepareParameters(params) + '$().ashx', onSuccess, onFailure, '', args);}

MPortal.User.registerClass('MPortal.User',Corvus.JsBase.Base);

MPortal.PM = function(pMID){this.PMID = pMID;this.Title = null;this.Sender = null;this.Message = null;this.DateSent = null;this.__sig = "PMID";this.__type = "MPortal.PM";
MPortal.PM.initializeBase(this);}

MPortal.PM.prototype = {SetViewed : function(params,onSuccess, onFailure, args){	 return cfw_post('http://www.poslovni.hr/CorvusClient/MPortal.PM.SetViewed$' + cfw_prepareParameters(params) + '$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', args);}
,

getSig : function() {return MPortal.PM.callBaseMethod(this, 'getSig');},
_SetData : function(onSuccess, onFailure) {	 cfw_get('http://www.poslovni.hr/CorvusClient/MPortal.PM._SetData$$($' + this.getSig() + '$).ashx', onSuccess, onFailure, '', null);}}

MPortal.PM.registerClass('MPortal.PM',Corvus.JsBase.Base);

if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
