SFS2X Objective-C API  1.7.13
iOS / macOS / tvOS
ChangeRoomNameRequest.h
1 //
2 // ChangeRoomNameRequest.h
3 // SFS2X
4 //
5 // Original development by Infosfer Game Technologies Ltd. | http://www.infosfer.com.
6 //
7 // Maintained and developed by A51 Integrated.
8 // Copyright 2012 A51 Integrated | http://a51integrated.com. All rights reserved.
9 //
10 
11 
12 #import "BaseRequest.h"
13 #import "Room.h"
14 
15 EXTERN NSString * const ChangeRoomNameRequest_KEY_ROOM;
16 EXTERN NSString * const ChangeRoomNameRequest_KEY_NAME;
17 
18 /** Changes the name of a Room at runtime.
19 
20  This request will fail if the User sending the request is not the creator of the Room.
21 
22  Moderators and Administrator can override this last constraint.
23 
24  If the Room was configured so that renaming is not allowed (see the <em>RoomSettings.permissions</em> parameter), the request is ignored and no error is fired.
25  */
26 @interface ChangeRoomNameRequest : BaseRequest {
27 
28  id<Room> _room;
29  NSString *_newName;
30 }
31 
32 /**
33  @param room the Room to rename
34  @param newName the new Room name (no duplicates are allowed)
35 
36  @see [ISFSEvents onRoomNameChange:]
37  @see [ISFSEvents onRoomNameChangeError:]
38 
39  @see ChangeRoomCapacityRequest
40  @see ChangeRoomPasswordStateRequest
41 
42  */
43 +(id)requestWithRoom:(id<Room>)room newName:(NSString *)newName;
44 
45 @end
ChangeRoomNameRequest
Definition: ChangeRoomNameRequest.h:26