var VideoSearchService=function() {
VideoSearchService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
VideoSearchService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return VideoSearchService._staticInstance.get_path();},
SearchVideos:function(searchQuery,videoType,pageNumber,videoDisplayMode,familyFilterOn,isTagSearch,youTubeSortCategory,veohSortCategory,isInitialRequest,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchVideos',false,{searchQuery:searchQuery,videoType:videoType,pageNumber:pageNumber,videoDisplayMode:videoDisplayMode,familyFilterOn:familyFilterOn,isTagSearch:isTagSearch,youTubeSortCategory:youTubeSortCategory,veohSortCategory:veohSortCategory,isInitialRequest:isInitialRequest},succeededCallback,failedCallback,userContext); },
GetCompletionList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCompletionList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); }}
VideoSearchService.registerClass('VideoSearchService',Sys.Net.WebServiceProxy);
VideoSearchService._staticInstance = new VideoSearchService();
VideoSearchService.set_path = function(value) { VideoSearchService._staticInstance.set_path(value); }
VideoSearchService.get_path = function() { return VideoSearchService._staticInstance.get_path(); }
VideoSearchService.set_timeout = function(value) { VideoSearchService._staticInstance.set_timeout(value); }
VideoSearchService.get_timeout = function() { return VideoSearchService._staticInstance.get_timeout(); }
VideoSearchService.set_defaultUserContext = function(value) { VideoSearchService._staticInstance.set_defaultUserContext(value); }
VideoSearchService.get_defaultUserContext = function() { return VideoSearchService._staticInstance.get_defaultUserContext(); }
VideoSearchService.set_defaultSucceededCallback = function(value) { VideoSearchService._staticInstance.set_defaultSucceededCallback(value); }
VideoSearchService.get_defaultSucceededCallback = function() { return VideoSearchService._staticInstance.get_defaultSucceededCallback(); }
VideoSearchService.set_defaultFailedCallback = function(value) { VideoSearchService._staticInstance.set_defaultFailedCallback(value); }
VideoSearchService.get_defaultFailedCallback = function() { return VideoSearchService._staticInstance.get_defaultFailedCallback(); }
VideoSearchService.set_path("/WebServices/VideoSearchService.asmx");
VideoSearchService.SearchVideos= function(searchQuery,videoType,pageNumber,videoDisplayMode,familyFilterOn,isTagSearch,youTubeSortCategory,veohSortCategory,isInitialRequest,onSuccess,onFailed,userContext) {VideoSearchService._staticInstance.SearchVideos(searchQuery,videoType,pageNumber,videoDisplayMode,familyFilterOn,isTagSearch,youTubeSortCategory,veohSortCategory,isInitialRequest,onSuccess,onFailed,userContext); }
VideoSearchService.GetCompletionList= function(prefixText,count,onSuccess,onFailed,userContext) {VideoSearchService._staticInstance.GetCompletionList(prefixText,count,onSuccess,onFailed,userContext); }
Type.registerNamespace('TotalVideos.Global');
if (typeof(TotalVideos.Global.VideoType) === 'undefined') {
TotalVideos.Global.VideoType = function() { throw Error.invalidOperation(); }
TotalVideos.Global.VideoType.prototype = {YouTube: 0,Google: 1,MetaCafe: 2,Veoh: 3,MySpace: 4,Yahoo: 5,AOL: 6,none: 7}
TotalVideos.Global.VideoType.registerEnum('TotalVideos.Global.VideoType', 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);
}
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.VeohSortCategory) === 'undefined') {
TotalVideos.Global.VeohSortCategory = function() { throw Error.invalidOperation(); }
TotalVideos.Global.VeohSortCategory.prototype = {RecentlyUpdated: 0,MostViewed: 1,CollectionAdded: 2,Title: 3,MostDownloaded: 4,MostPopular: 5,MostSubscribed: 6,MostDiscussed: 7,RunLength: 8,MostRecent: 9,LeastRecent: 10,CollectionOrder: 11,TopRated: 12,Relevance: 13}
TotalVideos.Global.VeohSortCategory.registerEnum('TotalVideos.Global.VeohSortCategory', true);
}

