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