Type.registerNamespace('VideoShow');
VideoShow.CommentWebservice=function() {
VideoShow.CommentWebservice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
VideoShow.CommentWebservice.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return VideoShow.CommentWebservice._staticInstance.get_path();},
GetComments: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(), 'GetComments',false,{VideoId:VideoId},succeededCallback,failedCallback,userContext); },
GetCommentsByUser: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(), 'GetCommentsByUser',false,{UserId:UserId},succeededCallback,failedCallback,userContext); },
AddComment:function(UserId,VideoId,CommentText,VideoTimeInSeconds,succeededCallback, failedCallback, userContext) {
/// <param name="UserId" type="String">System.String</param>
/// <param name="VideoId" type="Number">System.Int32</param>
/// <param name="CommentText" type="String">System.String</param>
/// <param name="VideoTimeInSeconds" type="Number">System.Single</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(), 'AddComment',false,{UserId:UserId,VideoId:VideoId,CommentText:CommentText,VideoTimeInSeconds:VideoTimeInSeconds},succeededCallback,failedCallback,userContext); }}
VideoShow.CommentWebservice.registerClass('VideoShow.CommentWebservice',Sys.Net.WebServiceProxy);
VideoShow.CommentWebservice._staticInstance = new VideoShow.CommentWebservice();
VideoShow.CommentWebservice.set_path = function(value) {
VideoShow.CommentWebservice._staticInstance.set_path(value); }
VideoShow.CommentWebservice.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return VideoShow.CommentWebservice._staticInstance.get_path();}
VideoShow.CommentWebservice.set_timeout = function(value) {
VideoShow.CommentWebservice._staticInstance.set_timeout(value); }
VideoShow.CommentWebservice.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return VideoShow.CommentWebservice._staticInstance.get_timeout(); }
VideoShow.CommentWebservice.set_defaultUserContext = function(value) { 
VideoShow.CommentWebservice._staticInstance.set_defaultUserContext(value); }
VideoShow.CommentWebservice.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return VideoShow.CommentWebservice._staticInstance.get_defaultUserContext(); }
VideoShow.CommentWebservice.set_defaultSucceededCallback = function(value) { 
 VideoShow.CommentWebservice._staticInstance.set_defaultSucceededCallback(value); }
VideoShow.CommentWebservice.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return VideoShow.CommentWebservice._staticInstance.get_defaultSucceededCallback(); }
VideoShow.CommentWebservice.set_defaultFailedCallback = function(value) { 
VideoShow.CommentWebservice._staticInstance.set_defaultFailedCallback(value); }
VideoShow.CommentWebservice.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return VideoShow.CommentWebservice._staticInstance.get_defaultFailedCallback(); }
VideoShow.CommentWebservice.set_path("/Webservices/CommentWebservice.asmx");
VideoShow.CommentWebservice.GetComments= 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.CommentWebservice._staticInstance.GetComments(VideoId,onSuccess,onFailed,userContext); }
VideoShow.CommentWebservice.GetCommentsByUser= 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.CommentWebservice._staticInstance.GetCommentsByUser(UserId,onSuccess,onFailed,userContext); }
VideoShow.CommentWebservice.AddComment= function(UserId,VideoId,CommentText,VideoTimeInSeconds,onSuccess,onFailed,userContext) {
/// <param name="UserId" type="String">System.String</param>
/// <param name="VideoId" type="Number">System.Int32</param>
/// <param name="CommentText" type="String">System.String</param>
/// <param name="VideoTimeInSeconds" type="Number">System.Single</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.CommentWebservice._staticInstance.AddComment(UserId,VideoId,CommentText,VideoTimeInSeconds,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(VideoShow.CommentList) === 'undefined') {
VideoShow.CommentList=gtc("VideoShow.CommentList");
VideoShow.CommentList.registerClass('VideoShow.CommentList');
}
