Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
1 parent 1aa738d692
commit 1b1df1ae48
7925 files changed
+2617237 -20

No files matched your search

@@ -0,0 +1,65 @@
package verification
{
import com.sbi.client.SFEvent;
import com.sbi.debug.DebugUtility;
import gui.GuiManager;
public class VerificationXtCommManager
{
private static var _activationCallback:Function;
public function VerificationXtCommManager()
{
super();
}
public static function destroy() : void
{
XtReplyDemuxer.removeModule(handleXtReply);
}
public static function requestSendEmailActivation(param1:String, param2:Function) : void
{
_activationCallback = param2;
gMainFrame.server.setXtObject_Str("ves",[param1],gMainFrame.server.isWorldZone);
}
public static function handleXtReply(param1:SFEvent) : void
{
if(!param1.status)
{
DebugUtility.debugTrace("ERROR: VerificationXtCommManager handleXtReply was called with bad evt.status:" + param1.status);
return;
}
var _loc2_:Array = param1.obj;
switch(_loc2_[0])
{
case "ves":
handleSendEmailActivation(_loc2_);
break;
case "vea":
handleEmailValidated();
break;
default:
throw new Error("VerificationXtCommManager illegal data:" + _loc2_[0]);
}
}
private static function handleSendEmailActivation(param1:Object) : void
{
if(_activationCallback != null)
{
_activationCallback(param1[2] == "1");
}
}
private static function handleEmailValidated() : void
{
gMainFrame.clientInfo.userEmail = gMainFrame.clientInfo.pendingEmail;
GuiManager.rebuildMainHud();
GuiManager.onMySettingsClose();
}
}
}