Example #1
0
        // -------------------------------------------------------------------------------
        // ReqAccountResendConfirmation
        // -------------------------------------------------------------------------------
        public void ReqAccountResendConfirmation(string[] fields, Action <string[]> callbackFunction)
        {
            DictionaryAddAction(callbackFunction);

            MsgReqAccountResendConfirmation message = new MsgReqAccountResendConfirmation {
                sName = fields[0]
            };

            networkManager.client.Send(MsgReqAccountResendConfirmation.nId, message);
        }
Example #2
0
        // -------------------------------------------------------------------------------
        // ReqAccountResendConfirmation
        // -------------------------------------------------------------------------------
        public MsgAckAccountResendConfirmation ReqAccountResendConfirmation(MsgReqAccountResendConfirmation message, NetworkConnection connection = null)
        {
            bool _bSuccess = false;

            CAccount cAccount = AccountLoad(message.sName);

            if (cAccount != null && !cAccount.bConfirmed)
            {
                _bSuccess = RequestSecurityCode(cAccount, Constants.AccountActionType.ConfirmAccount);
            }

            return(new MsgAckAccountResendConfirmation {
                bSuccess = _bSuccess
            });
        }
Example #3
0
        // -------------------------------------------------------------------------------
        // OnReqAccountResendConfirmation
        // -------------------------------------------------------------------------------
        public void OnReqAccountResendConfirmation(NetworkMessage networkMessage)
        {
            MsgReqAccountResendConfirmation message = networkMessage.ReadMessage <MsgReqAccountResendConfirmation>();

            networkMessage.conn.Send(MsgAckAccountResendConfirmation.nId, accountManager.ReqAccountResendConfirmation(message, networkMessage.conn));
        }