Type.registerNamespace('TVGuide');
TVGuide.CommentReadProxy=function() {
TVGuide.CommentReadProxy.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TVGuide.CommentReadProxy.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return TVGuide.CommentReadProxy._staticInstance.get_path();},
GetAllComments:function(ContentKeyInfo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllComments',false,{ContentKeyInfo:ContentKeyInfo},succeededCallback,failedCallback,userContext); },
GetCommentCount:function(ContentKeyInfo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentCount',false,{ContentKeyInfo:ContentKeyInfo},succeededCallback,failedCallback,userContext); },
GetCommentCountsOfList:function(contentList,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentCountsOfList',false,{contentList:contentList},succeededCallback,failedCallback,userContext); },
GetDisplayCommentCount:function(ContentKeyInfo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDisplayCommentCount',false,{ContentKeyInfo:ContentKeyInfo},succeededCallback,failedCallback,userContext); },
GetMostRecentComment:function(ContentKeyInfo,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetMostRecentComment',false,{ContentKeyInfo:ContentKeyInfo},succeededCallback,failedCallback,userContext); },
GetNumMostRecentComment:function(ContentKeyInfo,NumComments,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNumMostRecentComment',false,{ContentKeyInfo:ContentKeyInfo,NumComments:NumComments},succeededCallback,failedCallback,userContext); },
GetCommentPage:function(ContentKeyInfo,PageSize,PageNumber,sortDirection,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentPage',false,{ContentKeyInfo:ContentKeyInfo,PageSize:PageSize,PageNumber:PageNumber,sortDirection:sortDirection},succeededCallback,failedCallback,userContext); },
GetDisplayCommentCountByUser:function(UserName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDisplayCommentCountByUser',false,{UserName:UserName},succeededCallback,failedCallback,userContext); },
GetCommentPageByUser:function(UserName,PageSize,PageNumber,sortDirection,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCommentPageByUser',false,{UserName:UserName,PageSize:PageSize,PageNumber:PageNumber,sortDirection:sortDirection},succeededCallback,failedCallback,userContext); }}
TVGuide.CommentReadProxy.registerClass('TVGuide.CommentReadProxy',Sys.Net.WebServiceProxy);
TVGuide.CommentReadProxy._staticInstance = new TVGuide.CommentReadProxy();
TVGuide.CommentReadProxy.set_path = function(value) { TVGuide.CommentReadProxy._staticInstance.set_path(value); }
TVGuide.CommentReadProxy.get_path = function() { return TVGuide.CommentReadProxy._staticInstance.get_path(); }
TVGuide.CommentReadProxy.set_timeout = function(value) { TVGuide.CommentReadProxy._staticInstance.set_timeout(value); }
TVGuide.CommentReadProxy.get_timeout = function() { return TVGuide.CommentReadProxy._staticInstance.get_timeout(); }
TVGuide.CommentReadProxy.set_defaultUserContext = function(value) { TVGuide.CommentReadProxy._staticInstance.set_defaultUserContext(value); }
TVGuide.CommentReadProxy.get_defaultUserContext = function() { return TVGuide.CommentReadProxy._staticInstance.get_defaultUserContext(); }
TVGuide.CommentReadProxy.set_defaultSucceededCallback = function(value) { TVGuide.CommentReadProxy._staticInstance.set_defaultSucceededCallback(value); }
TVGuide.CommentReadProxy.get_defaultSucceededCallback = function() { return TVGuide.CommentReadProxy._staticInstance.get_defaultSucceededCallback(); }
TVGuide.CommentReadProxy.set_defaultFailedCallback = function(value) { TVGuide.CommentReadProxy._staticInstance.set_defaultFailedCallback(value); }
TVGuide.CommentReadProxy.get_defaultFailedCallback = function() { return TVGuide.CommentReadProxy._staticInstance.get_defaultFailedCallback(); }
TVGuide.CommentReadProxy.set_path("/Proxies/CommentReadProxy.svc");
TVGuide.CommentReadProxy.GetAllComments= function(ContentKeyInfo,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetAllComments(ContentKeyInfo,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetCommentCount= function(ContentKeyInfo,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetCommentCount(ContentKeyInfo,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetCommentCountsOfList= function(contentList,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetCommentCountsOfList(contentList,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetDisplayCommentCount= function(ContentKeyInfo,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetDisplayCommentCount(ContentKeyInfo,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetMostRecentComment= function(ContentKeyInfo,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetMostRecentComment(ContentKeyInfo,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetNumMostRecentComment= function(ContentKeyInfo,NumComments,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetNumMostRecentComment(ContentKeyInfo,NumComments,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetCommentPage= function(ContentKeyInfo,PageSize,PageNumber,sortDirection,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetCommentPage(ContentKeyInfo,PageSize,PageNumber,sortDirection,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetDisplayCommentCountByUser= function(UserName,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetDisplayCommentCountByUser(UserName,onSuccess,onFailed,userContext); }
TVGuide.CommentReadProxy.GetCommentPageByUser= function(UserName,PageSize,PageNumber,sortDirection,onSuccess,onFailed,userContext) {TVGuide.CommentReadProxy._staticInstance.GetCommentPageByUser(UserName,PageSize,PageNumber,sortDirection,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(ContentComment2) === 'undefined') {
var ContentComment2=gtc("ContentComment2:http://schemas.datacontract.org/2004/07/");
ContentComment2.registerClass('ContentComment2');
}
if (typeof(StatusCount) === 'undefined') {
var StatusCount=gtc("StatusCount:http://schemas.datacontract.org/2004/07/");
StatusCount.registerClass('StatusCount');
}
if (typeof(ContentDataListItem2) === 'undefined') {
var ContentDataListItem2=gtc("ContentDataListItem2:http://schemas.datacontract.org/2004/07/");
ContentDataListItem2.registerClass('ContentDataListItem2');
}
if (typeof(NameValuePair) === 'undefined') {
var NameValuePair=gtc("NameValuePair:http://schemas.datacontract.org/2004/07/");
NameValuePair.registerClass('NameValuePair');
}
if (typeof(UserType) === 'undefined') {
UserType = function() { throw Error.invalidOperation(); }
UserType.prototype = {Guest: 0,Registered: 1,TVGStaff: 2,FaceBook: 4}
UserType.registerEnum('UserType', true);
}
if (typeof(SortDirections) === 'undefined') {
SortDirections = function() { throw Error.invalidOperation(); }
SortDirections.prototype = {CreateTimeAscRN: 1,CreateTimeDescRN: 2,AgreeCountAscRN: 3,AgreeCountDescRN: 4}
SortDirections.registerEnum('SortDirections', true);
}
