public JsonResult AdminPeoplePerRoom(OpenRequest request) { if (NotOkay(request)) { return(NotOkayJson()); } LoadTest.Status.PeoplePerRoom = request.peoplePerRoom; var result = LoadTest.GetStatus(); return(JsonMax(result)); }
public JsonResult AdminRoomCap(OpenRequest request) { if (NotOkay(request)) { return(NotOkayJson()); } LoadTest.Status.RoomCap = request.roomCap; var result = LoadTest.GetStatus(); return(JsonMax(result)); }
public JsonResult AdminTestStatus(OpenRequest request) { if (NotOkay(request)) { return(NotOkayJson()); } LoadTest.Status.Open = request.open; var result = LoadTest.GetStatus(); return(JsonMax(result)); }
public JsonResult AdminMessage(OpenRequest request) { if (NotOkay(request)) { return(NotOkayJson()); } if (request.message != null) { LoadTest.AddMessage(request.message); } var result = LoadTest.GetStatus(); return(JsonMax(result)); }