public void SendFakeDwell(int x, int y, string track, string mediaName)
        {
            var individual = new Tracked(999, x, y, track, mediaName);
            var data       = new JsonData();

            data.trackerData.Add(individual);

            wsServer.WebSocketServices["/Dal200"].Sessions.BroadcastAsync(JsonConvert.SerializeObject(data), null);
        }
        public JsonData StripBlobPositionData()
        {
            var      blobData           = (OscMessage)data;
            JsonData positionData       = new JsonData();
            var      x                  = (float)blobData[0];
            var      y                  = (float)blobData[1];
            var      clientId           = 1;
            var      individualTracking = new Tracked(clientId, (int)x, (int)y);

            positionData.trackerData.Add(individualTracking);

            return(positionData);
        }
        private void DwellDetected(Tracked targetData)
        {
            if (targetData.id == oldTargetId)
            {
                return;
            }
            oldTargetId = targetData.id;
            Console.WriteLine(targetData.id);

            var data = new DwellData();

            data.dwellIndex = targetData.id;
            wsServer.WebSocketServices["/Dal200"].Sessions.BroadcastAsync(JsonConvert.SerializeObject(data), null);
        }
        //[id,x,y,height,orX,orY]
        public JsonData StripDTDTPositionData()
        {
            var      dtdtTracking = (OscMessage)data;
            var      count        = dtdtTracking[0];
            JsonData positionData = new JsonData();

            for (int id = 0; id < (int)dtdtTracking[0]; id++)
            {
                var clientID           = (int)dtdtTracking[id * 6 + 1];
                var x                  = (int)dtdtTracking[id * 6 + 2];
                var y                  = (int)dtdtTracking[id * 6 + 3];
                var individualTracking = new Tracked(clientID, x, y);

                positionData.trackerData.Add(individualTracking);
            }
            return(positionData);
        }