Ejemplo n.º 1
0
        internal BonusInfoDTO(lotteryBonus_info info)
        {
            Contract.Requires(info != null);

            BonusBalls = info.bonus_ballsSpecified
                ? info.bonus_balls
                : (int?)null;

            BonusDrumType = RestMapperHelper.MapBonusDrumType(info.bonus_drum, info.bonus_drumSpecified);

            BonusRange = info.bonus_range;
        }
Ejemplo n.º 2
0
        internal BonusInfoDTO(lotteryBonus_info info)
        {
            Guard.Argument(info, nameof(info)).NotNull();

            BonusBalls = info.bonus_ballsSpecified
                ? info.bonus_balls
                : (int?)null;

            BonusDrumType = RestMapperHelper.MapBonusDrumType(info.bonus_drum, info.bonus_drumSpecified);

            BonusRange = info.bonus_range;
        }