The issue is that Room.Status is populated after deserialisation only by GetRoomsRequest (in the lounge) and not by GetRoomRequest (in the room). This PR applies a direct fix by moving the post-processing to a method that's called when any JSON deserialisation takes place, covering both requests.
It's not the best possible fix because there's probably no realistic use for this entire thing to be a class in the first place, as opposed to for example a helper method, enum, or even being applied in the existing property setters. But I don't consider this an important thing to change at the current moment.
Fixes https://github.com/ppy/osu/issues/30792
The issue is that
Room.Status
is populated after deserialisation only byGetRoomsRequest
(in the lounge) and not byGetRoomRequest
(in the room). This PR applies a direct fix by moving the post-processing to a method that's called when any JSON deserialisation takes place, covering both requests.It's not the best possible fix because there's probably no realistic use for this entire thing to be a class in the first place, as opposed to for example a helper method, enum, or even being applied in the existing property setters. But I don't consider this an important thing to change at the current moment.