private void StopSceneCallback(string _, string data) { CloseProjectResponse response = JsonConvert.DeserializeObject <CloseProjectResponse>(data); if (!response.Result) { Notifications.Instance.ShowNotification("Going offline failed", response.Messages.FirstOrDefault()); } }
private void StopSceneCallback(string _, string data) { CloseProjectResponse response = JsonConvert.DeserializeObject <CloseProjectResponse>(data); if (response.Messages != null) { CloseButton.SetInteractivity(response.Result, response.Messages.FirstOrDefault()); } else { CloseButton.SetInteractivity(response.Result); } }