コード例 #1
0
ファイル: OrderBuilder.cs プロジェクト: kinsen/LotteryVoteMVC
 internal static BuildResult BuildUnionPL2(User user, LotterySpecies specie,
     IEnumerable<BetItem> betList, LimitChecker checker = null)
 {
     var builder = new UnionPL2OrderBuilder();
     if (checker != null) builder.Checker = checker;
     return new BuildResult
     {
         Sheet = builder.BuildOrder(user, specie, betList, null),
         Result = builder.BetResult
     };
 }
コード例 #2
0
ファイル: OrderBuilder.cs プロジェクト: kinsen/LotteryVoteMVC
 internal static BuildResult Build(User user, LotterySpecies specie,
     FastBetItem fastBetItem, GameType gameType, LimitChecker checker = null)
 {
     var builder = new FastBetOrderBuilder();
     if (checker != null) builder.Checker = checker;
     return new BuildResult
     {
         Sheet = builder.BuildOrder(user, specie, new[] { fastBetItem },
             new Dictionary<string, object> { { "GameType", gameType } }),
         Result = builder.BetResult
     };
 }
コード例 #3
0
ファイル: OrderBuilder.cs プロジェクト: kinsen/LotteryVoteMVC
 internal static BuildResult Build(User user, LotterySpecies specie,
     IEnumerable<BetItem> betList, bool isCon = false, LimitChecker checker = null)
 {
     var builder = new CommOrderBuilder();
     if (checker != null) builder.Checker = checker;
     return new BuildResult
     {
         Sheet = builder.BuildOrder(user, specie, betList,
             new Dictionary<string, object> { { "ISCON", isCon } }),
         Result = builder.BetResult
     };
 }