Type.registerNamespace('GoalTenderWeb.Services');
GoalTenderWeb.Services.Authentication=function() {
GoalTenderWeb.Services.Authentication.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GoalTenderWeb.Services.Authentication.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GoalTenderWeb.Services.Authentication._staticInstance.get_path();},
Login:function(sUserName,sPassword,succeededCallback, failedCallback, userContext) {
/// <param name="sUserName" type="String">System.String</param>
/// <param name="sPassword" 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(), 'Login',false,{sUserName:sUserName,sPassword:sPassword},succeededCallback,failedCallback,userContext); },
Logout: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(), 'Logout',false,{},succeededCallback,failedCallback,userContext); },
RegisterNewUser:function(sUserName,sPassword,sEmail,succeededCallback, failedCallback, userContext) {
/// <param name="sUserName" type="String">System.String</param>
/// <param name="sPassword" type="String">System.String</param>
/// <param name="sEmail" 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(), 'RegisterNewUser',false,{sUserName:sUserName,sPassword:sPassword,sEmail:sEmail},succeededCallback,failedCallback,userContext); },
SendLogin:function(sEmail,succeededCallback, failedCallback, userContext) {
/// <param name="sEmail" 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(), 'SendLogin',false,{sEmail:sEmail},succeededCallback,failedCallback,userContext); }}
GoalTenderWeb.Services.Authentication.registerClass('GoalTenderWeb.Services.Authentication',Sys.Net.WebServiceProxy);
GoalTenderWeb.Services.Authentication._staticInstance = new GoalTenderWeb.Services.Authentication();
GoalTenderWeb.Services.Authentication.set_path = function(value) {
GoalTenderWeb.Services.Authentication._staticInstance.set_path(value); }
GoalTenderWeb.Services.Authentication.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return GoalTenderWeb.Services.Authentication._staticInstance.get_path();}
GoalTenderWeb.Services.Authentication.set_timeout = function(value) {
GoalTenderWeb.Services.Authentication._staticInstance.set_timeout(value); }
GoalTenderWeb.Services.Authentication.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return GoalTenderWeb.Services.Authentication._staticInstance.get_timeout(); }
GoalTenderWeb.Services.Authentication.set_defaultUserContext = function(value) { 
GoalTenderWeb.Services.Authentication._staticInstance.set_defaultUserContext(value); }
GoalTenderWeb.Services.Authentication.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return GoalTenderWeb.Services.Authentication._staticInstance.get_defaultUserContext(); }
GoalTenderWeb.Services.Authentication.set_defaultSucceededCallback = function(value) { 
 GoalTenderWeb.Services.Authentication._staticInstance.set_defaultSucceededCallback(value); }
GoalTenderWeb.Services.Authentication.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return GoalTenderWeb.Services.Authentication._staticInstance.get_defaultSucceededCallback(); }
GoalTenderWeb.Services.Authentication.set_defaultFailedCallback = function(value) { 
GoalTenderWeb.Services.Authentication._staticInstance.set_defaultFailedCallback(value); }
GoalTenderWeb.Services.Authentication.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return GoalTenderWeb.Services.Authentication._staticInstance.get_defaultFailedCallback(); }
GoalTenderWeb.Services.Authentication.set_path("/Services/Authentication.asmx");
GoalTenderWeb.Services.Authentication.Login= function(sUserName,sPassword,onSuccess,onFailed,userContext) {
/// <param name="sUserName" type="String">System.String</param>
/// <param name="sPassword" 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>
GoalTenderWeb.Services.Authentication._staticInstance.Login(sUserName,sPassword,onSuccess,onFailed,userContext); }
GoalTenderWeb.Services.Authentication.Logout= 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>
GoalTenderWeb.Services.Authentication._staticInstance.Logout(onSuccess,onFailed,userContext); }
GoalTenderWeb.Services.Authentication.RegisterNewUser= function(sUserName,sPassword,sEmail,onSuccess,onFailed,userContext) {
/// <param name="sUserName" type="String">System.String</param>
/// <param name="sPassword" type="String">System.String</param>
/// <param name="sEmail" 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>
GoalTenderWeb.Services.Authentication._staticInstance.RegisterNewUser(sUserName,sPassword,sEmail,onSuccess,onFailed,userContext); }
GoalTenderWeb.Services.Authentication.SendLogin= function(sEmail,onSuccess,onFailed,userContext) {
/// <param name="sEmail" 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>
GoalTenderWeb.Services.Authentication._staticInstance.SendLogin(sEmail,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('GoalTenderWeb.Structs');
if (typeof(GoalTenderWeb.Structs.LuluResponse) === 'undefined') {
GoalTenderWeb.Structs.LuluResponse=gtc("GoalTenderWeb.Structs.LuluResponse");
GoalTenderWeb.Structs.LuluResponse.registerClass('GoalTenderWeb.Structs.LuluResponse');
}
