Created
February 5, 2020 18:37
-
-
Save andreas-nesheim/ce712e82b2750927a0225d29c53c60c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<Room> GetRoom(Home home) | |
{ | |
var requestUrl = $"uds/selectRoombyHome?homeId={home.homeId}"; | |
var response = await httpClient.PostAsync(requestUrl, stringData); | |
var result = await response.Content.ReadAsStringAsync(); | |
var jsonResult = JsonSerializer.Deserialize<SelectRoombyHomeResponse>(result); | |
return jsonResult.data.roomList.First(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment