public override bool Predicate(BattleResultViewModel ship) { if (this.Both) return true; if (this.GetShip && string.IsNullOrEmpty(ship.GetShipName)) return false; return true; }
public override bool Predicate(BattleResultViewModel ship) { if (this.Both) return true; if (this.Rank_S && ship.ResultData.WinRank.ToUpper().Contains("S")) return true; if (this.Rank_A && ship.ResultData.WinRank.ToUpper().Contains("A")) return true; if (this.Rank_B && ship.ResultData.WinRank.ToUpper().Contains("B")) return true; if (this.Rank_C && ship.ResultData.WinRank.ToUpper().Contains("C")) return true; if (this.Rank_D && ship.ResultData.WinRank.ToUpper().Contains("D")) return true; return false; }
public override bool Predicate(BattleResultViewModel ship) { if (this.Both) return true; if (this.StartDate < ship.ResultData.CreateDate && ship.ResultData.CreateDate < this.EndDate) return true; return false; }
public abstract bool Predicate(BattleResultViewModel ship);