Nullable refernce types refactoring

This commit is contained in:
Mikhail Shabanov committed 2020-12-27 12:39:25 +01:00
1 parent e5c90e03d3
commit e12734981b
85 files changed
+509 -351

No files matched your search

@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using MongoDB.Bson.Serialization.Attributes;
using WotBlitzStatisticsPro.Common.Dictionaries;
@@ -6,19 +7,18 @@ 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; }
[BsonId] public string AchievementId { get; set; } = string.Empty;
public List<LocalizableString> Condition { get; set; } = Enumerable.Empty<LocalizableString>().ToList();
public List<LocalizableString> Description { get; set; } = Enumerable.Empty<LocalizableString>().ToList();
public List<LocalizableString> HeroInfo { get; set; } = Enumerable.Empty<LocalizableString>().ToList();
public string Image { get; set; } = string.Empty;
public string ImageBig { get; set; } = string.Empty;
public List<LocalizableString> Name { get; set; } = Enumerable.Empty<LocalizableString>().ToList();
public long? Order { get; set; }
public bool Outdated { get; set; }
public string SectionId { get; set; }
public string SectionId { get; set; } = string.Empty;
public long? SectionOrder { get; set; }
public string Type { get; set; }
public List<AchievementOption> Options { get; set; }
public string Type { get; set; } = string.Empty;
public List<AchievementOption> Options { get; set; } = Enumerable.Empty<AchievementOption>().ToList();
}
}