Type.registerNamespace('VideoShow');
VideoShow.VideoWebservice=function() {
VideoShow.VideoWebservice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
VideoShow.VideoWebservice.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return VideoShow.VideoWebservice._staticInstance.get_path();},
Search:function(startRowIndex,maximumRows,succeededCallback, failedCallback, userContext) {
/// <param name="startRowIndex" type="Number">System.Int32</param>
/// <param name="maximumRows" type="Number">System.Int32</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(), 'Search',false,{startRowIndex:startRowIndex,maximumRows:maximumRows},succeededCallback,failedCallback,userContext); },
SearchCount: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(), 'SearchCount',false,{},succeededCallback,failedCallback,userContext); },
GetVideos:function(pageSize,pageNumber,sortType,succeededCallback, failedCallback, userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</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(), 'GetVideos',false,{pageSize:pageSize,pageNumber:pageNumber,sortType:sortType},succeededCallback,failedCallback,userContext); },
GetVideosByTag:function(pageSize,pageNumber,sortType,tag,succeededCallback, failedCallback, userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="tag" type="String">System.String</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(), 'GetVideosByTag',false,{pageSize:pageSize,pageNumber:pageNumber,sortType:sortType,tag:tag},succeededCallback,failedCallback,userContext); },
GetVideosByOwner:function(pageSize,pageNumber,sortType,memberId,succeededCallback, failedCallback, userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="memberId" type="String">System.String</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(), 'GetVideosByOwner',false,{pageSize:pageSize,pageNumber:pageNumber,sortType:sortType,memberId:memberId},succeededCallback,failedCallback,userContext); },
GetVideosByRecentViews:function(pageSize,pageNumber,sortType,memberId,succeededCallback, failedCallback, userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="memberId" type="String">System.String</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(), 'GetVideosByRecentViews',false,{pageSize:pageSize,pageNumber:pageNumber,sortType:sortType,memberId:memberId},succeededCallback,failedCallback,userContext); },
GetVideosByFavorite:function(pageSize,pageNumber,sortType,memberId,succeededCallback, failedCallback, userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="memberId" type="String">System.String</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(), 'GetVideosByFavorite',false,{pageSize:pageSize,pageNumber:pageNumber,sortType:sortType,memberId:memberId},succeededCallback,failedCallback,userContext); },
GetVideoDetails:function(videoId,succeededCallback, failedCallback, userContext) {
/// <param name="videoId" type="Number">System.Int32</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(), 'GetVideoDetails',false,{videoId:videoId},succeededCallback,failedCallback,userContext); },
GetVideoStatistics:function(userId,succeededCallback, failedCallback, userContext) {
/// <param name="userId" type="String">System.String</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(), 'GetVideoStatistics',false,{userId:userId},succeededCallback,failedCallback,userContext); }}
VideoShow.VideoWebservice.registerClass('VideoShow.VideoWebservice',Sys.Net.WebServiceProxy);
VideoShow.VideoWebservice._staticInstance = new VideoShow.VideoWebservice();
VideoShow.VideoWebservice.set_path = function(value) {
VideoShow.VideoWebservice._staticInstance.set_path(value); }
VideoShow.VideoWebservice.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return VideoShow.VideoWebservice._staticInstance.get_path();}
VideoShow.VideoWebservice.set_timeout = function(value) {
VideoShow.VideoWebservice._staticInstance.set_timeout(value); }
VideoShow.VideoWebservice.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return VideoShow.VideoWebservice._staticInstance.get_timeout(); }
VideoShow.VideoWebservice.set_defaultUserContext = function(value) { 
VideoShow.VideoWebservice._staticInstance.set_defaultUserContext(value); }
VideoShow.VideoWebservice.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return VideoShow.VideoWebservice._staticInstance.get_defaultUserContext(); }
VideoShow.VideoWebservice.set_defaultSucceededCallback = function(value) { 
 VideoShow.VideoWebservice._staticInstance.set_defaultSucceededCallback(value); }
