Type.registerNamespace('deloosh.Services');
deloosh.Services.IEmailService=function() {
deloosh.Services.IEmailService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
deloosh.Services.IEmailService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return deloosh.Services.IEmailService._staticInstance.get_path();},
EmailPage:function(pageUrl,pageTitle,pageDescription,siteUrl,fromName,fromEmail,toName,toEmail,sendCopy,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EmailPage',false,{pageUrl:pageUrl,pageTitle:pageTitle,pageDescription:pageDescription,siteUrl:siteUrl,fromName:fromName,fromEmail:fromEmail,toName:toName,toEmail:toEmail,sendCopy:sendCopy},succeededCallback,failedCallback,userContext); },
TestService:function(value,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'TestService',false,{value:value},succeededCallback,failedCallback,userContext); }}
deloosh.Services.IEmailService.registerClass('deloosh.Services.IEmailService',Sys.Net.WebServiceProxy);
deloosh.Services.IEmailService._staticInstance = new deloosh.Services.IEmailService();
deloosh.Services.IEmailService.set_path = function(value) { deloosh.Services.IEmailService._staticInstance.set_path(value); }
deloosh.Services.IEmailService.get_path = function() { return deloosh.Services.IEmailService._staticInstance.get_path(); }
deloosh.Services.IEmailService.set_timeout = function(value) { deloosh.Services.IEmailService._staticInstance.set_timeout(value); }
deloosh.Services.IEmailService.get_timeout = function() { return deloosh.Services.IEmailService._staticInstance.get_timeout(); }
deloosh.Services.IEmailService.set_defaultUserContext = function(value) { deloosh.Services.IEmailService._staticInstance.set_defaultUserContext(value); }
deloosh.Services.IEmailService.get_defaultUserContext = function() { return deloosh.Services.IEmailService._staticInstance.get_defaultUserContext(); }
deloosh.Services.IEmailService.set_defaultSucceededCallback = function(value) { deloosh.Services.IEmailService._staticInstance.set_defaultSucceededCallback(value); }
deloosh.Services.IEmailService.get_defaultSucceededCallback = function() { return deloosh.Services.IEmailService._staticInstance.get_defaultSucceededCallback(); }
deloosh.Services.IEmailService.set_defaultFailedCallback = function(value) { deloosh.Services.IEmailService._staticInstance.set_defaultFailedCallback(value); }
deloosh.Services.IEmailService.get_defaultFailedCallback = function() { return deloosh.Services.IEmailService._staticInstance.get_defaultFailedCallback(); }
deloosh.Services.IEmailService.set_enableJsonp = function(value) { deloosh.Services.IEmailService._staticInstance.set_enableJsonp(value); }
deloosh.Services.IEmailService.get_enableJsonp = function() { return deloosh.Services.IEmailService._staticInstance.get_enableJsonp(); }
deloosh.Services.IEmailService.set_jsonpCallbackParameter = function(value) { deloosh.Services.IEmailService._staticInstance.set_jsonpCallbackParameter(value); }
deloosh.Services.IEmailService.get_jsonpCallbackParameter = function() { return deloosh.Services.IEmailService._staticInstance.get_jsonpCallbackParameter(); }
deloosh.Services.IEmailService.set_path("http://www.deloosh.com.au/Services/EmailService.svc");
deloosh.Services.IEmailService.EmailPage= function(pageUrl,pageTitle,pageDescription,siteUrl,fromName,fromEmail,toName,toEmail,sendCopy,onSuccess,onFailed,userContext) {deloosh.Services.IEmailService._staticInstance.EmailPage(pageUrl,pageTitle,pageDescription,siteUrl,fromName,fromEmail,toName,toEmail,sendCopy,onSuccess,onFailed,userContext); }
deloosh.Services.IEmailService.TestService= function(value,onSuccess,onFailed,userContext) {deloosh.Services.IEmailService._staticInstance.TestService(value,onSuccess,onFailed,userContext); }

