Exemplo n.º 1
0
        protected virtual async Task <Response> callChecked_MessagePersonalAsync(string[] commandSplit, string fromUsername)
        {
            string errMessage = "";

            if (!CpParseUtilities.CheckArgCount(commandSplit, 3, ref errMessage))
            {
                return(new Response(false, errMessage));
            }

            CpParseUtilities.RecombineSplitMessage(ref commandSplit, 2);

            string toUsername  = commandSplit[1];
            string messageText = commandSplit[2];

            return(await handle_MessagePersonalAsync(toUsername, fromUsername, messageText));
        }
Exemplo n.º 2
0
        protected virtual Response receiveEvent_MessagePersonal_checked(string[] commandSplit)
        {
            string errMessage = "";

            if (!CpParseUtilities.CheckArgCount(commandSplit, 3, ref errMessage))
            {
                return(new Response(false, errMessage));
            }

            CpParseUtilities.RecombineSplitMessage(ref commandSplit, 2);

            string fromUsername = commandSplit[1];
            string messageText  = commandSplit[2];

            return(handle_MessagePersonal(fromUsername, messageText));
        }