public void onDeleteRoomDone(RoomEvent eventObj) { Quizmaster quizmaster = Listener as Quizmaster; Console.WriteLine("Succesfully deleted room"); quizmaster.ActiveRoom.Active = false; quizmaster.DeleteRoomDone(); }
public void onCreateRoomDone(RoomEvent eventObj) { Quizmaster quizmaster = Listener as Quizmaster; if (eventObj.getResult() == WarpResponseResultCode.SUCCESS) { Console.WriteLine("Room Created"); quizmaster.CreateRoomDone(eventObj.getData()); } else { var result = eventObj.getResult(); Console.WriteLine("Failed to create room"); } }