move marehub to strong api usage (#14)

* move marehub to strong api usage

* fix merge issues

* latest api

* further optimizations
This commit is contained in:
rootdarkarchon 2022-10-08 14:33:25 +02:00 committed by GitHub
parent a8f97aee23
commit 777a764ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 362 additions and 256 deletions

View file

@ -66,4 +66,23 @@ internal class IdentityService : IdentificationService.IdentificationServiceBase
}
return Task.FromResult(new Empty());
}
public override async Task<UidWithIdentMessage> ValidateCachedIdents(MultiUidMessage request, ServerCallContext context)
{
UidWithIdentMessage response = new UidWithIdentMessage();
foreach (var msg in request.Uids)
{
UidWithIdent msgResp = new()
{
Uid = msg,
Ident = new()
};
var ident = await _handler.GetIdentForuid(msg.Uid);
msgResp.Ident.Ident = ident.CharacterIdent;
msgResp.Ident.ServerId = ident.ServerId;
response.UidWithIdent.Add(msgResp);
}
return response;
}
}