mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +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
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class AchievementDictionary : IAchievementDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public string AchievementId { get; set; }
|
||||
public List<LocalizableString> Condition { get; set; }
|
||||
public List<LocalizableString> Description { get; set; }
|
||||
public List<LocalizableString> HeroInfo { get; set; }
|
||||
public string Image { get; set; }
|
||||
public string ImageBig { get; set; }
|
||||
public List<LocalizableString> Name { get; set; }
|
||||
public long? Order { get; set; }
|
||||
public bool Outdated { get; set; }
|
||||
public string SectionId { get; set; }
|
||||
public long? SectionOrder { get; set; }
|
||||
public string Type { get; set; }
|
||||
public List<AchievementOption> Options { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class AchievementSectionDictionary: IAchievementSectionDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public string AchievementSectionId { get; set; }
|
||||
public int Order { get; set; }
|
||||
public List<LocalizableString> AchievementSectionNames { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class ClanRoleDictionary : IClanRoleDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public string ClanRoleId { get; set; }
|
||||
public List<LocalizableString> ClanRoleNames { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class LanguageDictionary: ILanguageDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public string LanguageId { get; set; }
|
||||
|
||||
public string LanguageName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class NationDictionary : INationDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public string NationId { get; set; }
|
||||
public List<LocalizableString> NationNames { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class VehicleTypeDictionary : IVehicleTypeDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public string VehicleTypeId { get; set; }
|
||||
public List<LocalizableString> VehicleTypeNames { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using WotBlitzStatisticsPro.Common.Dictionaries;
|
||||
|
||||
namespace WotBlitzStatisticsPro.DataAccess.Model
|
||||
{
|
||||
public class VehiclesDictionary : IVehiclesDictionary
|
||||
{
|
||||
[BsonId]
|
||||
public long TankId { get; set; }
|
||||
public List<LocalizableString> Name { get; set; }
|
||||
public List<LocalizableString> Description { get; set; }
|
||||
public bool IsPremium { get; set; }
|
||||
public string TypeId { get; set; }
|
||||
public string NationId { get; set; }
|
||||
public int Tier { get; set; }
|
||||
public string PreviewImage { get; set; }
|
||||
public string NormalImage { get; set; }
|
||||
public decimal PriceCredit { get; set; }
|
||||
public decimal PriceGold { get; set; }
|
||||
public List<VehiclePriceInXp> NexTanksInTree { get; set; }
|
||||
public List<VehiclePriceInXp> PriceXp { get; set; }
|
||||
public int[] Engines { get; set; }
|
||||
public int[] Guns { get; set; }
|
||||
public int[] Suspensions { get; set; }
|
||||
public int[] Turrets { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user