Beispiel #1
0
 public ResponseStatus LeaveGame()
 {
     this.Send(SerializeRequests.SerializeLeaveGame());
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <Response>(this.Receive()).status);
 }
Beispiel #2
0
 public GetLeaderboardResponse GetLeaderboard()
 {
     this.Send(SerializeRequests.SerializeGetLeaderboard());
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <GetLeaderboardResponse>(this.Receive()));
 }
Beispiel #3
0
 public void Logout()
 {
     this.Send(SerializeRequests.SerializeLogout());
 }
Beispiel #4
0
 public SubmitAnswerResponse SubmitAnswer(SubmitAnswerRequest request)
 {
     this.Send(SerializeRequests.SerializeRequest <SubmitAnswerRequest>(request, RequestCodes.submitAnswerRequest));
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <SubmitAnswerResponse>(this.Receive()));
 }
Beispiel #5
0
 public GetGameResultsResponse GetGameResult()
 {
     this.Send(SerializeRequests.SerializeGetGameResults());
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <GetGameResultsResponse>(this.Receive()));
 }
Beispiel #6
0
 public GetRoomStateResponse GetRoomState()
 {
     this.Send(SerializeRequests.SerializeGetRoomState());
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <GetRoomStateResponse>(this.Receive()));
 }
Beispiel #7
0
 public ResponseStatus CloseRoom()
 {
     this.Send(SerializeRequests.SerializeCloseRoom());
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <Response>(this.Receive()).status);
 }
Beispiel #8
0
 public ResponseStatus JoinRoom(JoinRoomRequest request)
 {
     this.Send(SerializeRequests.SerializeRequest <JoinRoomRequest>(request, RequestCodes.joinRoomRequest));
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <Response>(this.Receive()).status);
 }
Beispiel #9
0
 public GetPlayersResponse GetPlayers(GetPlayersRequest request)
 {
     this.Send(SerializeRequests.SerializeRequest <GetPlayersRequest>(request, RequestCodes.getPlayersInRoomRequest));
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <GetPlayersResponse>(this.Receive()));
 }
Beispiel #10
0
 public StatisticsResponse GetStatistics()
 {
     this.Send(SerializeRequests.SerializeStatistics());
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <StatisticsResponse>(this.Receive()));
 }
Beispiel #11
0
 public ResponseStatus Login(LoginRequest request)
 {
     this.Send(SerializeRequests.SerializeLogin(request));
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <Response>(this.Receive()).status);
 }
Beispiel #12
0
 public ResponseStatus Register(RegisterRequest request)
 {
     this.Send(SerializeRequests.SerializeRegister(request));
     return(SerializationAndDeserialization.DeserializeResponses.DeserializeResponse <Response>(this.Receive()).status);
 }