VideoShow.VideoWebservice.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return VideoShow.VideoWebservice._staticInstance.get_defaultSucceededCallback(); }
VideoShow.VideoWebservice.set_defaultFailedCallback = function(value) { 
VideoShow.VideoWebservice._staticInstance.set_defaultFailedCallback(value); }
VideoShow.VideoWebservice.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return VideoShow.VideoWebservice._staticInstance.get_defaultFailedCallback(); }
VideoShow.VideoWebservice.set_path("/Webservices/VideoWebservice.asmx");
VideoShow.VideoWebservice.Search= function(startRowIndex,maximumRows,onSuccess,onFailed,userContext) {
/// <param name="startRowIndex" type="Number">System.Int32</param>
/// <param name="maximumRows" type="Number">System.Int32</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>
VideoShow.VideoWebservice._staticInstance.Search(startRowIndex,maximumRows,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.SearchCount= 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>
VideoShow.VideoWebservice._staticInstance.SearchCount(onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideos= function(pageSize,pageNumber,sortType,onSuccess,onFailed,userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</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>
VideoShow.VideoWebservice._staticInstance.GetVideos(pageSize,pageNumber,sortType,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideosByTag= function(pageSize,pageNumber,sortType,tag,onSuccess,onFailed,userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="tag" type="String">System.String</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>
VideoShow.VideoWebservice._staticInstance.GetVideosByTag(pageSize,pageNumber,sortType,tag,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideosByOwner= function(pageSize,pageNumber,sortType,memberId,onSuccess,onFailed,userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="memberId" type="String">System.String</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>
VideoShow.VideoWebservice._staticInstance.GetVideosByOwner(pageSize,pageNumber,sortType,memberId,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideosByRecentViews= function(pageSize,pageNumber,sortType,memberId,onSuccess,onFailed,userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="memberId" type="String">System.String</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>
VideoShow.VideoWebservice._staticInstance.GetVideosByRecentViews(pageSize,pageNumber,sortType,memberId,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideosByFavorite= function(pageSize,pageNumber,sortType,memberId,onSuccess,onFailed,userContext) {
/// <param name="pageSize" type="Number">System.Int32</param>
/// <param name="pageNumber" type="Number">System.Int32</param>
/// <param name="sortType" type="String">System.String</param>
/// <param name="memberId" type="String">System.String</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>
VideoShow.VideoWebservice._staticInstance.GetVideosByFavorite(pageSize,pageNumber,sortType,memberId,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideoDetails= function(videoId,onSuccess,onFailed,userContext) {
/// <param name="videoId" type="Number">System.Int32</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>
VideoShow.VideoWebservice._staticInstance.GetVideoDetails(videoId,onSuccess,onFailed,userContext); }
VideoShow.VideoWebservice.GetVideoStatistics= function(userId,onSuccess,onFailed,userContext) {
/// <param name="userId" type="String">System.String</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>
VideoShow.VideoWebservice._staticInstance.GetVideoStatistics(userId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('VideoShow.Model.Videos');
if (typeof(VideoShow.Model.Videos.Video) === 'undefined') {
VideoShow.Model.Videos.Video=gtc("VideoShow.Model.Videos.Video");
VideoShow.Model.Videos.Video.registerClass('VideoShow.Model.Videos.Video');
}
if (typeof(VideoShow.Model.Videos.VideoSearchResult) === 'undefined') {
VideoShow.Model.Videos.VideoSearchResult=gtc("VideoShow.Model.Videos.VideoSearchResult");
VideoShow.Model.Videos.VideoSearchResult.registerClass('VideoShow.Model.Videos.VideoSearchResult');
}
if (typeof(VideoShow.Model.Videos.VideoStatistic) === 'undefined') {
VideoShow.Model.Videos.VideoStatistic=gtc("VideoShow.Model.Videos.VideoStatistic");
VideoShow.Model.Videos.VideoStatistic.registerClass('VideoShow.Model.Videos.VideoStatistic');
}
