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); },
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.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;
Type.registerNamespace('VideoShow.Model');
if (typeof(VideoShow.Model.Comment) === 'undefined') {
VideoShow.Model.Comment=gtc("VideoShow.Model.Comment");
VideoShow.Model.Comment.registerClass('VideoShow.Model.Comment');
}
