public void ProcessPaymentItemCommand(string command, Dictionary <string, string> commandArgs)
        {
            string paymentItemsCommand = mPaymentItemCommand.CreatePaymentCommand(command, commandArgs);

            Message       PaymentItemsMessage = new Message();
            List <object> dataObject          = new List <object>();

            dataObject.Add(paymentItemsCommand);
            PaymentItemsMessage.PaymentItemsMessage(dataObject);

            SendMessageToReflector(PaymentItemsMessage);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Send message to server requesting an update of user gold and game currency balance
        /// </summary>
        /// <param name="notification"></param>
        public void GetUserBalance()
        {
            Dictionary <string, string> commandParameters = new Dictionary <string, string>();

            commandParameters.Add("userSession", mClientMessageProcessor.LocalSessionId.ToString());

            string paymentItemsCommand = mPaymentItemsCommand.CreatePaymentCommand("GetUserBalance", commandParameters);

            SendPaymentItemsMessage(paymentItemsCommand, (int)MessageSubType.GetBalance);
        }