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

            TheHt.Add(weekKey, w);
            IsDirty = true;
        }
示例#2
0
 public void PutTeam(NflTeam team)
 {
     if (!TheHt.ContainsKey(Key(team)))
     {
         TheHt.Add(Key(team), team);
     }
 }
示例#3
0
 void PutSeason(NflSeason s)
 {
     if (!TheHt.ContainsKey(s.Year))
     {
         TheHt.Add(s.Year, s);
         IsDirty = true;
     }
 }
示例#4
0
 public void PutPlayer(NFLPlayer p)
 {
     if (p.PlayerCode != null)
     {
         if (!TheHt.ContainsKey(p.PlayerCode))
         {
             TheHt.Add(p.PlayerCode, p);
             IsDirty = true;
         }
     }
 }
示例#5
0
        public void PutItem(LogItem m)
        {
            var filespec = m.Filespec;

            if (filespec != null &&
                !TheHt.ContainsKey(filespec))
            {
                TheHt.Add(filespec, m);
                IsDirty = true;
            }
        }
示例#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;
        }
示例#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);
        }
示例#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");
            }
        }
示例#9
0
        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;
            }
        }
示例#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
        }
示例#11
0
 public void AddPlayer(NFLPlayer p)
 {
     TheHt.Add(p.PlayerCode, p);
 }
示例#12
0
 void AddSeason(NflSeason s)
 {
     TheHt.Add(s.Year, s);
 }