Fix not sending session name when joining a public session.
This commit is contained in:
@@ -71,7 +71,7 @@ namespace Gameboard.ShogiUI.Sockets.Repositories
|
||||
|
||||
public async Task<PutJoinPublicSessionResponse> PutJoinPublicSession(string gameName, PutJoinPublicSession request)
|
||||
{
|
||||
var uri = $"Session/{gameName}/Join";
|
||||
var uri = $"Session/Join";
|
||||
var content = new StringContent(JsonConvert.SerializeObject(request), Encoding.UTF8, "application/json");
|
||||
var response = await client.PutAsync(Uri.EscapeUriString(uri), content);
|
||||
var json = await response.Content.ReadAsStringAsync();
|
||||
@@ -114,6 +114,7 @@ namespace Gameboard.ShogiUI.Sockets.Repositories
|
||||
{
|
||||
var uri = $"Player/{playerName}";
|
||||
var response = await client.GetAsync(Uri.EscapeUriString(uri));
|
||||
Console.WriteLine(response);
|
||||
var json = await response.Content.ReadAsStringAsync();
|
||||
return JsonConvert.DeserializeObject<GetPlayerResponse>(json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user