| | 1 | |
|
| | 2 | | // AUTOGENERATED, DO NOT EDIT |
| | 3 | | // Type definitions for server implementations of ports. |
| | 4 | | // package: decentraland.bff |
| | 5 | | // file: decentraland/bff/comms_director_service.proto |
| | 6 | | using Cysharp.Threading.Tasks; |
| | 7 | | using rpc_csharp; |
| | 8 | | using Google.Protobuf.WellKnownTypes; |
| | 9 | |
|
| | 10 | | namespace Decentraland.Bff { |
| | 11 | | public interface IClientCommsDirectorService |
| | 12 | | { |
| | 13 | | UniTask<Empty> SendHeartbeat(Heartbeat request); |
| | 14 | |
|
| | 15 | | IUniTaskAsyncEnumerable<WorldCommand> GetCommsCommands(Empty request); |
| | 16 | | } |
| | 17 | |
|
| | 18 | | public class ClientCommsDirectorService : IClientCommsDirectorService |
| | 19 | | { |
| | 20 | | private readonly RpcClientModule module; |
| | 21 | |
|
| 0 | 22 | | public ClientCommsDirectorService(RpcClientModule module) |
| | 23 | | { |
| 0 | 24 | | this.module = module; |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | |
|
| | 28 | | public UniTask<Empty> SendHeartbeat(Heartbeat request) |
| | 29 | | { |
| 0 | 30 | | return module.CallUnaryProcedure<Empty>("SendHeartbeat", request); |
| | 31 | | } |
| | 32 | |
|
| | 33 | | public IUniTaskAsyncEnumerable<WorldCommand> GetCommsCommands(Empty request) |
| | 34 | | { |
| 0 | 35 | | return module.CallServerStream<WorldCommand>("GetCommsCommands", request); |
| | 36 | | } |
| | 37 | |
|
| | 38 | | } |
| | 39 | | } |