HighLevelApiClientFactory
A static class in Alta.Api.Client, Alta.Api.Client.HighLevel.
Makes the API client the game uses (ApiAccess calls it) and holds the known API addresses. All of Alta's addresses here no longer answer.
- Listed in Alta.Api.Client
Fields
Properties
| Member | What it is |
|---|---|
static StatusAPI Status { get; } | Shared StatusAPI client for the game's status messages. |
Methods
| Member | What it is |
|---|---|
static IHighLevelApiClient CreateHighLevelClient(string endpointUri = "https://webapi.townshiptale.com/", string websocketUri = "wss://5wx2mgoj95.execute-api.ap-southeast-2.amazonaws.com/dev/", string userAgent = null, int timeout = 40) | Creates the online client for an endpoint and websocket address. Defaults to production with a 40 second timeout. |
static IHighLevelApiClient CreateOfflineHighLevelClient(LoginCredentials credentials) | Creates an OfflineHighLevelApiClient from stored login credentials. |
static void SetLogging(LoggingConfiguration config) | Replaces the NLog configuration for the whole process. |