Created
February 5, 2020 18:38
-
-
Save andreas-nesheim/0ac9c0049198d8fd8d74dcc8707bd8f8 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<Device> GetDevice(Room room) | |
{ | |
var requestUrl = $"uds/selectDevicebyRoom?roomId={room.roomId}"; | |
var response = await httpClient.PostAsync(requestUrl, stringData); | |
var result = await response.Content.ReadAsStringAsync(); | |
var jsonResult = JsonSerializer.Deserialize<SelectDevicebyRoomResponse>(result); | |
return jsonResult.data.deviceList.First(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment