Beispiel #1
0
        private void PutWeek(NFLWeek w)
        {
            var weekKey = string.Format("{0}:{1:0#}", w.Season, w.WeekNo);

            TheHt.Add(weekKey, w);
            IsDirty = true;
        }
Beispiel #2
0
 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;
         }
     }
 }
Beispiel #5
0
        public void PutItem(LogItem m)
        {
            var filespec = m.Filespec;

            if (filespec != null &&
                !TheHt.ContainsKey(filespec))
            {
                TheHt.Add(filespec, m);
                IsDirty = true;
            }
        }
Beispiel #6
0
        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;
        }
Beispiel #7
0
        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);
        }
Beispiel #8
0
        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;
            }
        }
Beispiel #10
0
        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);
 }
Beispiel #12
0
 void AddSeason(NflSeason s)
 {
     TheHt.Add(s.Year, s);
 }