Esempio n. 1
0
  private void shareGroup()
  {
    if (!CloudCenter.getInstance().isLogin())
    {
      CloudCenter.OnLoginEventListerner local6 = new CloudCenter.OnLoginEventListerner()
      {
        public void onLoginFailed(int paramAnonymousInt)
        {
        }

        public void onLoginSuccessed(int paramAnonymousInt)
        {
          ImChatMainView.this.actualShareGroup();
        }
      };
      EventDispacthManager.getInstance().dispatchAction("showLogin", local6);
      return;
    }
    actualShareGroup();
  }
Esempio n. 2
0
  private void flowerToUser(final UserInfo paramUserInfo)
  {
    if (!CloudCenter.getInstance().isLogin())
    {
      CloudCenter.OnLoginEventListerner local8 = new CloudCenter.OnLoginEventListerner()
      {
        public void onLoginFailed(int paramAnonymousInt)
        {
        }

        public void onLoginSuccessed(int paramAnonymousInt)
        {
          ImChatMainView.this.actualFlowerToUser(paramUserInfo);
          ImChatMainView.this.mJoinView.setVisibility(8);
        }
      };
      EventDispacthManager.getInstance().dispatchAction("showLogin", local8);
      return;
    }
    actualFlowerToUser(paramUserInfo);
  }
 private void doClickEvent() {
   if ((this.mNode == null) || (this.mSelectedIndex == -1)) return;
   if (this.mSelectedIndex == 2) {
     QTMSGManage.getInstance().sendStatistcsMessage("resumerecent_close");
     EventDispacthManager.getInstance().dispatchAction("closerecentplay", null);
     return;
   }
   Object localObject;
   if (this.mSelectedIndex == 1) {
     localObject = new CustomPopActionParam.Builder();
     ((CustomPopActionParam.Builder) localObject).setTitle(getTitle()).addNode(this.mNode);
     if (this.mDownloadState == 0) ((CustomPopActionParam.Builder) localObject).addButton(1);
     ((CustomPopActionParam.Builder) localObject).addButton(0);
     localObject = ((CustomPopActionParam.Builder) localObject).create();
     EventDispacthManager.getInstance().dispatchAction("showoperatepop", localObject);
     return;
   }
   int i;
   if (this.mNode.nodeName.equalsIgnoreCase("program")) {
     i = ((ProgramNode) this.mNode).getCurrPlayStatus();
     localObject = null;
   }
   while (true) {
     if (i == 2) {
       if (InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.isExisted(this.mNode))
         InfoManager.getInstance()
             .root()
             .mPersonalCenterNode
             .reserveNode
             .cancelReserve(((ProgramNode) this.mNode).id);
       while (true) {
         invalidate();
         label194:
         if (!this.mBelongToPodcasterInfo) break label319;
         QTMSGManage.getInstance().sendStatistcsMessage("PodcasterInfo", "收听");
         return;
         if (this.mNode.nodeName.equalsIgnoreCase("ondemandprogram")) {
           localObject = null;
           i = 3;
           break;
         }
         if (!this.mNode.nodeName.equalsIgnoreCase("playhistory")) break label329;
         QTMSGManage.getInstance().sendStatistcsMessage("resumerecent_play");
         localObject = ((PlayHistoryNode) this.mNode).playNode;
         i = 1;
         break;
         InfoManager.getInstance()
             .root()
             .mPersonalCenterNode
             .reserveNode
             .addReserveNode((ProgramNode) this.mNode);
       }
     }
     ControllerManager localControllerManager = ControllerManager.getInstance();
     if (localObject != null) ;
     while (true) {
       localControllerManager.redirectToPlayViewByNode((Node) localObject, true);
       break label194;
       label319:
       break;
       localObject = this.mNode;
     }
     label329:
     localObject = null;
     i = 1;
   }
 }
Esempio n. 4
0
  public void onEvent(Object paramObject1, String paramString, Object paramObject2)
  {
    if (paramString.equalsIgnoreCase("sendDiscuss"))
      sendMessage((String)paramObject2, 0);
    ChatActionsView.ChatActionType localChatActionType;
    do
    {
      return;
      if (paramString.equalsIgnoreCase("expression"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 1;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState == 1)
        {
          this.mViewState = 0;
          requestLayout();
          return;
        }
        if (!CloudCenter.getInstance().isLogin())
        {
          CloudCenter.OnLoginEventListerner local4 = new CloudCenter.OnLoginEventListerner()
          {
            public void onLoginFailed(int paramAnonymousInt)
            {
            }

            public void onLoginSuccessed(int paramAnonymousInt)
            {
              QTMSGManage.getInstance().sendStatistcsMessage("chat_functionclick", "expression");
              ImChatMainView.access$302(ImChatMainView.this, 1);
              ImChatMainView.this.mInputView.update("closeKeyboard", null);
              ImChatMainView.this.requestLayout();
            }
          };
          EventDispacthManager.getInstance().dispatchAction("showLogin", local4);
          return;
        }
        QTMSGManage.getInstance().sendStatistcsMessage("chat_functionclick", "expression");
        this.mViewState = 1;
        this.mInputView.update("closeKeyboard", null);
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("expand"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 3;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState == 3)
        {
          this.mViewState = 0;
          requestLayout();
          return;
        }
        this.mViewState = 3;
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("inviteFriends"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 2;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState != 2)
        {
          this.mViewState = 2;
          requestLayout();
          return;
        }
        this.mViewState = 0;
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("selectExpression"))
      {
        this.mInputView.update("addExpression", paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("deleteExpression"))
      {
        this.mInputView.update(paramString, paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("scrollToFirstIndexAtMe"))
      {
        dispatchActionEvent(paramString, paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("useraction"))
      {
        if (!CloudCenter.getInstance().isLogin())
        {
          CloudCenter.OnLoginEventListerner local5 = new CloudCenter.OnLoginEventListerner()
          {
            public void onLoginFailed(int paramAnonymousInt)
            {
            }

            public void onLoginSuccessed(int paramAnonymousInt)
            {
              InfoManager.getInstance().getUserProfile().followGroup(ImChatMainView.this.mTalkingId);
              ImChatMainView.this.mJoinView.setVisibility(8);
            }
          };
          EventDispacthManager.getInstance().dispatchAction("showLogin", local5);
          return;
        }
        InfoManager.getInstance().getUserProfile().followGroup(this.mTalkingId);
        this.mJoinView.setVisibility(8);
        return;
      }
      if (paramString.equalsIgnoreCase("flowerToAdmin"))
      {
        flowerToUser((UserInfo)paramObject2);
        return;
      }
      if (!paramString.equalsIgnoreCase("chatActionType"))
        break;
      localChatActionType = (ChatActionsView.ChatActionType)paramObject2;
      if (localChatActionType == ChatActionsView.ChatActionType.SHARE)
      {
        shareGroup();
        return;
      }
      if (localChatActionType == ChatActionsView.ChatActionType.ASKNAME)
      {
        sendMessage("现在播的什么歌?", 0);
        return;
      }
    }
    while ((localChatActionType == ChatActionsView.ChatActionType.ANSWERNAME) || (localChatActionType != ChatActionsView.ChatActionType.COLLECTION));
    return;
    if (paramString.equalsIgnoreCase("shareToPlatform"))
    {
      invite(((Integer)paramObject2).intValue());
      return;
    }
    dispatchActionEvent(paramString, paramObject2);
  }