Package net.solosky.maplefetion.event.action

Examples of net.solosky.maplefetion.event.action.ActionEventListener


       */
      public void localname(String uri, String localName)
      {
        final Buddy buddy = this.client.getFetionStore().getBuddyByUri(uri);
        if(buddy!=null) {
          this.client.setBuddyLocalName(buddy, localName, new ActionEventListener() {
             public void fireEevent(ActionEvent event)
           {
             if(event.getEventType()==ActionEventType.SUCCESS){
               println("更改好友显示姓名成功!");
             }else{
View Full Code Here


            cordList.add(cord);
          }
        }
       
        if(buddy!=null) {
          this.client.setBuddyCord(buddy, cordList,  new ActionEventListener() {
             public void fireEevent(ActionEvent event)
             {
               if(event.getEventType()==ActionEventType.SUCCESS){
                 println("更改好友分组成功!");
               }else{
View Full Code Here

       * 创建新的分组
       * @param title
       */
      public void newcord(String title)
      {
        client.createCord(title, new ActionEventListener() {
        public void fireEevent(ActionEvent event)
         {
           if(event.getEventType()==ActionEventType.SUCCESS){
             println("创建新的分组成功!");
           }else{
View Full Code Here

       */
      public void cordtitle(String cordId, String title)
      {
        Cord cord = this.getCord(cordId);
        if(cord!=null) {
          this.client.setCordTitle(cord, title, new ActionEventListener() {
                    public void fireEevent(ActionEvent event)
             {
               if(event.getEventType()==ActionEventType.SUCCESS){
                 println("设置分组标题成功!");
               }else{
View Full Code Here

          Collection<Buddy> list = this.client.getFetionStore().getBuddyListByCord(cord);
          if(list!=null && list.size()>0) {
            println("分组编号 "+cordId+" 中好友不为空,请移除该组的好友后再尝试删除。");
            return;
          }
          this.client.deleteCord(cord, new ActionEventListener() {
                    public void fireEevent(ActionEvent event)
             {
               if(event.getEventType()==ActionEventType.SUCCESS){
                 println("删除分组成功!");
               }else{
View Full Code Here

       * 添加好友
       * @throws Exception
       */
      public void add(String mobile)
      {
        client.addBuddy(mobile, new ActionEventListener() {
        public void fireEevent(ActionEvent event)
         {
           if(event.getEventType()==ActionEventType.SUCCESS){
             println("发出添加好友请求成功!请耐性地等待用户回复。");
           }else{
View Full Code Here

       */
      public void del(String uri)
      {
        Buddy buddy = this.client.getFetionStore().getBuddyByUri(uri);
        if(buddy!=null) {
          client.deleteBuddy(buddy, new ActionEventListener() {
            public void fireEevent(ActionEvent event)
           {
             if(event.getEventType()==ActionEventType.SUCCESS){
                println("删除好友成功!");
             }else{
View Full Code Here

       */
      public void agree(String uri)
      {
        final Buddy buddy = this.client.getFetionStore().getBuddyByUri(uri);
        if(buddy!=null) {
          this.client.agreedApplication(buddy,  new ActionEventListener() {
            public void fireEevent(ActionEvent event)
           {
             if(event.getEventType()==ActionEventType.SUCCESS){
               println("你已经同意"+buddy.getDisplayName()+"的添加你为好友的请求。");
             }else{
View Full Code Here

       */
      public void decline(String uri)
      {
        final Buddy buddy = this.client.getFetionStore().getBuddyByUri(uri);
        if(buddy!=null) {
          this.client.declinedApplication(buddy,  new ActionEventListener() {
            public void fireEevent(ActionEvent event)
           {
             if(event.getEventType()==ActionEventType.SUCCESS){
               println("你已经拒绝"+buddy.getDisplayName()+"的添加你为好友的请求。");
             }else{
View Full Code Here

              proxy = this.client.getChatDialogProxyFactory().create(buddy);
            } catch (DialogException e) {
            println("建立对话失败!!");
            return;
            }
        proxy.sendChatMessage( Message.wrap(message), new ActionEventListener(){
        public void fireEevent(ActionEvent event)
         {
           if(event.getEventType()==ActionEventType.SUCCESS){
            SendChatMessageSuccessEvent evt = (SendChatMessageSuccessEvent) event;
            if(evt.isSendToMobile()){
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.action.ActionEventListener

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.