Package net.solosky.maplefetion.event.notify

Examples of net.solosky.maplefetion.event.notify.ImageVerifyEvent


              this.fetionContext.getFetionUser(), this.fetionContext.getLocaleSetting(), alg, type);
         
          NotifyEventListener listener = this.fetionContext.getNotifyEventListener();
         
          if(listener!=null) {
            listener.fireEvent(new ImageVerifyEvent(ImageVerifyEvent.SSI_VERIFY, verifyImage, text, tips));
          }else {
            throw new IllegalArgumentException("SSI need verify, but found no notifyEventListener" +
                " to handle verify action, please set NotifyEventListener first.");
          }
        } catch (ParseException e) {
View Full Code Here


        InviteReceivedEvent e9 = (InviteReceivedEvent) event;
        this.inviteReceived(e9.getChatDialogProxy());
        break;
       
      case IMAGE_VERIFY:
        ImageVerifyEvent e10 = (ImageVerifyEvent) event;
        this.imageVerify(e10.getVerifyImage(), e10.getVerifyReason(), e10.getVerifyTips(), e10);
        break;
       
      case CHAT_INPUT:
        ChatInputEvent e11 = (ChatInputEvent) event;
        this.chatInput(e11.getChatDialogProxy());
View Full Code Here

            }
     
            //通知设置的通知监听器处理这个验证码事件,如果没有设置监听器,将抛出异常
      NotifyEventListener listener = this.context.getNotifyEventListener();
      if(listener!=null) {
        listener.fireEvent(new ImageVerifyEvent(ImageVerifyEvent.SIPC_VERIFY,
            verifyImage, text, tips, response.getRequest(),
            this.dialog, this.listener));
      }else{
        throw new IllegalArgumentException("action need verify, but found no NotifyEventListener" +
          " to handle verify action, please set NotifyEventListener first.");
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.notify.ImageVerifyEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.