var WebService=function() {
WebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WebService._staticInstance.get_path();},
GetMenuItemsList:function(level2Id,type,encryptedDateTime,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMenuItemsList',false,{level2Id:level2Id,type:type,encryptedDateTime:encryptedDateTime},succeededCallback,failedCallback,userContext); },
GetVideoItemsList:function(id,type,mode,encryptedDateTime,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVideoItemsList',false,{id:id,type:type,mode:mode,encryptedDateTime:encryptedDateTime},succeededCallback,failedCallback,userContext); },
GetVideoItemsList2:function(id,type,mode,sortExpression,sortDirection,encryptedDateTime,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVideoItemsList2',false,{id:id,type:type,mode:mode,sortExpression:sortExpression,sortDirection:sortDirection,encryptedDateTime:encryptedDateTime},succeededCallback,failedCallback,userContext); },
GetTitleItem:function(id,type,mode,encryptedDateTime,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTitleItem',false,{id:id,type:type,mode:mode,encryptedDateTime:encryptedDateTime},succeededCallback,failedCallback,userContext); },
GetVideoItem:function(idVideo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetVideoItem',false,{idVideo:idVideo},succeededCallback,failedCallback,userContext); },
GetTooltipItem:function(idVideo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTooltipItem',false,{idVideo:idVideo},succeededCallback,failedCallback,userContext); },
AddStatistique:function(idVideo,idSource,idSection,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddStatistique',false,{idVideo:idVideo,idSource:idSource,idSection:idSection},succeededCallback,failedCallback,userContext); },
SetRating:function(idVideo,cote,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetRating',false,{idVideo:idVideo,cote:cote},succeededCallback,failedCallback,userContext); }}
WebService.registerClass('WebService',Sys.Net.WebServiceProxy);
WebService._staticInstance = new WebService();
WebService.set_path = function(value) { WebService._staticInstance.set_path(value); }
WebService.get_path = function() { return WebService._staticInstance.get_path(); }
WebService.set_timeout = function(value) { WebService._staticInstance.set_timeout(value); }
WebService.get_timeout = function() { return WebService._staticInstance.get_timeout(); }
WebService.set_defaultUserContext = function(value) { WebService._staticInstance.set_defaultUserContext(value); }
WebService.get_defaultUserContext = function() { return WebService._staticInstance.get_defaultUserContext(); }
WebService.set_defaultSucceededCallback = function(value) { WebService._staticInstance.set_defaultSucceededCallback(value); }
WebService.get_defaultSucceededCallback = function() { return WebService._staticInstance.get_defaultSucceededCallback(); }
WebService.set_defaultFailedCallback = function(value) { WebService._staticInstance.set_defaultFailedCallback(value); }
WebService.get_defaultFailedCallback = function() { return WebService._staticInstance.get_defaultFailedCallback(); }
WebService.set_path("/WebService.asmx");
WebService.GetMenuItemsList= function(level2Id,type,encryptedDateTime,onSuccess,onFailed,userContext) {WebService._staticInstance.GetMenuItemsList(level2Id,type,encryptedDateTime,onSuccess,onFailed,userContext); }
WebService.GetVideoItemsList= function(id,type,mode,encryptedDateTime,onSuccess,onFailed,userContext) {WebService._staticInstance.GetVideoItemsList(id,type,mode,encryptedDateTime,onSuccess,onFailed,userContext); }
WebService.GetVideoItemsList2= function(id,type,mode,sortExpression,sortDirection,encryptedDateTime,onSuccess,onFailed,userContext) {WebService._staticInstance.GetVideoItemsList2(id,type,mode,sortExpression,sortDirection,encryptedDateTime,onSuccess,onFailed,userContext); }
WebService.GetTitleItem= function(id,type,mode,encryptedDateTime,onSuccess,onFailed,userContext) {WebService._staticInstance.GetTitleItem(id,type,mode,encryptedDateTime,onSuccess,onFailed,userContext); }
WebService.GetVideoItem= function(idVideo,onSuccess,onFailed,userContext) {WebService._staticInstance.GetVideoItem(idVideo,onSuccess,onFailed,userContext); }
WebService.GetTooltipItem= function(idVideo,onSuccess,onFailed,userContext) {WebService._staticInstance.GetTooltipItem(idVideo,onSuccess,onFailed,userContext); }
WebService.AddStatistique= function(idVideo,idSource,idSection,onSuccess,onFailed,userContext) {WebService._staticInstance.AddStatistique(idVideo,idSource,idSection,onSuccess,onFailed,userContext); }
WebService.SetRating= function(idVideo,cote,onSuccess,onFailed,userContext) {WebService._staticInstance.SetRating(idVideo,cote,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('VideoLibrary.Video');
if (typeof(VideoLibrary.Video.MenuItem) === 'undefined') {
VideoLibrary.Video.MenuItem=gtc("VideoLibrary.Video.MenuItem");
VideoLibrary.Video.MenuItem.registerClass('VideoLibrary.Video.MenuItem');
}
if (typeof(VideoLibrary.Video.VideoItemList) === 'undefined') {
VideoLibrary.Video.VideoItemList=gtc("VideoLibrary.Video.VideoItemList");
VideoLibrary.Video.VideoItemList.registerClass('VideoLibrary.Video.VideoItemList');
}
if (typeof(VideoLibrary.Video.TitleItem) === 'undefined') {
VideoLibrary.Video.TitleItem=gtc("VideoLibrary.Video.TitleItem");
VideoLibrary.Video.TitleItem.registerClass('VideoLibrary.Video.TitleItem');
}
if (typeof(VideoLibrary.Video.VideoItem) === 'undefined') {
VideoLibrary.Video.VideoItem=gtc("VideoLibrary.Video.VideoItem");
VideoLibrary.Video.VideoItem.registerClass('VideoLibrary.Video.VideoItem');
}
if (typeof(VideoLibrary.Video.ToolTipItem) === 'undefined') {
VideoLibrary.Video.ToolTipItem=gtc("VideoLibrary.Video.ToolTipItem");
VideoLibrary.Video.ToolTipItem.registerClass('VideoLibrary.Video.ToolTipItem');
}
