Skip to content

Commit 16ff185

Browse files
committed
docs(network): unify request KDocs
1 parent 5ed425b commit 16ff185

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

sdk/src/server-api/sc/protocol/requests/AuthenticateRequest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ package sc.protocol.requests
33
import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

6-
/** Sent by Client to authenticate as administrator. Is not answered if successful. */
6+
/** Authenticates a client as administrator to send [AdminLobbyRequest]s.
7+
* Is not answered if successful. */
78
@XStreamAlias("authenticate")
89
data class AuthenticateRequest(
910
@XStreamAsAttribute

sdk/src/server-api/sc/protocol/requests/CancelRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package sc.protocol.requests
33
import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

6-
/** Used to cancel game and delete a GameRoom. */
6+
/** Deletes the GameRoom and cancels the Game within. */
77
@XStreamAlias("cancel")
88
data class CancelRequest(
99
@XStreamAsAttribute

sdk/src/server-api/sc/protocol/requests/ILobbyRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import sc.protocol.ProtocolPacket
55
/** Parent for all packets handled by the Lobby. */
66
interface ILobbyRequest: ProtocolPacket
77

8-
/** Marks requests only allowed as an administrative client. */
8+
/** Marks requests only allowed after successful authentication. */
99
interface AdminLobbyRequest: ILobbyRequest

sdk/src/server-api/sc/protocol/requests/JoinPreparedRoomRequest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

66
/**
7-
* Used by client to join a room by reservation code.
8-
* The code can be received from the administrative client who requested game creation via PrepareGameRequest.
7+
* Join a prepared game by reservation.
8+
* The code is handed out by the administrative client
9+
* that created the game via a PrepareGameRequest.
910
*/
1011
@XStreamAlias("joinPrepared")
1112
data class JoinPreparedRoomRequest(

sdk/src/server-api/sc/protocol/requests/ObservationRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package sc.protocol.requests
33
import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

6-
/** Request of administrative client to observe a gameRoom specified by given roomId. */
6+
/** Request by administrative client to observe a gameRoom specified by given roomId. */
77
@XStreamAlias("observe")
88
data class ObservationRequest(
99
@XStreamAsAttribute

sdk/src/server-api/sc/protocol/requests/PlayerScoreRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

66
/**
7-
* Request of administrative client to get score for a player (displayName of player).
7+
* Request by administrative client to get score for a player (displayName of player).
88
* Only useful if testMode was enabled before game ended.
99
*/
1010
@XStreamAlias("scoreForPlayer")

sdk/src/server-api/sc/protocol/requests/PrepareGameRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55
import com.thoughtworks.xstream.annotations.XStreamImplicit
66
import sc.shared.SlotDescriptor
77

8-
/** Request to prepare a game of [gameType] with slots according to [slotDescriptors]. */
8+
/** Prepare a game of [gameType] with slots according to [slotDescriptors]. */
99
@XStreamAlias("prepare")
1010
data class PrepareGameRequest(
1111
@XStreamAsAttribute

sdk/src/server-api/sc/protocol/requests/StepRequest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ package sc.protocol.requests
33
import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

6-
/** Sent by administrative client to send a MoveRequest to the current player. Only works for paused games. */
6+
/** Request by administrative client to send a MoveRequest to the current player.
7+
* Only works for paused games. */
78
@XStreamAlias("step")
89
data class StepRequest @JvmOverloads constructor(
910
@XStreamAsAttribute

sdk/src/server-api/sc/protocol/requests/TestModeRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package sc.protocol.requests
33
import com.thoughtworks.xstream.annotations.XStreamAlias
44
import com.thoughtworks.xstream.annotations.XStreamAsAttribute
55

6-
/** Send by administrative client to enable or disable testMode. */
6+
/** Request by administrative client to toggle testMode. */
77
@XStreamAlias("testMode")
88
class TestModeRequest(
99
@XStreamAsAttribute

0 commit comments

Comments
 (0)