mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-18 00:29:48 +00:00
ab1b604aec
* Resolve warnings and move shared props to Directory.Build.props and Directory.Packages.props * Cleanup more messages * Fix more messages * Fix build issues
24 lines
725 B
C#
24 lines
725 B
C#
namespace Daybreak.Shared.Models.FocusView;
|
|
public sealed class CharacterSelectComponentEntry : IEquatable<CharacterSelectComponentEntry>
|
|
{
|
|
public required string DisplayName { get; init; }
|
|
public required string CharacterName { get; init; }
|
|
|
|
public bool Equals(CharacterSelectComponentEntry? other)
|
|
{
|
|
return other is not null &&
|
|
this.DisplayName == other.DisplayName &&
|
|
this.CharacterName == other.CharacterName;
|
|
}
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
return this.Equals(obj as CharacterSelectComponentEntry);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return HashCode.Combine(this.DisplayName, this.CharacterName);
|
|
}
|
|
}
|