var FavoritesVideoService=function() {
FavoritesVideoService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FavoritesVideoService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return FavoritesVideoService._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
GetFavoriteVideos:function(userName,pageNumber,videoTypeCode,videoGridSize,orderBy,familyFilterOn,videoDisplayMode,succeededCallback, failedCallback, userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="videoTypeCode" type="String">System.String</param>
/// <param name="videoGridSize" type="TotalVideos.Global.VideoGridSize">TotalVideos.Global.VideoGridSize</param>
/// <param name="orderBy" type="TotalVideos.Global.OrderBy">TotalVideos.Global.OrderBy</param>
/// <param name="familyFilterOn" type="Boolean">System.Boolean</param>
/// <param name="videoDisplayMode" type="TotalVideos.Global.VideoDisplayMode">TotalVideos.Global.VideoDisplayMode</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetFavoriteVideos',false,{userName:userName,pageNumber:pageNumber,videoTypeCode:videoTypeCode,videoGridSize:videoGridSize,orderBy:orderBy,familyFilterOn:familyFilterOn,videoDisplayMode:videoDisplayMode},succeededCallback,failedCallback,userContext); }}
FavoritesVideoService.registerClass('FavoritesVideoService',Sys.Net.WebServiceProxy);
FavoritesVideoService._staticInstance = new FavoritesVideoService();
FavoritesVideoService.set_path = function(value) {
FavoritesVideoService._staticInstance.set_path(value); }
FavoritesVideoService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return FavoritesVideoService._staticInstance.get_path();}
FavoritesVideoService.set_timeout = function(value) {
FavoritesVideoService._staticInstance.set_timeout(value); }
FavoritesVideoService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return FavoritesVideoService._staticInstance.get_timeout(); }
FavoritesVideoService.set_defaultUserContext = function(value) { 
FavoritesVideoService._staticInstance.set_defaultUserContext(value); }
FavoritesVideoService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return FavoritesVideoService._staticInstance.get_defaultUserContext(); }
FavoritesVideoService.set_defaultSucceededCallback = function(value) { 
 FavoritesVideoService._staticInstance.set_defaultSucceededCallback(value); }
FavoritesVideoService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return FavoritesVideoService._staticInstance.get_defaultSucceededCallback(); }
FavoritesVideoService.set_defaultFailedCallback = function(value) { 
FavoritesVideoService._staticInstance.set_defaultFailedCallback(value); }
FavoritesVideoService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return FavoritesVideoService._staticInstance.get_defaultFailedCallback(); }
FavoritesVideoService.set_path("/WebServices/FavoritesVideoService.asmx");
FavoritesVideoService.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
FavoritesVideoService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
FavoritesVideoService.GetFavoriteVideos= function(userName,pageNumber,videoTypeCode,videoGridSize,orderBy,familyFilterOn,videoDisplayMode,onSuccess,onFailed,userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="videoTypeCode" type="String">System.String</param>
/// <param name="videoGridSize" type="TotalVideos.Global.VideoGridSize">TotalVideos.Global.VideoGridSize</param>
/// <param name="orderBy" type="TotalVideos.Global.OrderBy">TotalVideos.Global.OrderBy</param>
/// <param name="familyFilterOn" type="Boolean">System.Boolean</param>
/// <param name="videoDisplayMode" type="TotalVideos.Global.VideoDisplayMode">TotalVideos.Global.VideoDisplayMode</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
FavoritesVideoService._staticInstance.GetFavoriteVideos(userName,pageNumber,videoTypeCode,videoGridSize,orderBy,familyFilterOn,videoDisplayMode,onSuccess,onFailed,userContext); }
Type.registerNamespace('TotalVideos.Global');
if (typeof(TotalVideos.Global.VideoGridSize) === 'undefined') {
TotalVideos.Global.VideoGridSize = function() { throw Error.invalidOperation(); }
TotalVideos.Global.VideoGridSize.prototype = {Grid_3x4: 12,Grid_5x3: 15,Grid_4x4: 16}
TotalVideos.Global.VideoGridSize.registerEnum('TotalVideos.Global.VideoGridSize', true);
}
if (typeof(TotalVideos.Global.OrderBy) === 'undefined') {
TotalVideos.Global.OrderBy = function() { throw Error.invalidOperation(); }
TotalVideos.Global.OrderBy.prototype = {relevance: 0,published: 1,viewCount: 2,rating: 3}
TotalVideos.Global.OrderBy.registerEnum('TotalVideos.Global.OrderBy', true);
}
if (typeof(TotalVideos.Global.VideoDisplayMode) === 'undefined') {
TotalVideos.Global.VideoDisplayMode = function() { throw Error.invalidOperation(); }
TotalVideos.Global.VideoDisplayMode.prototype = {GridView: 0,ListView: 1}
TotalVideos.Global.VideoDisplayMode.registerEnum('TotalVideos.Global.VideoDisplayMode', true);
}

