public void Add(string str, RoomTypeResponse rtresponse) { Dictionary <string, RoomTypeResponse> dic = new Dictionary <string, RoomTypeResponse>(); dic.Add(str, rtresponse); this.room_types.Add(dic); }
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); }
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); }