var UserVideosService=function() {
UserVideosService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
UserVideosService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return UserVideosService._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); },
GetUserVideos:function(userName,videoTypeCode,pageNumber,videoGridSize,orderBy,familyFilterOn,videoDisplayMode,succeededCallback, failedCallback, userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="videoTypeCode" type="String">System.String</param>
/// <param name="pageNumber" type="Number">System.Int32</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(), 'GetUserVideos',false,{userName:userName,videoTypeCode:videoTypeCode,pageNumber:pageNumber,videoGridSize:videoGridSize,orderBy:orderBy,familyFilterOn:familyFilterOn,videoDisplayMode:videoDisplayMode},succeededCallback,failedCallback,userContext); }}
UserVideosService.registerClass('UserVideosService',Sys.Net.WebServiceProxy);
UserVideosService._staticInstance = new UserVideosService();
UserVideosService.set_path = function(value) {
UserVideosService._staticInstance.set_path(value); }
UserVideosService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return UserVideosService._staticInstance.get_path();}
UserVideosService.set_timeout = function(value) {
UserVideosService._staticInstance.set_timeout(value); }
UserVideosService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return UserVideosService._staticInstance.get_timeout(); }
UserVideosService.set_defaultUserContext = function(value) { 
UserVideosService._staticInstance.set_defaultUserContext(value); }
UserVideosService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return UserVideosService._staticInstance.get_defaultUserContext(); }
UserVideosService.set_defaultSucceededCallback = function(value) { 
 UserVideosService._staticInstance.set_defaultSucceededCallback(value); }
UserVideosService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return UserVideosService._staticInstance.get_defaultSucceededCallback(); }
UserVideosService.set_defaultFailedCallback = function(value) { 
UserVideosService._staticInstance.set_defaultFailedCallback(value); }
UserVideosService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return UserVideosService._staticInstance.get_defaultFailedCallback(); }
UserVideosService.set_path("/WebServices/UserVideosService.asmx");
UserVideosService.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>
UserVideosService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
UserVideosService.GetUserVideos= function(userName,videoTypeCode,pageNumber,videoGridSize,orderBy,familyFilterOn,videoDisplayMode,onSuccess,onFailed,userContext) {
/// <param name="userName" type="String">System.String</param>
/// <param name="videoTypeCode" type="String">System.String</param>
/// <param name="pageNumber" type="Number">System.Int32</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>
UserVideosService._staticInstance.GetUserVideos(userName,videoTypeCode,pageNumber,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);
}

