private void ReceiveChangeSettingResponse(byte[] body) { Log.Trace("Receiving Reveal Response", "ReceiveRevealResponse"); ChangeSettingResponse response = ChangeSettingResponse.FromBytes(body); String result = response.Success ? "Successfully changed setting" : "Failed to change setting (not yet implemented)"; Notification notice = new ChatNotification() { Text = result, Sender = "GP" }; notice.Raise(); }
private void ReceiveConcealResponse(byte[] body) { Log.Trace("Receiving Conceal Response", "ReceiveConcealResponse"); ConcealResponse response = ConcealResponse.FromBytes(body); String result = response.Success ? "Successfully concealed" : "Failed to conceal"; result += " grid " + response.EntityId; Notification notice = new ChatNotification() { Text = result, Sender = "GP" }; notice.Raise(); }
private void ReceiveStatusResponse(byte[] body) { Log.Trace("Receiving Reveal Response", "ReceiveRevealResponse"); StatusResponse response = StatusResponse.FromBytes(body); String result = "Server is "; result += response.ServerRunning ? "Running." : "Terminated."; Notification notice = new ChatNotification() { Text = result, Sender = "GP" }; notice.Raise(); }