Ejemplo n.º 1
0
        public override bool Predicate(BattleResultViewModel ship)
        {
            if (this.Both) return true;
            if (this.GetShip && string.IsNullOrEmpty(ship.GetShipName)) return false;

            return true;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public abstract bool Predicate(BattleResultViewModel ship);