/*
 * Copyright(c) 2023 MoogleTroupe
 * Licensed under the GPL v3 license. See https://github.com/BardMusicPlayer/BardMusicPlayer/blob/develop/LICENSE for full license information.
 */

namespace BardMusicPlayer.Seer.Events;

public sealed class PlayerNameChanged : SeerEvent
{
    internal PlayerNameChanged(EventSource readerBackendType, string playerName) : base(readerBackendType)
    {
        EventType  = GetType();
        PlayerName = playerName;
    }

    public string PlayerName { get; }

    public override bool IsValid() => !string.IsNullOrEmpty(PlayerName);
}