/// <summary> /// Sends a(n) <see cref="GameOperationResponse"/> to a session /// </summary> public void SendOperationResponse(int sessionId, GameOperationResponse gameResponse, MessageParameters messageParameters) { var parameters = ObjectDataMemberMapper.GetValues <DataMemberAttribute>(gameResponse); parameters.Add(0, sessionId); var operationResponse = new OperationResponse(gameResponse.OperationCode, parameters) { ReturnCode = gameResponse.ReturnCode, DebugMessage = gameResponse.DebugMessage }; this.SendOperationResponse(operationResponse, new SendParameters { ChannelId = messageParameters.ChannelId, Encrypted = messageParameters.Encrypted, }); }
/// <summary> /// Sends an operation response to the client /// </summary> public void SendOperationResponse(GameOperationResponse response, MessageParameters parameters) { this.server.SendOperationResponse(this.SessionId, response, parameters); }