mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-25 03:10:07 +01:00
feat: reorganized achevements queries and added client achievements request
This commit is contained in:
1 parent
8da5bdbfa8
commit
11b8b15a2a
37 files changed
+1940
-781
No files matched your search
+9
-2
@@ -6,9 +6,10 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.2.2.0")]
|
||||
public partial class PlayerResult : global::System.IEquatable<PlayerResult>, IPlayerResult
|
||||
{
|
||||
public PlayerResult(global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo accountInfo)
|
||||
public PlayerResult(global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo accountInfo, global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountMedals accountMedals)
|
||||
{
|
||||
AccountInfo = accountInfo;
|
||||
AccountMedals = accountMedals;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -16,6 +17,11 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
/// </summary>
|
||||
public global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountInfo AccountInfo { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns information about player's achievements
|
||||
/// </summary>
|
||||
public global::WotBlitzStatisticsPro.Blazor.GraphQl.IPlayer_AccountMedals AccountMedals { get; }
|
||||
|
||||
public virtual global::System.Boolean Equals(PlayerResult? other)
|
||||
{
|
||||
if (ReferenceEquals(null, other))
|
||||
@@ -33,7 +39,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
return false;
|
||||
}
|
||||
|
||||
return (AccountInfo.Equals(other.AccountInfo));
|
||||
return (AccountInfo.Equals(other.AccountInfo)) && AccountMedals.Equals(other.AccountMedals);
|
||||
}
|
||||
|
||||
public override global::System.Boolean Equals(global::System.Object? obj)
|
||||
@@ -62,6 +68,7 @@ namespace WotBlitzStatisticsPro.Blazor.GraphQl
|
||||
{
|
||||
int hash = 5;
|
||||
hash ^= 397 * AccountInfo.GetHashCode();
|
||||
hash ^= 397 * AccountMedals.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user