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