updateRoom method
Used to update a specific Room
.
Parameters:
roomType
this will define which room the entity will be updated.entity
this is the entity with all the new information about song.
Important:
- All methods will use the
key
as parameter to identify the entity. DON'T change it.
Return:
- updateRoom will ALWAYS return a
bool
:true
if the entity was changed.false
if something wrong happend.
Implementation
Future<bool> updateRoom(RoomType roomType, dynamic entity) async {
assert(
OnEntityChecker(entity).isEntity(roomType),
"[updateRoom] - [entity] isn't a instance of Entity\n"
"Choose one of the existing entities",
);
return await _controller.updateController(roomType, entity);
}