Ejemplo n.º 1
0
 private bool OnDelFriendRsp(DelFriendRsp rsp)
 {
     if (rsp.get_retcode() == null)
     {
     }
     return(false);
 }
Ejemplo n.º 2
0
        private bool OnDelFriendRsp(DelFriendRsp rsp)
        {
            if (rsp.get_retcode() == null)
            {
                object[] replaceParams = new object[] { Singleton <FriendModule> .Instance.TryGetPlayerNickName((int)rsp.get_target_uid()) };
                string   text          = LocalizationGeneralLogic.GetText("Menu_Desc_DeleteFriend", replaceParams);
                Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(text, 2f), UIType.Any);

                this.SetupFriendListTab();
            }
            return(false);
        }
Ejemplo n.º 3
0
        private bool OnDelFriendRsp(DelFriendRsp rsp)
        {
            if (rsp.get_retcode() == null)
            {
                Singleton <MainUIManager> .Instance.CurrentPageContext.BackPage();

                string str = Singleton <FriendModule> .Instance.TryGetPlayerNickName((int)rsp.get_target_uid());

                object[] replaceParams = new object[] { str };
                string   text          = LocalizationGeneralLogic.GetText("Menu_Desc_DeleteFriend", replaceParams);
                Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(text, 2f), UIType.Any);
            }
            else
            {
                string networkErrCodeOutput = LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0]);
                Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(networkErrCodeOutput, 2f), UIType.Any);
            }
            return(false);
        }