mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 02:17:20 +02:00
Dictionaries DB structure refactored
This commit is contained in:
1 parent
9b80314b92
commit
6c10c6c654
25 files changed
+251
-117
No files matched your search
+14
-14
@@ -5,72 +5,72 @@ namespace WotBlitzStatisticsPro.Common.Dictionaries
|
||||
/// <summary>
|
||||
/// Achievement dictionary item
|
||||
/// </summary>
|
||||
public class AchievementDictionary
|
||||
public interface IAchievementDictionary
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public string AchievementId { get; set; }
|
||||
string AchievementId { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement condition
|
||||
///</summary>
|
||||
public List<LocalizableString> Condition { get; set; }
|
||||
List<LocalizableString> Condition { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement description
|
||||
///</summary>
|
||||
public List<LocalizableString> Description { get; set; }
|
||||
List<LocalizableString> Description { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Historical info
|
||||
///</summary>
|
||||
public List<LocalizableString> HeroInfo { get; set; }
|
||||
List<LocalizableString> HeroInfo { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Image link
|
||||
///</summary>
|
||||
public string Image { get; set; }
|
||||
string Image { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Image 180x180px link
|
||||
///</summary>
|
||||
public string ImageBig { get; set; }
|
||||
string ImageBig { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement name
|
||||
///</summary>
|
||||
public List<LocalizableString> Name { get; set; }
|
||||
List<LocalizableString> Name { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Sort order
|
||||
///</summary>
|
||||
public long? Order { get; set; }
|
||||
long? Order { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Is outdated achievement
|
||||
///</summary>
|
||||
public bool Outdated { get; set; }
|
||||
bool Outdated { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement section
|
||||
///</summary>
|
||||
public string SectionId { get; set; }
|
||||
string SectionId { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement section order
|
||||
///</summary>
|
||||
public long? SectionOrder { get; set; }
|
||||
long? SectionOrder { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement Type
|
||||
///</summary>
|
||||
public string Type { get; set; }
|
||||
string Type { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Achievement options
|
||||
///</summary>
|
||||
public List<AchievementOption> Options { get; set; }
|
||||
List<AchievementOption> Options { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -5,22 +5,22 @@ namespace WotBlitzStatisticsPro.Common.Dictionaries
|
||||
/// <summary>
|
||||
/// Achievement section dictionary item.
|
||||
/// </summary>
|
||||
public class AchievementSectionDictionary
|
||||
public interface IAchievementSectionDictionary
|
||||
{
|
||||
/// <summary>
|
||||
/// Achievement section id
|
||||
/// </summary>
|
||||
public string AchievementSectionId { get; set; }
|
||||
string AchievementSectionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Section order
|
||||
/// </summary>
|
||||
public int Order { get; set; }
|
||||
int Order { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Localized section names
|
||||
/// </summary>
|
||||
public List<LocalizableString> AchievementSectionNames { get; set; }
|
||||
List<LocalizableString> AchievementSectionNames { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -5,16 +5,16 @@ namespace WotBlitzStatisticsPro.Common.Dictionaries
|
||||
/// <summary>
|
||||
/// Clan role dictionary item
|
||||
/// </summary>
|
||||
public class ClanRoleDictionary
|
||||
public interface IClanRoleDictionary
|
||||
{
|
||||
/// <summary>
|
||||
/// Clan role id
|
||||
/// </summary>
|
||||
public string ClanRoleId { get; set; }
|
||||
string ClanRoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Localized clan role names
|
||||
/// </summary>
|
||||
public List<LocalizableString> ClanRoleNames { get; set; }
|
||||
List<LocalizableString> ClanRoleNames { get; set; }
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -3,17 +3,17 @@
|
||||
/// <summary>
|
||||
/// Languages available
|
||||
/// </summary>
|
||||
public class LanguageDictionary
|
||||
public interface ILanguageDictionary
|
||||
{
|
||||
/// <summary>
|
||||
/// Language id
|
||||
/// </summary>
|
||||
public string LanguageId { get; set; }
|
||||
string LanguageId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Language
|
||||
/// </summary>
|
||||
public string LanguageName { get; set; }
|
||||
string LanguageName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -5,16 +5,16 @@ namespace WotBlitzStatisticsPro.Common.Dictionaries
|
||||
/// <summary>
|
||||
/// Tanks nations dictionary item
|
||||
/// </summary>
|
||||
public class NationDictionary
|
||||
public interface INationDictionary
|
||||
{
|
||||
/// <summary>
|
||||
/// Nation id
|
||||
/// </summary>
|
||||
public string NationId { get; set; }
|
||||
string NationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Nation
|
||||
/// </summary>
|
||||
public List<LocalizableString> NationNames { get; set; }
|
||||
List<LocalizableString> NationNames { get; set; }
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -5,17 +5,17 @@ namespace WotBlitzStatisticsPro.Common.Dictionaries
|
||||
/// <summary>
|
||||
/// Vehicle type dictionary item
|
||||
/// </summary>
|
||||
public class VehicleTypeDictionary
|
||||
public interface IVehicleTypeDictionary
|
||||
{
|
||||
/// <summary>
|
||||
/// Vehicle type id
|
||||
/// </summary>
|
||||
public string VehicleTypeId { get; set; }
|
||||
string VehicleTypeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Vehicle type localized name
|
||||
/// </summary>
|
||||
public List<LocalizableString> VehicleTypeNames { get; set; }
|
||||
List<LocalizableString> VehicleTypeNames { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
+18
-18
@@ -5,92 +5,92 @@ namespace WotBlitzStatisticsPro.Common.Dictionaries
|
||||
/// <summary>
|
||||
/// Vehicle dictionary item
|
||||
/// </summary>
|
||||
public class VehiclesDictionary
|
||||
public interface IVehiclesDictionary
|
||||
{
|
||||
///<summary>
|
||||
/// VehicleId
|
||||
///</summary>
|
||||
public long TankId { get; set; }
|
||||
long TankId { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle name
|
||||
///</summary>
|
||||
public List<LocalizableString> Name { get; set; }
|
||||
List<LocalizableString> Name { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle description
|
||||
///</summary>
|
||||
public List<LocalizableString> Description { get; set; }
|
||||
List<LocalizableString> Description { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Is vehicle premium
|
||||
///</summary>
|
||||
public bool IsPremium { get; set; }
|
||||
bool IsPremium { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle type id
|
||||
///</summary>
|
||||
public string TypeId { get; set; }
|
||||
string TypeId { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle nationId
|
||||
///</summary>
|
||||
public string NationId { get; set; }
|
||||
string NationId { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Vehicle tier
|
||||
///</summary>
|
||||
public int Tier { get; set; }
|
||||
int Tier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Vehicle preview image
|
||||
/// </summary>
|
||||
public string PreviewImage { get; set; }
|
||||
string PreviewImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Vehicle normal image
|
||||
/// </summary>
|
||||
public string NormalImage { get; set; }
|
||||
string NormalImage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Vehicle price in credits
|
||||
/// </summary>
|
||||
public decimal PriceCredit { get; set; }
|
||||
decimal PriceCredit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Vehicle price in gold
|
||||
/// </summary>
|
||||
public decimal PriceGold { get; set; }
|
||||
decimal PriceGold { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ids of nex tanks and their cost in XP
|
||||
/// </summary>
|
||||
public List<VehiclePriceInXp> NexTanksInTree { get; set; }
|
||||
List<VehiclePriceInXp> NexTanksInTree { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Price in XP for parent vehicle as key
|
||||
///</summary>
|
||||
public List<VehiclePriceInXp> PriceXp { get; set; }
|
||||
List<VehiclePriceInXp> PriceXp { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Engines id list
|
||||
///</summary>
|
||||
public int[] Engines { get; set; }
|
||||
int[] Engines { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// Guns id list
|
||||
///</summary>
|
||||
public int[] Guns { get; set; }
|
||||
int[] Guns { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// List of compatible suspensions
|
||||
///</summary>
|
||||
public int[] Suspensions { get; set; }
|
||||
int[] Suspensions { get; set; }
|
||||
|
||||
///<summary>
|
||||
/// List of compatible turrets ids
|
||||
///</summary>
|
||||
public int[] Turrets { get; set; }
|
||||
int[] Turrets { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user