Type.registerNamespace('Hszw.Services.Account');
Hszw.Services.Account.Account=function() {
Hszw.Services.Account.Account.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Hszw.Services.Account.Account.prototype={
CheckUsername:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(Hszw.Services.Account.Account.get_path(), 'CheckUsername',false,{username:username},succeededCallback,failedCallback,userContext); },
SendMsg:function(toUserID,content,succeededCallback, failedCallback, userContext) {
return this._invoke(Hszw.Services.Account.Account.get_path(), 'SendMsg',false,{toUserID:toUserID,content:content},succeededCallback,failedCallback,userContext); },
GetMsg:function(ID,succeededCallback, failedCallback, userContext) {
return this._invoke(Hszw.Services.Account.Account.get_path(), 'GetMsg',false,{ID:ID},succeededCallback,failedCallback,userContext); },
GetFriendList:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Hszw.Services.Account.Account.get_path(), 'GetFriendList',false,{},succeededCallback,failedCallback,userContext); }}
Hszw.Services.Account.Account.registerClass('Hszw.Services.Account.Account',Sys.Net.WebServiceProxy);
Hszw.Services.Account.Account._staticInstance = new Hszw.Services.Account.Account();
Hszw.Services.Account.Account.set_path = function(value) { Hszw.Services.Account.Account._staticInstance._path = value; }
Hszw.Services.Account.Account.get_path = function() { return Hszw.Services.Account.Account._staticInstance._path; }
Hszw.Services.Account.Account.set_timeout = function(value) { Hszw.Services.Account.Account._staticInstance._timeout = value; }
Hszw.Services.Account.Account.get_timeout = function() { return Hszw.Services.Account.Account._staticInstance._timeout; }
Hszw.Services.Account.Account.set_defaultUserContext = function(value) { Hszw.Services.Account.Account._staticInstance._userContext = value; }
Hszw.Services.Account.Account.get_defaultUserContext = function() { return Hszw.Services.Account.Account._staticInstance._userContext; }
Hszw.Services.Account.Account.set_defaultSucceededCallback = function(value) { Hszw.Services.Account.Account._staticInstance._succeeded = value; }
Hszw.Services.Account.Account.get_defaultSucceededCallback = function() { return Hszw.Services.Account.Account._staticInstance._succeeded; }
Hszw.Services.Account.Account.set_defaultFailedCallback = function(value) { Hszw.Services.Account.Account._staticInstance._failed = value; }
Hszw.Services.Account.Account.get_defaultFailedCallback = function() { return Hszw.Services.Account.Account._staticInstance._failed; }
Hszw.Services.Account.Account.set_path("/Services/Account/Account.asmx");
Hszw.Services.Account.Account.CheckUsername= function(username,onSuccess,onFailed,userContext) {Hszw.Services.Account.Account._staticInstance.CheckUsername(username,onSuccess,onFailed,userContext); }
Hszw.Services.Account.Account.SendMsg= function(toUserID,content,onSuccess,onFailed,userContext) {Hszw.Services.Account.Account._staticInstance.SendMsg(toUserID,content,onSuccess,onFailed,userContext); }
Hszw.Services.Account.Account.GetMsg= function(ID,onSuccess,onFailed,userContext) {Hszw.Services.Account.Account._staticInstance.GetMsg(ID,onSuccess,onFailed,userContext); }
Hszw.Services.Account.Account.GetFriendList= function(onSuccess,onFailed,userContext) {Hszw.Services.Account.Account._staticInstance.GetFriendList(onSuccess,onFailed,userContext); }
