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(); }
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 ReceiveRevealResponse(byte[] body) { Log.Trace("Receiving Reveal Response", "ReceiveRevealResponse"); RevealResponse response = RevealResponse.FromBytes(body); String result = response.Success ? "Successfully queued for reveal" : "Failed to reveal"; result += " grid " + response.EntityId; Notification notice = new ChatNotification() { Text = result, Sender = "GP" }; notice.Raise(); }