Type.registerNamespace('csl.BLL.Newsletters');
csl.BLL.Newsletters.SubscriberService=function() {
csl.BLL.Newsletters.SubscriberService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
csl.BLL.Newsletters.SubscriberService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return csl.BLL.Newsletters.SubscriberService._staticInstance.get_path();},
IsEmailUsed:function(email,succeededCallback, failedCallback, userContext) {
/// <param name="email" 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(), 'IsEmailUsed',false,{email:email},succeededCallback,failedCallback,userContext); },
InsertSubscriber:function(firstName,lastName,email,succeededCallback, failedCallback, userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="lastName" type="String">System.String</param>
/// <param name="email" 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(), 'InsertSubscriber',false,{firstName:firstName,lastName:lastName,email:email},succeededCallback,failedCallback,userContext); },
GetNewsletterStatus:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetNewsletterStatus',false,{},succeededCallback,failedCallback,userContext); }}
csl.BLL.Newsletters.SubscriberService.registerClass('csl.BLL.Newsletters.SubscriberService',Sys.Net.WebServiceProxy);
csl.BLL.Newsletters.SubscriberService._staticInstance = new csl.BLL.Newsletters.SubscriberService();
csl.BLL.Newsletters.SubscriberService.set_path = function(value) {
csl.BLL.Newsletters.SubscriberService._staticInstance.set_path(value); }
csl.BLL.Newsletters.SubscriberService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return csl.BLL.Newsletters.SubscriberService._staticInstance.get_path();}
csl.BLL.Newsletters.SubscriberService.set_timeout = function(value) {
csl.BLL.Newsletters.SubscriberService._staticInstance.set_timeout(value); }
csl.BLL.Newsletters.SubscriberService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return csl.BLL.Newsletters.SubscriberService._staticInstance.get_timeout(); }
csl.BLL.Newsletters.SubscriberService.set_defaultUserContext = function(value) { 
csl.BLL.Newsletters.SubscriberService._staticInstance.set_defaultUserContext(value); }
csl.BLL.Newsletters.SubscriberService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return csl.BLL.Newsletters.SubscriberService._staticInstance.get_defaultUserContext(); }
csl.BLL.Newsletters.SubscriberService.set_defaultSucceededCallback = function(value) { 
 csl.BLL.Newsletters.SubscriberService._staticInstance.set_defaultSucceededCallback(value); }
csl.BLL.Newsletters.SubscriberService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return csl.BLL.Newsletters.SubscriberService._staticInstance.get_defaultSucceededCallback(); }
csl.BLL.Newsletters.SubscriberService.set_defaultFailedCallback = function(value) { 
csl.BLL.Newsletters.SubscriberService._staticInstance.set_defaultFailedCallback(value); }
csl.BLL.Newsletters.SubscriberService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return csl.BLL.Newsletters.SubscriberService._staticInstance.get_defaultFailedCallback(); }
csl.BLL.Newsletters.SubscriberService.set_path("/Newsletter.asmx");
csl.BLL.Newsletters.SubscriberService.IsEmailUsed= function(email,onSuccess,onFailed,userContext) {
/// <param name="email" 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>
csl.BLL.Newsletters.SubscriberService._staticInstance.IsEmailUsed(email,onSuccess,onFailed,userContext); }
csl.BLL.Newsletters.SubscriberService.InsertSubscriber= function(firstName,lastName,email,onSuccess,onFailed,userContext) {
/// <param name="firstName" type="String">System.String</param>
/// <param name="lastName" type="String">System.String</param>
/// <param name="email" 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>
csl.BLL.Newsletters.SubscriberService._staticInstance.InsertSubscriber(firstName,lastName,email,onSuccess,onFailed,userContext); }
csl.BLL.Newsletters.SubscriberService.GetNewsletterStatus= function(onSuccess,onFailed,userContext) {
/// <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>
csl.BLL.Newsletters.SubscriberService._staticInstance.GetNewsletterStatus(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(csl.BLL.Newsletters.NewsletterStatus) === 'undefined') {
csl.BLL.Newsletters.NewsletterStatus=gtc("csl.BLL.Newsletters.NewsletterStatus");
csl.BLL.Newsletters.NewsletterStatus.registerClass('csl.BLL.Newsletters.NewsletterStatus');
}

