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) {
return this._invoke(this._get_path(), 'GetComments',false,{videoId:videoId},succeededCallback,failedCallback,userContext); },
AddComment:function(userId,videoId,commentText,videoTimeInSeconds,succeededCallback, failedCallback, userContext) {
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() { return VideoShow.CommentWebservice._staticInstance.get_path(); }
VideoShow.CommentWebservice.set_timeout = function(value) { VideoShow.CommentWebservice._staticInstance.set_timeout(value); }
VideoShow.CommentWebservice.get_timeout = function() { return VideoShow.CommentWebservice._staticInstance.get_timeout(); }
VideoShow.CommentWebservice.set_defaultUserContext = function(value) { VideoShow.CommentWebservice._staticInstance.set_defaultUserContext(value); }
VideoShow.CommentWebservice.get_defaultUserContext = function() { return VideoShow.CommentWebservice._staticInstance.get_defaultUserContext(); }
VideoShow.CommentWebservice.set_defaultSucceededCallback = function(value) { VideoShow.CommentWebservice._staticInstance.set_defaultSucceededCallback(value); }
VideoShow.CommentWebservice.get_defaultSucceededCallback = function() { return VideoShow.CommentWebservice._staticInstance.get_defaultSucceededCallback(); }
VideoShow.CommentWebservice.set_defaultFailedCallback = function(value) { VideoShow.CommentWebservice._staticInstance.set_defaultFailedCallback(value); }
VideoShow.CommentWebservice.get_defaultFailedCallback = function() { return VideoShow.CommentWebservice._staticInstance.get_defaultFailedCallback(); }
VideoShow.CommentWebservice.set_path("/Webservices/CommentWebservice.asmx");
VideoShow.CommentWebservice.GetComments= function(videoId,onSuccess,onFailed,userContext) {VideoShow.CommentWebservice._staticInstance.GetComments(videoId,onSuccess,onFailed,userContext); }
VideoShow.CommentWebservice.AddComment= function(userId,videoId,commentText,videoTimeInSeconds,onSuccess,onFailed,userContext) {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');
}
