Core logic ported from TS: HttpClientFactory, Environment and WebSocketHandler.
This commit is contained in:
15
Core/EnvironmentConfig.cs
Normal file
15
Core/EnvironmentConfig.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Chtn.CSharp.SDK.Core
|
||||
{
|
||||
public class SDKConfig
|
||||
{
|
||||
public string ApiUrl { get; set; } = "https://api.chatenium.hu";
|
||||
public string CdnUrl { get; set; } = "https://cdn.chatenium.hu";
|
||||
public string WsUrl { get; set; } = "wss://api.chatenium.hu";
|
||||
}
|
||||
|
||||
public static class EnvironmentConfig
|
||||
{
|
||||
private static SDKConfig _currentConfig = new SDKConfig();
|
||||
public static SDKConfig Get() => _currentConfig;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user