示例#1
0
        public IHttpActionResult SubmitKnifeCapture(string machine_name, int deviceId, int knife_pos, int knife_type, int knife_picked, int local_value)
        {
            KC_Resp Resp = new KC_Resp(_context, deviceId, machine_name, knife_pos, knife_type, knife_picked, local_value);

            //return Ok(Resp);
            return(Json(Resp));
        }
示例#2
0
        public IHttpActionResult KnifeCaptureGetInitials(int post_id, string machines)
        {
            KC_Resp Resp = new KC_Resp();

            if (initial_post_id != post_id)
            {
                initial_post_id = post_id;
                Resp            = new KC_Resp(_context, machines);
            }
            return(Json(Resp));
        }
示例#3
0
        public IHttpActionResult SubmitKnifeCapture([FromBody] CaptureProps CaptureProps)
        {
            KC_Resp Resp = new KC_Resp();

            // ignord the same post data
            if (capture_post_id != CaptureProps.PostId)
            {
                capture_post_id = CaptureProps.PostId;
                Resp            = new KC_Resp(_context, CaptureProps);
            }

            return(Json(Resp));
        }