예제 #1
0
        public string Exec(string cmd, string rawdata)
        {
            int cmd_m = FindCmd(cmd);

            if (cmd_m != -1)
            {
                return(list[cmd_m].callback(rawdata));
            }

            return(JSONResponse.Build("5", "Error", "Not Implemented sub api /cmd:" + cmd + "/ver :" + cmd_m));          //TODO: Need to improve this
        }
예제 #2
0
        public string Exec(int version, string cmd, string rawData)
        {
            int ver = FindAPI(version);

            if (ver != -1)
            {
                return(apis[ver].Exec(cmd, rawData));
            }

            return(JSONResponse.Build("5", "Error", "Not Implemented api: " + version));
        }