Ejemplo n.º 1
0
        //feed this message processor a clean message that has the below function run on it
        //this.jsonIncomingMessage.Text = message;
        //string tmp = jsonIncomingMessage.Text;
        void ProcessSocketMessage(string message)
        {
            SocketMessage recievedObject = JsonConvert.DeserializeObject <SocketMessage>(message);

            if (recievedObject.MessageType == "OmniMessage")
            {
                //update omni
                this.SocketMessage = recievedObject;
            }
            else if (recievedObject.MessageType == "PermissionToConnect")
            {
                masterViewModel.SomeoneIsConnecting(recievedObject.IpAddress, recievedObject.Name);
            }
            else
            {
                //unhandled
            }
        }
Ejemplo n.º 2
0
 public void testButtonClick(object sender, RoutedEventArgs e)
 {
     networkgeomagicTouchViewModel.SomeoneIsConnecting("129.93.6.91", "extraUser");
 }