var CommentServices=function() {
CommentServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CommentServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return CommentServices._staticInstance.get_path();},
postComment:function(ArticleID,PodcastID,NewsPeopleID,comment,by,replyID,succeededCallback, failedCallback, userContext) {
/// <param name="ArticleID" type="Number">System.Int64</param>
/// <param name="PodcastID" type="Number">System.Int64</param>
/// <param name="NewsPeopleID" type="Number">System.Int64</param>
/// <param name="comment" type="String">System.String</param>
/// <param name="by" type="Number">System.Int32</param>
/// <param name="replyID" 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(), 'postComment',false,{ArticleID:ArticleID,PodcastID:PodcastID,NewsPeopleID:NewsPeopleID,comment:comment,by:by,replyID:replyID},succeededCallback,failedCallback,userContext); },
flaggedaComment:function(commentID,by,succeededCallback, failedCallback, userContext) {
/// <param name="commentID" type="Number">System.Int32</param>
/// <param name="by" 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(), 'flaggedaComment',false,{commentID:commentID,by:by},succeededCallback,failedCallback,userContext); },
getComments:function(ArticleID,PodcastID,NewsPeopleID,strOrder,succeededCallback, failedCallback, userContext) {
/// <param name="ArticleID" type="Number">System.Int64</param>
/// <param name="PodcastID" type="Number">System.Int64</param>
/// <param name="NewsPeopleID" type="Number">System.Int64</param>
/// <param name="strOrder" 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(), 'getComments',false,{ArticleID:ArticleID,PodcastID:PodcastID,NewsPeopleID:NewsPeopleID,strOrder:strOrder},succeededCallback,failedCallback,userContext); }}
CommentServices.registerClass('CommentServices',Sys.Net.WebServiceProxy);
CommentServices._staticInstance = new CommentServices();
CommentServices.set_path = function(value) {
CommentServices._staticInstance.set_path(value); }
CommentServices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return CommentServices._staticInstance.get_path();}
CommentServices.set_timeout = function(value) {
CommentServices._staticInstance.set_timeout(value); }
CommentServices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return CommentServices._staticInstance.get_timeout(); }
CommentServices.set_defaultUserContext = function(value) { 
CommentServices._staticInstance.set_defaultUserContext(value); }
CommentServices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return CommentServices._staticInstance.get_defaultUserContext(); }
CommentServices.set_defaultSucceededCallback = function(value) { 
 CommentServices._staticInstance.set_defaultSucceededCallback(value); }
CommentServices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return CommentServices._staticInstance.get_defaultSucceededCallback(); }
CommentServices.set_defaultFailedCallback = function(value) { 
CommentServices._staticInstance.set_defaultFailedCallback(value); }
CommentServices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return CommentServices._staticInstance.get_defaultFailedCallback(); }
CommentServices.set_path("/CommentServices.asmx");
CommentServices.postComment= function(ArticleID,PodcastID,NewsPeopleID,comment,by,replyID,onSuccess,onFailed,userContext) {
/// <param name="ArticleID" type="Number">System.Int64</param>
/// <param name="PodcastID" type="Number">System.Int64</param>
/// <param name="NewsPeopleID" type="Number">System.Int64</param>
/// <param name="comment" type="String">System.String</param>
/// <param name="by" type="Number">System.Int32</param>
/// <param name="replyID" 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>
CommentServices._staticInstance.postComment(ArticleID,PodcastID,NewsPeopleID,comment,by,replyID,onSuccess,onFailed,userContext); }
CommentServices.flaggedaComment= function(commentID,by,onSuccess,onFailed,userContext) {
/// <param name="commentID" type="Number">System.Int32</param>
/// <param name="by" 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>
CommentServices._staticInstance.flaggedaComment(commentID,by,onSuccess,onFailed,userContext); }
CommentServices.getComments= function(ArticleID,PodcastID,NewsPeopleID,strOrder,onSuccess,onFailed,userContext) {
/// <param name="ArticleID" type="Number">System.Int64</param>
/// <param name="PodcastID" type="Number">System.Int64</param>
/// <param name="NewsPeopleID" type="Number">System.Int64</param>
/// <param name="strOrder" 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>
CommentServices._staticInstance.getComments(ArticleID,PodcastID,NewsPeopleID,strOrder,onSuccess,onFailed,userContext); }
