Changed command dictionary to a command tree. Fixed various requests. OBS reconnection added if identified previously.
This commit is contained in:
@ -23,7 +23,7 @@ namespace TwitchChatTTS.Helpers
|
||||
_client.DefaultRequestHeaders.Add(key, value);
|
||||
}
|
||||
|
||||
public async Task<T?> GetJson<T>(string uri, JsonSerializerOptions options = null)
|
||||
public async Task<T?> GetJson<T>(string uri, JsonSerializerOptions? options = null)
|
||||
{
|
||||
var response = await _client.GetAsync(uri);
|
||||
return JsonSerializer.Deserialize<T>(await response.Content.ReadAsStreamAsync(), options ?? _options);
|
||||
|
Reference in New Issue
Block a user