Type.registerNamespace('TVGuide');
TVGuide.CommentWriteProxy=function() {
TVGuide.CommentWriteProxy.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TVGuide.CommentWriteProxy.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return TVGuide.CommentWriteProxy._staticInstance.get_path();},
ReportComment:function(contentKeyInfo,commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ReportComment',false,{contentKeyInfo:contentKeyInfo,commentId:commentId},succeededCallback,failedCallback,userContext); },
IncrementAgreeForComment:function(contentKeyInfo,commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IncrementAgreeForComment',false,{contentKeyInfo:contentKeyInfo,commentId:commentId},succeededCallback,failedCallback,userContext); },
IncrementDisagreeForComment:function(contentKeyInfo,commentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IncrementDisagreeForComment',false,{contentKeyInfo:contentKeyInfo,commentId:commentId},succeededCallback,failedCallback,userContext); },
ValidateComment:function(comment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ValidateComment',false,{comment:comment},succeededCallback,failedCallback,userContext); },
SaveComment:function(comment,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveComment',false,{comment:comment},succeededCallback,failedCallback,userContext); }}
TVGuide.CommentWriteProxy.registerClass('TVGuide.CommentWriteProxy',Sys.Net.WebServiceProxy);
TVGuide.CommentWriteProxy._staticInstance = new TVGuide.CommentWriteProxy();
TVGuide.CommentWriteProxy.set_path = function(value) { TVGuide.CommentWriteProxy._staticInstance.set_path(value); }
TVGuide.CommentWriteProxy.get_path = function() { return TVGuide.CommentWriteProxy._staticInstance.get_path(); }
TVGuide.CommentWriteProxy.set_timeout = function(value) { TVGuide.CommentWriteProxy._staticInstance.set_timeout(value); }
TVGuide.CommentWriteProxy.get_timeout = function() { return TVGuide.CommentWriteProxy._staticInstance.get_timeout(); }
TVGuide.CommentWriteProxy.set_defaultUserContext = function(value) { TVGuide.CommentWriteProxy._staticInstance.set_defaultUserContext(value); }
TVGuide.CommentWriteProxy.get_defaultUserContext = function() { return TVGuide.CommentWriteProxy._staticInstance.get_defaultUserContext(); }
TVGuide.CommentWriteProxy.set_defaultSucceededCallback = function(value) { TVGuide.CommentWriteProxy._staticInstance.set_defaultSucceededCallback(value); }
TVGuide.CommentWriteProxy.get_defaultSucceededCallback = function() { return TVGuide.CommentWriteProxy._staticInstance.get_defaultSucceededCallback(); }
TVGuide.CommentWriteProxy.set_defaultFailedCallback = function(value) { TVGuide.CommentWriteProxy._staticInstance.set_defaultFailedCallback(value); }
TVGuide.CommentWriteProxy.get_defaultFailedCallback = function() { return TVGuide.CommentWriteProxy._staticInstance.get_defaultFailedCallback(); }
TVGuide.CommentWriteProxy.set_path("/PROXIES/CommentWriteProxy.svc");
TVGuide.CommentWriteProxy.ReportComment= function(contentKeyInfo,commentId,onSuccess,onFailed,userContext) {TVGuide.CommentWriteProxy._staticInstance.ReportComment(contentKeyInfo,commentId,onSuccess,onFailed,userContext); }
TVGuide.CommentWriteProxy.IncrementAgreeForComment= function(contentKeyInfo,commentId,onSuccess,onFailed,userContext) {TVGuide.CommentWriteProxy._staticInstance.IncrementAgreeForComment(contentKeyInfo,commentId,onSuccess,onFailed,userContext); }
TVGuide.CommentWriteProxy.IncrementDisagreeForComment= function(contentKeyInfo,commentId,onSuccess,onFailed,userContext) {TVGuide.CommentWriteProxy._staticInstance.IncrementDisagreeForComment(contentKeyInfo,commentId,onSuccess,onFailed,userContext); }
TVGuide.CommentWriteProxy.ValidateComment= function(comment,onSuccess,onFailed,userContext) {TVGuide.CommentWriteProxy._staticInstance.ValidateComment(comment,onSuccess,onFailed,userContext); }
TVGuide.CommentWriteProxy.SaveComment= function(comment,onSuccess,onFailed,userContext) {TVGuide.CommentWriteProxy._staticInstance.SaveComment(comment,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(ContentKeyData2) === 'undefined') {
var ContentKeyData2=gtc("ContentKeyData2:http://schemas.datacontract.org/2004/07/");
ContentKeyData2.registerClass('ContentKeyData2');
}
if (typeof(CommentAction) === 'undefined') {
var CommentAction=gtc("CommentAction:http://schemas.datacontract.org/2004/07/");
CommentAction.registerClass('CommentAction');
}
if (typeof(CommentValidation2) === 'undefined') {
var CommentValidation2=gtc("CommentValidation2:http://schemas.datacontract.org/2004/07/");
CommentValidation2.registerClass('CommentValidation2');
}
if (typeof(CommentSaveStatus) === 'undefined') {
var CommentSaveStatus=gtc("CommentSaveStatus:http://schemas.datacontract.org/2004/07/");
CommentSaveStatus.registerClass('CommentSaveStatus');
}
if (typeof(CommentActionType) === 'undefined') {
CommentActionType = function() { throw Error.invalidOperation(); }
CommentActionType.prototype = {Save: 1,Validate: 2}
CommentActionType.registerEnum('CommentActionType', true);
}
if (typeof(UserType) === 'undefined') {
UserType = function() { throw Error.invalidOperation(); }
UserType.prototype = {Guest: 0,Registered: 1,TVGStaff: 2,FaceBook: 4}
UserType.registerEnum('UserType', true);
}
