Axel Leucht wrote:Do I understand you correctly that once you booked a room you can't book it again (and it stay booked forever) as it is now booked?
I reread my assignment and indeed the unbooking method isn't required, but this seems to be weird to me, isn't it?
Hi Axel, the assignment really requires the book and search methods. Once a room is booked, it is booked. You may provide a unbook method for the client UI but that's not necessary. If you asked about the book method, you may also wondering what about the delete method (like once a room is created, can I delete it).
In my implementation of UB I provided book/unbook, search, create/delete methods. Again the delete method is not necessary. Now regarding your earlier post about when to you allow a room to unbook itself... I did mine as anytime. Meaning once I book it, I can immediately unbook it. You may noticed the 48-hour window for booking rooms. I used this info to set the date also. Some people just ignore the date when booking rooms.