Type.registerNamespace('Donbest.Website.WebServices');
Donbest.Website.WebServices.JSEvents=function() {
Donbest.Website.WebServices.JSEvents.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Donbest.Website.WebServices.JSEvents.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Donbest.Website.WebServices.JSEvents._staticInstance.get_path();},
GetSportBooks:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSportBooks',false,{},succeededCallback,failedCallback,userContext); },
GetComments:function(pArticleId,pCommentsToShow,pPage,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetComments',false,{pArticleId:pArticleId,pCommentsToShow:pCommentsToShow,pPage:pPage},succeededCallback,failedCallback,userContext); },
AddComment:function(newComment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddComment',false,{newComment:newComment},succeededCallback,failedCallback,userContext); },
DeleteComment:function(pCommentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteComment',false,{pCommentId:pCommentId},succeededCallback,failedCallback,userContext); },
GetNewsBreakers:function(pLeagueId,pCtlId,pMaxNewsNumber,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNewsBreakers',false,{pLeagueId:pLeagueId,pCtlId:pCtlId,pMaxNewsNumber:pMaxNewsNumber},succeededCallback,failedCallback,userContext); },
GetImageById:function(pImageId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetImageById',false,{pImageId:pImageId},succeededCallback,failedCallback,userContext); },
GeneratePresetImage:function(pCoords,pDimensions,pImagePath,pImageId,pImageType,pMainImgPresetWith,pMainImgPresetHeight,pThumbnailPresetWidth,pThumbnailPresetHeight,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GeneratePresetImage',false,{pCoords:pCoords,pDimensions:pDimensions,pImagePath:pImagePath,pImageId:pImageId,pImageType:pImageType,pMainImgPresetWith:pMainImgPresetWith,pMainImgPresetHeight:pMainImgPresetHeight,pThumbnailPresetWidth:pThumbnailPresetWidth,pThumbnailPresetHeight:pThumbnailPresetHeight},succeededCallback,failedCallback,userContext); },
DeletePresetImage:function(pImageId,pImageName,pImageType,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeletePresetImage',false,{pImageId:pImageId,pImageName:pImageName,pImageType:pImageType},succeededCallback,failedCallback,userContext); },
GetArticlesList:function(pTop,pPage,pLeagueId,pArticlesTypes,pArticleWordsToShow,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetArticlesList',false,{pTop:pTop,pPage:pPage,pLeagueId:pLeagueId,pArticlesTypes:pArticlesTypes,pArticleWordsToShow:pArticleWordsToShow},succeededCallback,failedCallback,userContext); }}
Donbest.Website.WebServices.JSEvents.registerClass('Donbest.Website.WebServices.JSEvents',Sys.Net.WebServiceProxy);
Donbest.Website.WebServices.JSEvents._staticInstance = new Donbest.Website.WebServices.JSEvents();
Donbest.Website.WebServices.JSEvents.set_path = function(value) { Donbest.Website.WebServices.JSEvents._staticInstance.set_path(value); }
Donbest.Website.WebServices.JSEvents.get_path = function() { return Donbest.Website.WebServices.JSEvents._staticInstance.get_path(); }
Donbest.Website.WebServices.JSEvents.set_timeout = function(value) { Donbest.Website.WebServices.JSEvents._staticInstance.set_timeout(value); }
Donbest.Website.WebServices.JSEvents.get_timeout = function() { return Donbest.Website.WebServices.JSEvents._staticInstance.get_timeout(); }
Donbest.Website.WebServices.JSEvents.set_defaultUserContext = function(value) { Donbest.Website.WebServices.JSEvents._staticInstance.set_defaultUserContext(value); }
Donbest.Website.WebServices.JSEvents.get_defaultUserContext = function() { return Donbest.Website.WebServices.JSEvents._staticInstance.get_defaultUserContext(); }
Donbest.Website.WebServices.JSEvents.set_defaultSucceededCallback = function(value) { Donbest.Website.WebServices.JSEvents._staticInstance.set_defaultSucceededCallback(value); }
Donbest.Website.WebServices.JSEvents.get_defaultSucceededCallback = function() { return Donbest.Website.WebServices.JSEvents._staticInstance.get_defaultSucceededCallback(); }
Donbest.Website.WebServices.JSEvents.set_defaultFailedCallback = function(value) { Donbest.Website.WebServices.JSEvents._staticInstance.set_defaultFailedCallback(value); }
Donbest.Website.WebServices.JSEvents.get_defaultFailedCallback = function() { return Donbest.Website.WebServices.JSEvents._staticInstance.get_defaultFailedCallback(); }
Donbest.Website.WebServices.JSEvents.set_path("/asmx/JsEvents.asmx");
Donbest.Website.WebServices.JSEvents.GetSportBooks= function(onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.GetSportBooks(onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.GetComments= function(pArticleId,pCommentsToShow,pPage,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.GetComments(pArticleId,pCommentsToShow,pPage,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.AddComment= function(newComment,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.AddComment(newComment,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.DeleteComment= function(pCommentId,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.DeleteComment(pCommentId,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.GetNewsBreakers= function(pLeagueId,pCtlId,pMaxNewsNumber,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.GetNewsBreakers(pLeagueId,pCtlId,pMaxNewsNumber,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.GetImageById= function(pImageId,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.GetImageById(pImageId,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.GeneratePresetImage= function(pCoords,pDimensions,pImagePath,pImageId,pImageType,pMainImgPresetWith,pMainImgPresetHeight,pThumbnailPresetWidth,pThumbnailPresetHeight,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.GeneratePresetImage(pCoords,pDimensions,pImagePath,pImageId,pImageType,pMainImgPresetWith,pMainImgPresetHeight,pThumbnailPresetWidth,pThumbnailPresetHeight,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.DeletePresetImage= function(pImageId,pImageName,pImageType,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.DeletePresetImage(pImageId,pImageName,pImageType,onSuccess,onFailed,userContext); }
Donbest.Website.WebServices.JSEvents.GetArticlesList= function(pTop,pPage,pLeagueId,pArticlesTypes,pArticleWordsToShow,onSuccess,onFailed,userContext) {Donbest.Website.WebServices.JSEvents._staticInstance.GetArticlesList(pTop,pPage,pLeagueId,pArticlesTypes,pArticleWordsToShow,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DonBest.Common.Objects');
if (typeof(DonBest.Common.Objects.SportBook) === 'undefined') {
DonBest.Common.Objects.SportBook=gtc("DonBest.Common.Objects.SportBook");
DonBest.Common.Objects.SportBook.registerClass('DonBest.Common.Objects.SportBook');
}
Type.registerNamespace('SBR.CORE.Common');
if (typeof(SBR.CORE.Common.CoreComment) === 'undefined') {
SBR.CORE.Common.CoreComment=gtc("SBR.CORE.Common.CoreComment");
SBR.CORE.Common.CoreComment.registerClass('SBR.CORE.Common.CoreComment');
}
if (typeof(SBR.CORE.Common.CoreImage) === 'undefined') {
SBR.CORE.Common.CoreImage=gtc("SBR.CORE.Common.CoreImage");
SBR.CORE.Common.CoreImage.registerClass('SBR.CORE.Common.CoreImage');
}
if (typeof(SBR.CORE.Common.AlertType) === 'undefined') {
SBR.CORE.Common.AlertType = function() { throw Error.invalidOperation(); }
SBR.CORE.Common.AlertType.prototype = {DONE: 0,CONFIRM: 1,DELETE: 2}
SBR.CORE.Common.AlertType.registerEnum('SBR.CORE.Common.AlertType', true);
}
if (typeof(SBR.CORE.Common.TargetType) === 'undefined') {
SBR.CORE.Common.TargetType = function() { throw Error.invalidOperation(); }
SBR.CORE.Common.TargetType.prototype = {_BLANK: 0,_TOP: 1,_PARENT: 2,_SELF: 3}
SBR.CORE.Common.TargetType.registerEnum('SBR.CORE.Common.TargetType', true);
}
