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

