var FWComments=function() {
FWComments.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FWComments.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return FWComments._staticInstance.get_path();},
AddComment:function(securityKey,relatedID,commentType,commentText,succeededCallback, failedCallback, userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="relatedID" type="String">System.Guid</param>
/// <param name="commentType" type="String">System.String</param>
/// <param name="commentText" 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(), 'AddComment',false,{securityKey:securityKey,relatedID:relatedID,commentType:commentType,commentText:commentText},succeededCallback,failedCallback,userContext); },
UpdateRelatedContent:function(securityKey,commentID,relatedID,commentType,newContent,succeededCallback, failedCallback, userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</param>
/// <param name="relatedID" type="String">System.Guid</param>
/// <param name="commentType" type="String">System.String</param>
/// <param name="newContent" 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(), 'UpdateRelatedContent',false,{securityKey:securityKey,commentID:commentID,relatedID:relatedID,commentType:commentType,newContent:newContent},succeededCallback,failedCallback,userContext); },
UpdateComment:function(securityKey,commentID,commentText,succeededCallback, failedCallback, userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</param>
/// <param name="commentText" 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(), 'UpdateComment',false,{securityKey:securityKey,commentID:commentID,commentText:commentText},succeededCallback,failedCallback,userContext); },
DeleteComment:function(securityKey,commentID,succeededCallback, failedCallback, userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</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(), 'DeleteComment',false,{securityKey:securityKey,commentID:commentID},succeededCallback,failedCallback,userContext); },
GetComment:function(securityKey,commentID,succeededCallback, failedCallback, userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</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(), 'GetComment',false,{securityKey:securityKey,commentID:commentID},succeededCallback,failedCallback,userContext); }}
FWComments.registerClass('FWComments',Sys.Net.WebServiceProxy);
FWComments._staticInstance = new FWComments();
FWComments.set_path = function(value) {
FWComments._staticInstance.set_path(value); }
FWComments.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return FWComments._staticInstance.get_path();}
FWComments.set_timeout = function(value) {
FWComments._staticInstance.set_timeout(value); }
FWComments.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return FWComments._staticInstance.get_timeout(); }
FWComments.set_defaultUserContext = function(value) { 
FWComments._staticInstance.set_defaultUserContext(value); }
FWComments.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return FWComments._staticInstance.get_defaultUserContext(); }
FWComments.set_defaultSucceededCallback = function(value) { 
 FWComments._staticInstance.set_defaultSucceededCallback(value); }
FWComments.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return FWComments._staticInstance.get_defaultSucceededCallback(); }
FWComments.set_defaultFailedCallback = function(value) { 
FWComments._staticInstance.set_defaultFailedCallback(value); }
FWComments.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return FWComments._staticInstance.get_defaultFailedCallback(); }
FWComments.set_path("/fwcms/services/FWComments.svc");
FWComments.AddComment= function(securityKey,relatedID,commentType,commentText,onSuccess,onFailed,userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="relatedID" type="String">System.Guid</param>
/// <param name="commentType" type="String">System.String</param>
/// <param name="commentText" 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>
FWComments._staticInstance.AddComment(securityKey,relatedID,commentType,commentText,onSuccess,onFailed,userContext); }
FWComments.UpdateRelatedContent= function(securityKey,commentID,relatedID,commentType,newContent,onSuccess,onFailed,userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</param>
/// <param name="relatedID" type="String">System.Guid</param>
/// <param name="commentType" type="String">System.String</param>
/// <param name="newContent" 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>
FWComments._staticInstance.UpdateRelatedContent(securityKey,commentID,relatedID,commentType,newContent,onSuccess,onFailed,userContext); }
FWComments.UpdateComment= function(securityKey,commentID,commentText,onSuccess,onFailed,userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</param>
/// <param name="commentText" 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>
FWComments._staticInstance.UpdateComment(securityKey,commentID,commentText,onSuccess,onFailed,userContext); }
FWComments.DeleteComment= function(securityKey,commentID,onSuccess,onFailed,userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</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>
FWComments._staticInstance.DeleteComment(securityKey,commentID,onSuccess,onFailed,userContext); }
FWComments.GetComment= function(securityKey,commentID,onSuccess,onFailed,userContext) {
/// <param name="securityKey" type="String">System.String</param>
/// <param name="commentID" type="String">System.Guid</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>
FWComments._staticInstance.GetComment(securityKey,commentID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('fwcms.kernel.entity');
if (typeof(fwcms.kernel.entity.CmsComment) === 'undefined') {
fwcms.kernel.entity.CmsComment=gtc("CmsComment:http://schemas.datacontract.org/2004/07/fwcms.kernel.entity");
fwcms.kernel.entity.CmsComment.registerClass('fwcms.kernel.entity.CmsComment');
}
