|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Changes the name of a Room. More...
#include <ChangeRoomNameRequest.h>
Public Member Functions | |
| ChangeRoomNameRequest (std::shared_ptr< entities::Room > room, std::string newName) | |
| Creates a new ChangeRoomNameRequest. | |
Changes the name of a Room.
On success a event::SFSEvent::ROOM_NAME_CHANGE event reaches every user who subscribed the Group of the Room, the requester included. If the user is not the creator (owner) of the Room, a event::SFSEvent::ROOM_NAME_CHANGE_ERROR event is fired instead. An administrator or a moderator does not have this limit.
If the Room was set up so that it cannot be renamed (see the permissions setting in RoomSettings), the request is dropped and no error is fired.
|
inline |
Creates a new ChangeRoomNameRequest.
Pass it to SmartFox::send for the request to be performed.
| room | The Room whose name must change. |
| newName | The new name of the Room. |