コード例 #1
0
        public JsonResult AdminPeoplePerRoom(OpenRequest request)
        {
            if (NotOkay(request))
            {
                return(NotOkayJson());
            }

            LoadTest.Status.PeoplePerRoom = request.peoplePerRoom;

            var result = LoadTest.GetStatus();

            return(JsonMax(result));
        }
コード例 #2
0
        public JsonResult AdminRoomCap(OpenRequest request)
        {
            if (NotOkay(request))
            {
                return(NotOkayJson());
            }

            LoadTest.Status.RoomCap = request.roomCap;

            var result = LoadTest.GetStatus();

            return(JsonMax(result));
        }
コード例 #3
0
        public JsonResult AdminTestStatus(OpenRequest request)
        {
            if (NotOkay(request))
            {
                return(NotOkayJson());
            }

            LoadTest.Status.Open = request.open;

            var result = LoadTest.GetStatus();

            return(JsonMax(result));
        }
コード例 #4
0
        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));
        }