public override string GetResult(HttpListenerContext context, string Path)
        {
            var data   = context.Request.QueryString["data"];
            var unitId = context.Request.QueryString["unitid"];

            var res = new PachinkoRes();

            res.Result = this.ChangeLevel(unitId, data, "1");
            //res.data = data;
            return(JsonMapper.ToJson(res));
        }
        public override string GetResult(HttpListenerContext context, string Path)
        {
            var data   = context.Request.QueryString["data"];
            var unitId = context.Request.QueryString["unitid"];
            var type   = context.Request.QueryString["type"];
            var res    = new PachinkoRes();

            //res.data = data;
            if (type == URL.PARAM_SWITCH_TYPE_ON)
            {
                res.Result = this.Switch(unitId, data, "1");
            }
            else if (type == URL.PARAM_SWITCH_TYPE_OFF)
            {
                res.Result = this.Switch(unitId, data, "0");
            }

            return(JsonMapper.ToJson(res));
        }