mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-24 20:00:05 +02:00
feat: achievements queries added
This commit is contained in:
1 parent
b4e28506ba
commit
310f46b1e7
18 files changed
+505
-45
No files matched your search
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using WotBlitzStatisticsPro.Common.Model.Achievements;
|
||||
|
||||
namespace WotBlitzStatisticsPro.Common.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents information about player's achievements
|
||||
/// </summary>
|
||||
public class AccountAchievementsResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Player Id
|
||||
/// </summary>
|
||||
public long AccountId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Player Achievements by sections
|
||||
/// </summary>
|
||||
public List<AchievementSection>? AchievementSections { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
namespace WotBlitzStatisticsPro.Common.Model.Achievements
|
||||
{
|
||||
/// <summary>
|
||||
/// Player's achievement information
|
||||
/// </summary>
|
||||
public class Achievement
|
||||
{
|
||||
/// <summary>
|
||||
/// Achievement Id
|
||||
/// </summary>
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Achievement value
|
||||
/// </summary>
|
||||
public int AchievementValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Achievement max series value
|
||||
/// </summary>
|
||||
public int? MaxSeriesValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Achievement condition
|
||||
/// </summary>
|
||||
public string? Condition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Achievement description
|
||||
/// </summary>
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Achievement normal sized image
|
||||
/// </summary>
|
||||
public string? Image { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Achievement big image
|
||||
/// </summary>
|
||||
public string? ImageBig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Achievement name
|
||||
/// </summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Order
|
||||
/// </summary>
|
||||
public long? Order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Section Id
|
||||
/// </summary>
|
||||
public string SectionId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Achievement type
|
||||
/// </summary>
|
||||
public string Type { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace WotBlitzStatisticsPro.Common.Model.Achievements
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents achievement section info and it's achievements list
|
||||
/// </summary>
|
||||
public class AchievementSection
|
||||
{
|
||||
/// <summary>
|
||||
/// Section Identifier
|
||||
/// </summary>
|
||||
public string SectionId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Section order
|
||||
/// </summary>
|
||||
public int Order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Section Name
|
||||
/// </summary>
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Achievements in the section
|
||||
/// </summary>
|
||||
public List<Achievement>? Achievements { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -18,10 +18,15 @@ namespace WotBlitzStatisticsPro.Common.Model
|
||||
public DateTime JoinedAt { get; set; } = new DateTime(1970, 1, 1);
|
||||
|
||||
///<summary>
|
||||
/// Player clan role
|
||||
/// Player clan role ID
|
||||
///</summary>
|
||||
public string? Role { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Player clan role
|
||||
///</summary>
|
||||
public string RoleLocalized { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clan name
|
||||
|
||||
Reference in new issue
Block a user