public GenericOutcome UpdatePlayerSessionCreationPolicy(string gameSessionId, PlayerSessionCreationPolicy playerSessionPolicy) { var policy = new UpdatePlayerSessionCreationPolicy { GameSessionId = gameSessionId, NewPlayerSessionCreationPolicy = PlayerSessionCreationPolicyMapper.GetNameForPlayerSessionCreationPolicy(playerSessionPolicy) }; return(EmitEvent(policy)); }
public async Task <GenericOutcome> UpdatePlayerSessionCreationPolicy(string gameSessionId, PlayerSessionCreationPolicy playerSessionPolicy) { var updatePlayerSessionCreationPolicy = new UpdatePlayerSessionCreationPolicy { GameSessionId = gameSessionId, NewPlayerSessionCreationPolicy = PlayerSessionCreationPolicyMapper.GetNameForPlayerSessionCreationPolicy(playerSessionPolicy) }; var response = await SendAsync(updatePlayerSessionCreationPolicy).ConfigureAwait(false); return(ParseHttpResponse(response)); }