toJSON() public method

public toJSON ( ) : String
return String
Ejemplo n.º 1
0
        private void Send(KinectSkeletonFrame skeletonFrame)
        {
            String buffer;

            if (skeletonFrame != null)
            {
                try
                {
                    // TODO: get the callback string from the URL prams
                    buffer = skeletonFrame.toJSON();
                    SendString(buffer);
                }
                catch (Exception e)
                {
                    Console.WriteLine("Failed to Send\n{0}", e.Message);
                    throw e;
                }
            }
            else
            {
                Console.WriteLine("SkeletonFrame not ready");
            }
        }
 private void Send(KinectSkeletonFrame skeletonFrame)
 {
     String buffer;
     if (skeletonFrame != null)
     {
         try
         {
             // TODO: get the callback string from the URL prams
             buffer = skeletonFrame.toJSON();
             SendString(buffer);
         }
         catch (Exception e)
         {
             Console.WriteLine("Failed to Send\n{0}", e.Message);
             throw e;
         }
     }
     else
     {
         Console.WriteLine("SkeletonFrame not ready");
     }
 }