Example #1
0
		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;
					}
				}
			}
		}
Example #2
0
		public PvPProfileHistory(PvPProfile owner, GenericReader reader)
			: this(owner)
		{
			Deserialize(reader);
		}
Example #3
0
		public PvPProfileHistory(PvPProfile owner, IDictionary<int, PvPProfileHistoryEntry> dictionary)
			: this(owner)
		{
			Entries = new Dictionary<int, PvPProfileHistoryEntry>(dictionary);
		}
Example #4
0
		private PvPProfileHistory(PvPProfile owner)
		{
			Profile = owner;
		}