public static void SendToBase(string header, string msg)
        {
            SynchronisationData syncData = SynchronisationData.PackDataSingle(header, msg);

            LatestData = syncData;
            LattePandaCommunication.SendObjectAsJson(syncData);
        }
        public static SynchronisationData PackDataSingle(string header, string data)
        {
            SynchronisationData syncData = new SynchronisationData();

            switch (header)
            {
            case "Navigation":
                syncData.Navigation = data;
                break;

            case "BaseMovement":
                syncData.BaseMovement = data;
                break;

            case "Gesture":
                syncData.Gesture = data;
                break;

            case "GenerateQR":
                syncData.GenerateQR = data;
                break;

            case "Speech":
                syncData.Speech = data;
                break;

            case "PicturePath":
                syncData.PicturePath = data;
                break;

            case "VideoPath":
                syncData.VideoPath = data;
                break;

            case "Telepresence":
                syncData.Telepresence = data;
                break;

            case "ChatBot":
                syncData.ChatBot = data;
                break;

            case "GuidedTour":
                syncData.GuidedTour = data;
                break;

            case "AskQuestion":
                syncData.AskQuestion = data;
                break;

            case "DisplayMedia":
                syncData.DisplayMedia = data;
                break;
            }

            return(syncData);
        }
 public static void SendToBase(SynchronisationData data)
 {
     LattePandaCommunication.SendObjectAsJson(data);
 }