mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:27:21 +01:00
push client 0.3.0
This commit is contained in:
parent
42f598b9d5
commit
801969f0d2
7 changed files with 39 additions and 81 deletions
|
|
@ -17,21 +17,6 @@ namespace MareSynchronos.WebAPI
|
|||
await CreateConnections();
|
||||
}
|
||||
|
||||
public async Task Register(bool isIntroUi = false)
|
||||
{
|
||||
if (!ServerAlive) return;
|
||||
Logger.Debug("Registering at service " + ApiUri);
|
||||
//var response = await _mareHub!.InvokeAsync<string>(Api.InvokeUserRegister);
|
||||
//_pluginConfiguration.ClientSecret[ApiUri] = response;
|
||||
_pluginConfiguration.Save();
|
||||
if (!isIntroUi)
|
||||
{
|
||||
RegisterFinalized?.Invoke();
|
||||
}
|
||||
|
||||
await CreateConnections();
|
||||
}
|
||||
|
||||
public async Task<List<string>> GetOnlineCharacters()
|
||||
{
|
||||
return await _mareHub!.InvokeAsync<List<string>>(Api.InvokeUserGetOnlineCharacters);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue