| | 1 | |
|
| | 2 | | // AUTOGENERATED, DO NOT EDIT |
| | 3 | | // Type definitions for server implementations of ports. |
| | 4 | | // package: decentraland.bff |
| | 5 | | // file: decentraland/bff/authentication_service.proto |
| | 6 | | using Cysharp.Threading.Tasks; |
| | 7 | | using rpc_csharp; |
| | 8 | |
|
| | 9 | | namespace Decentraland.Bff { |
| | 10 | | public interface IClientBffAuthenticationService |
| | 11 | | { |
| | 12 | | UniTask<GetChallengeResponse> GetChallenge(GetChallengeRequest request); |
| | 13 | |
|
| | 14 | | UniTask<WelcomePeerInformation> Authenticate(SignedChallenge request); |
| | 15 | | } |
| | 16 | |
|
| | 17 | | public class ClientBffAuthenticationService : IClientBffAuthenticationService |
| | 18 | | { |
| | 19 | | private readonly RpcClientModule module; |
| | 20 | |
|
| 0 | 21 | | public ClientBffAuthenticationService(RpcClientModule module) |
| | 22 | | { |
| 0 | 23 | | this.module = module; |
| 0 | 24 | | } |
| | 25 | |
|
| | 26 | |
|
| | 27 | | public UniTask<GetChallengeResponse> GetChallenge(GetChallengeRequest request) |
| | 28 | | { |
| 0 | 29 | | return module.CallUnaryProcedure<GetChallengeResponse>("GetChallenge", request); |
| | 30 | | } |
| | 31 | |
|
| | 32 | | public UniTask<WelcomePeerInformation> Authenticate(SignedChallenge request) |
| | 33 | | { |
| 0 | 34 | | return module.CallUnaryProcedure<WelcomePeerInformation>("Authenticate", request); |
| | 35 | | } |
| | 36 | |
|
| | 37 | | } |
| | 38 | | } |