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

