private void PutWeek(NFLWeek w) { var weekKey = string.Format("{0}:{1:0#}", w.Season, w.WeekNo); TheHt.Add(weekKey, w); IsDirty = true; }
public void PutTeam(NflTeam team) { if (!TheHt.ContainsKey(Key(team))) { TheHt.Add(Key(team), team); } }
void PutSeason(NflSeason s) { if (!TheHt.ContainsKey(s.Year)) { TheHt.Add(s.Year, s); IsDirty = true; } }
public void PutPlayer(NFLPlayer p) { if (p.PlayerCode != null) { if (!TheHt.ContainsKey(p.PlayerCode)) { TheHt.Add(p.PlayerCode, p); IsDirty = true; } } }
public void PutItem(LogItem m) { var filespec = m.Filespec; if (filespec != null && !TheHt.ContainsKey(filespec)) { TheHt.Add(filespec, m); IsDirty = true; } }
public void PutPgm(PlayerGameMetrics pgm) { var key = string.Format("{0}:{1}", pgm.PlayerId, pgm.GameKey); if (this.TheHt.ContainsKey(key)) { TheHt[key] = pgm; } else { TheHt.Add(key, pgm); } IsDirty = true; }
public void PutStat(YahooOutput stat) { if (stat.Quantity == 0.0M) { return; } IsDirty = true; if (TheHt.ContainsKey(stat.FormatKey())) { TheHt[stat.FormatKey()] = stat; return; } TheHt.Add(stat.FormatKey(), stat); }
public void PutItem(TorrentItem m) { var title = m.Title; if (!TheHt.ContainsKey(title)) { TheHt.Add(title, m); IsDirty = true; Logger.Trace($" {title} added to HT"); } else { Logger.Trace($" {title} already in HT"); } }
public void PutItem( CountItem item) { var name = item.Name; if (!TheHt.ContainsKey(name)) { TheHt.Add( key: name, value: item); IsDirty = true; } else { TheHt[name] = item; } }
public void PutRating(HillenPowerRating stat) { if (stat.Quantity == 0.0M) { return; } IsDirty = true; if (TheHt.ContainsKey(stat.FormatKey())) { TheHt[stat.FormatKey()] = stat; #if DEBUG //Utility.Announce( string.Format( "HillenMaster:Putting Stat {0}", stat.FormatKey() ) ); #endif return; } TheHt.Add(stat.FormatKey(), stat); #if DEBUG //Utility.Announce( string.Format( "HillenMaster:Adding Stat {0}", stat.FormatKey() ) ); #endif }
public void AddPlayer(NFLPlayer p) { TheHt.Add(p.PlayerCode, p); }
void AddSeason(NflSeason s) { TheHt.Add(s.Year, s); }