Type.registerNamespace('Reportmail8.WebServices');
Reportmail8.WebServices.ContentRules=function() {
Reportmail8.WebServices.ContentRules.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Reportmail8.WebServices.ContentRules.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Reportmail8.WebServices.ContentRules._staticInstance.get_path();},
GetContactGroups:function(MailshotID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContactGroups',false,{MailshotID:MailshotID},succeededCallback,failedCallback,userContext); },
GetContactGroupOptions:function(AllListIDs,GroupCount,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetContactGroupOptions',false,{AllListIDs:AllListIDs,GroupCount:GroupCount},succeededCallback,failedCallback,userContext); },
GetCodeBlocks:function(CompanyID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCodeBlocks',false,{CompanyID:CompanyID},succeededCallback,failedCallback,userContext); },
GetCodeBlockContent:function(CodeBlockID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCodeBlockContent',false,{CodeBlockID:CodeBlockID},succeededCallback,failedCallback,userContext); },
SaveContentRule:function(OptionsChecked,ContentRuleID,ContentRule,CodeBlock,PossibleOptionIDs,Code,PlainTextCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveContentRule',false,{OptionsChecked:OptionsChecked,ContentRuleID:ContentRuleID,ContentRule:ContentRule,CodeBlock:CodeBlock,PossibleOptionIDs:PossibleOptionIDs,Code:Code,PlainTextCode:PlainTextCode},succeededCallback,failedCallback,userContext); }}
Reportmail8.WebServices.ContentRules.registerClass('Reportmail8.WebServices.ContentRules',Sys.Net.WebServiceProxy);
Reportmail8.WebServices.ContentRules._staticInstance = new Reportmail8.WebServices.ContentRules();
Reportmail8.WebServices.ContentRules.set_path = function(value) { Reportmail8.WebServices.ContentRules._staticInstance.set_path(value); }
Reportmail8.WebServices.ContentRules.get_path = function() { return Reportmail8.WebServices.ContentRules._staticInstance.get_path(); }
Reportmail8.WebServices.ContentRules.set_timeout = function(value) { Reportmail8.WebServices.ContentRules._staticInstance.set_timeout(value); }
Reportmail8.WebServices.ContentRules.get_timeout = function() { return Reportmail8.WebServices.ContentRules._staticInstance.get_timeout(); }
Reportmail8.WebServices.ContentRules.set_defaultUserContext = function(value) { Reportmail8.WebServices.ContentRules._staticInstance.set_defaultUserContext(value); }
Reportmail8.WebServices.ContentRules.get_defaultUserContext = function() { return Reportmail8.WebServices.ContentRules._staticInstance.get_defaultUserContext(); }
Reportmail8.WebServices.ContentRules.set_defaultSucceededCallback = function(value) { Reportmail8.WebServices.ContentRules._staticInstance.set_defaultSucceededCallback(value); }
Reportmail8.WebServices.ContentRules.get_defaultSucceededCallback = function() { return Reportmail8.WebServices.ContentRules._staticInstance.get_defaultSucceededCallback(); }
Reportmail8.WebServices.ContentRules.set_defaultFailedCallback = function(value) { Reportmail8.WebServices.ContentRules._staticInstance.set_defaultFailedCallback(value); }
Reportmail8.WebServices.ContentRules.get_defaultFailedCallback = function() { return Reportmail8.WebServices.ContentRules._staticInstance.get_defaultFailedCallback(); }
Reportmail8.WebServices.ContentRules.set_path("/WebServices/ContentRules.asmx");
Reportmail8.WebServices.ContentRules.GetContactGroups= function(MailshotID,onSuccess,onFailed,userContext) {Reportmail8.WebServices.ContentRules._staticInstance.GetContactGroups(MailshotID,onSuccess,onFailed,userContext); }
Reportmail8.WebServices.ContentRules.GetContactGroupOptions= function(AllListIDs,GroupCount,onSuccess,onFailed,userContext) {Reportmail8.WebServices.ContentRules._staticInstance.GetContactGroupOptions(AllListIDs,GroupCount,onSuccess,onFailed,userContext); }
Reportmail8.WebServices.ContentRules.GetCodeBlocks= function(CompanyID,onSuccess,onFailed,userContext) {Reportmail8.WebServices.ContentRules._staticInstance.GetCodeBlocks(CompanyID,onSuccess,onFailed,userContext); }
Reportmail8.WebServices.ContentRules.GetCodeBlockContent= function(CodeBlockID,onSuccess,onFailed,userContext) {Reportmail8.WebServices.ContentRules._staticInstance.GetCodeBlockContent(CodeBlockID,onSuccess,onFailed,userContext); }
Reportmail8.WebServices.ContentRules.SaveContentRule= function(OptionsChecked,ContentRuleID,ContentRule,CodeBlock,PossibleOptionIDs,Code,PlainTextCode,onSuccess,onFailed,userContext) {Reportmail8.WebServices.ContentRules._staticInstance.SaveContentRule(OptionsChecked,ContentRuleID,ContentRule,CodeBlock,PossibleOptionIDs,Code,PlainTextCode,onSuccess,onFailed,userContext); }

