예제 #1
0
 public PassportMediator(
     AppSetting setting,
     SaveService saveService,
     IAudioService audioService,
     UIControlData viewComponent) : base(TypeName, viewComponent)
 {
     this.audioService = audioService;
     this.saveService  = saveService;
     this.setting      = setting;
     this.passportVo   = new PassportVo();
 }
예제 #2
0
        public async void Reg(PassportVo tryReg)
        {
            this.userVo = await this.net.Send <UserVo>(ActionIDDefine.Reg, new Dictionary <string, string> {
                { "Pid", tryReg.username },
                { "Pwd", tryReg.password }
            }, (ErrorInfo e) =>
            {
                App.Facade.SendNotification(NoticeConst.REG_FAILED, e);
            });

            save.Save <string>("pid", tryReg.username);
            Facade.SendNotification(NoticeConst.REG_SUCCESS);
        }