public PvPProfileHistory(PvPProfile owner, params PvPProfileHistoryEntry[] entries) : this(owner) { if (entries == null) { Entries = new Dictionary<int, PvPProfileHistoryEntry>(); } else { Entries = new Dictionary<int, PvPProfileHistoryEntry>(entries.Length); foreach (var entry in entries) { PvPSeason season = AutoPvP.EnsureSeason(entry.Season); if (!Entries.ContainsKey(season.Number)) { Entries.Add(season.Number, entry); } else { Entries[season.Number] = entry; } if (Entries[season.Number] == null) { Entries[season.Number] = entry; } } } }
public PvPProfileHistory(PvPProfile owner, GenericReader reader) : this(owner) { Deserialize(reader); }
public PvPProfileHistory(PvPProfile owner, IDictionary<int, PvPProfileHistoryEntry> dictionary) : this(owner) { Entries = new Dictionary<int, PvPProfileHistoryEntry>(dictionary); }
private PvPProfileHistory(PvPProfile owner) { Profile = owner; }