public void Update(YahooFantasySports.DataModel.Player player) { this.YahooId = player.Id; this.Status = player.Status; this.IsC |= player.Positions.Contains(YahooFantasySports.Constants.Positions.Catcher); this.Is1B |= player.Positions.Contains(YahooFantasySports.Constants.Positions.FirstBase); this.Is2B |= player.Positions.Contains(YahooFantasySports.Constants.Positions.SecondBase); this.IsSS |= player.Positions.Contains(YahooFantasySports.Constants.Positions.Shortstop); this.Is3B |= player.Positions.Contains(YahooFantasySports.Constants.Positions.ThridBase); this.IsOF |= player.Positions.Contains(YahooFantasySports.Constants.Positions.Outfield); }
private string GetStats(YahooFantasySports.DataModel.Player player) { StringBuilder sb = new StringBuilder(); sb.Append("<UL>"); foreach (KeyValuePair <int, string> kvp in player.Stats) { sb.AppendFormat("<LI>{0}: {1}</LI>", kvp.Key, kvp.Value); } sb.Append("</UL>"); return(sb.ToString()); }
private string GetPositionList(YahooFantasySports.DataModel.Player player) { StringBuilder sb = new StringBuilder(); sb.Append("<UL>"); foreach (string position in player.Positions) { sb.AppendFormat("<LI>{0}</LI>", position); } sb.Append("</UL>"); return(sb.ToString()); }
public void Update(YahooFantasySports.DataModel.Player player) { this.YahooId = player.Id; this.Status = player.Status; }