Type.registerNamespace('BWComments');
BWComments.ICommentService=function() {
BWComments.ICommentService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
BWComments.ICommentService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return BWComments.ICommentService._staticInstance.get_path();},
getComments:function(intForID,strFor,strOrder,succeededCallback, failedCallback, userContext) {
/// <param name="intForID" type="Number">System.Int32</param>
/// <param name="strFor" type="String">System.String</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,{intForID:intForID,strFor:strFor,strOrder:strOrder},succeededCallback,failedCallback,userContext); },
postComment:function(objComment,succeededCallback, failedCallback, userContext) {
/// <param name="objComment" type="Comments">Comments</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,{objComment:objComment},succeededCallback,failedCallback,userContext); },
flaggedaComment:function(objComment,succeededCallback, failedCallback, userContext) {
/// <param name="objComment" type="Comments">Comments</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,{objComment:objComment},succeededCallback,failedCallback,userContext); }}
BWComments.ICommentService.registerClass('BWComments.ICommentService',Sys.Net.WebServiceProxy);
BWComments.ICommentService._staticInstance = new BWComments.ICommentService();
BWComments.ICommentService.set_path = function(value) {
BWComments.ICommentService._staticInstance.set_path(value); }
BWComments.ICommentService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return BWComments.ICommentService._staticInstance.get_path();}
BWComments.ICommentService.set_timeout = function(value) {
BWComments.ICommentService._staticInstance.set_timeout(value); }
BWComments.ICommentService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return BWComments.ICommentService._staticInstance.get_timeout(); }
BWComments.ICommentService.set_defaultUserContext = function(value) { 
BWComments.ICommentService._staticInstance.set_defaultUserContext(value); }
BWComments.ICommentService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return BWComments.ICommentService._staticInstance.get_defaultUserContext(); }
BWComments.ICommentService.set_defaultSucceededCallback = function(value) { 
 BWComments.ICommentService._staticInstance.set_defaultSucceededCallback(value); }
BWComments.ICommentService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return BWComments.ICommentService._staticInstance.get_defaultSucceededCallback(); }
BWComments.ICommentService.set_defaultFailedCallback = function(value) { 
BWComments.ICommentService._staticInstance.set_defaultFailedCallback(value); }
BWComments.ICommentService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return BWComments.ICommentService._staticInstance.get_defaultFailedCallback(); }
BWComments.ICommentService.set_path("/CommentService.svc");
BWComments.ICommentService.getComments= function(intForID,strFor,strOrder,onSuccess,onFailed,userContext) {
/// <param name="intForID" type="Number">System.Int32</param>
/// <param name="strFor" type="String">System.String</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>
BWComments.ICommentService._staticInstance.getComments(intForID,strFor,strOrder,onSuccess,onFailed,userContext); }
BWComments.ICommentService.postComment= function(objComment,onSuccess,onFailed,userContext) {
/// <param name="objComment" type="Comments">Comments</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>
BWComments.ICommentService._staticInstance.postComment(objComment,onSuccess,onFailed,userContext); }
BWComments.ICommentService.flaggedaComment= function(objComment,onSuccess,onFailed,userContext) {
/// <param name="objComment" type="Comments">Comments</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>
BWComments.ICommentService._staticInstance.flaggedaComment(objComment,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Comments) === 'undefined') {
var Comments=gtc("Comments:http://schemas.datacontract.org/2004/07/");
Comments.registerClass('Comments');
}
