Skip to content

Commit

Permalink
Re-introduce 'WvwRank' property for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Oct 5, 2024
1 parent c7e3961 commit 24b4578
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 60 deletions.
60 changes: 0 additions & 60 deletions GW2SDK/CompatibilitySuppressions.xml

This file was deleted.

10 changes: 10 additions & 0 deletions GW2SDK/Features/Hero/Accounts/AccountSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ public sealed record AccountSummary
/// scope.</summary>
public required int? MonthlyAchievementPoints { get; init; }

/// <summary>The account's personal World vs. World rank. Requires the 'progression' scope.</summary>
[Obsolete("Property 'WvwRank' was moved to 'Wvw.Rank'. The old property is only kept for backwards compatibility. The old property is now an alias for the new property and might be removed in the future.")]
public int? WvwRank
{
get => Wvw.Rank;
init => Wvw = Wvw is not null
? Wvw with { Rank = value }
: new AccountWvwSummary { Rank = value, TeamId = null };
}

/// <summary>The account's WvW team and personal rank.</summary>
public required AccountWvwSummary Wvw { get; init; }

Expand Down

0 comments on commit 24b4578

Please sign in to comment.