コード例 #1
0
        public void Add(string str, RoomTypeResponse rtresponse)
        {
            Dictionary <string, RoomTypeResponse> dic = new Dictionary <string, RoomTypeResponse>();

            dic.Add(str, rtresponse);

            this.room_types.Add(dic);
        }
コード例 #2
0
        public void Add(string str, RoomTypeResponse rtresponse, int num_rooms)
        {
            Dictionary <string, RoomTypeResponse> dic = new Dictionary <string, RoomTypeResponse>();


            for (int j = 0; j < num_rooms; j++)
            {
                dic.Add(str, rtresponse);
            }

            this.room_types.Add(dic);
        }
コード例 #3
0
        public ListOfRoomTypes(RoomTypeResponse roomTypeResponse, int num_rooms)
        {
            this.room_types = new List <Dictionary <string, RoomTypeResponse> >();

            Dictionary <string, RoomTypeResponse> dic = new Dictionary <string, RoomTypeResponse>();

            for (int j = 0; j < num_rooms; j++)
            {
                dic.Add(roomTypeResponse.room_code, roomTypeResponse);
            }

            this.room_types.Add(dic);
        }