Пример #1
0
    public void ReceiveMessage(Message message)
    {
        LeaderboardMessage ldbMessage = LeaderboardMessage.Build(message.payload);

        ldbMessage.users.ForEach(user => leaderboard.AddUser(user));
    }
Пример #2
0
    // Initializing entered user
    public void ReceiveMessage(Message message)
    {
        var enteredUser = new User(message.playerId, message.payload, 0, true);

        leaderboard.AddUser(enteredUser);
    }