mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 16:34:40 +01:00
lobby ui works
This commit is contained in:
25
nksrv/LobbyServer/Msgs/Wallet/GetWallet.cs
Normal file
25
nksrv/LobbyServer/Msgs/Wallet/GetWallet.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using nksrv.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace nksrv.LobbyServer.Msgs.Wallet
|
||||
{
|
||||
[PacketPath("/wallet/get")]
|
||||
public class GetWallet : LobbyMsgHandler
|
||||
{
|
||||
protected override async Task HandleAsync()
|
||||
{
|
||||
var req = await ReadData<ReqGetCurrencyData>();
|
||||
var response = new ResGetCurrencyData();
|
||||
foreach (var item in req.Currencies)
|
||||
{
|
||||
Console.WriteLine("Request currency " + (CurrencyType)item);
|
||||
}
|
||||
|
||||
WriteData(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user