예제 #1
0
        public WeDiscountCard(WeCardBaseInfo baseInfo, int discount)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
            Discount = discount;
        }
예제 #2
0
        //支持储值和积分
        public WeMemberCard(WeCardBaseInfo baseInfo, string bonusClared, string bonusRules,
                            string balanceRules, string prerogative, CardUrlType urlType, string cardUrl)
        {
            SupplyBonus   = true;
            SupplyBalance = true;

            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(prerogative, "prerogative", null);
            TkDebug.AssertArgumentNullOrEmpty(cardUrl, "cardUrl", null);

            BonusCleared = bonusClared;
            BonusRules   = bonusRules;
            BalanceRules = balanceRules;
            Prerogative  = prerogative;

            switch (urlType)
            {
            case CardUrlType.OldCardUrl:
                BindOldCardUrl = cardUrl;
                break;

            case CardUrlType.ActivateUrl:
                ActivateUrl = cardUrl;
                break;

            default:
                break;
            }
        }
예제 #3
0
        public WeCash(WeCardBaseInfo baseInfo, int reduceCost)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo   = baseInfo;
            ReduceCost = reduceCost;
        }
예제 #4
0
        public WeDiscountCard(WeCardBaseInfo baseInfo, int discount)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
            Discount = discount;
        }
예제 #5
0
        public WeCash(WeCardBaseInfo baseInfo, int reduceCost)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
            ReduceCost = reduceCost;
        }
예제 #6
0
        //支持储值和积分
        public WeMemberCard(WeCardBaseInfo baseInfo, string bonusClared, string bonusRules,
            string balanceRules, string prerogative, CardUrlType urlType, string cardUrl)
        {
            SupplyBonus = true;
            SupplyBalance = true;

            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(prerogative, "prerogative", null);
            TkDebug.AssertArgumentNullOrEmpty(cardUrl, "cardUrl", null);

            BonusCleared = bonusClared;
            BonusRules = bonusRules;
            BalanceRules = balanceRules;
            Prerogative = prerogative;

            switch (urlType)
            {
                case CardUrlType.OldCardUrl:
                    BindOldCardUrl = cardUrl;
                    break;
                case CardUrlType.ActivateUrl:
                    ActivateUrl = cardUrl;
                    break;
                default:
                    break;
            }
        }
예제 #7
0
파일: WeGift.cs 프로젝트: hkmujj/zllinmitu
        public WeGift(WeCardBaseInfo baseInfo, string gift)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(gift, "gift", null);

            BaseInfo = baseInfo;
            Gift     = gift;
        }
예제 #8
0
        public WeMeetingTicket(WeCardBaseInfo baseInfo, string meetingDetail)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(meetingDetail, "meetingDetail", null);

            BaseInfo      = baseInfo;
            MeetingDetail = meetingDetail;
        }
예제 #9
0
        public WeGroupon(WeCardBaseInfo baseInfo, string dealDatail)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(dealDatail, "dealDatail", null);

            BaseInfo   = baseInfo;
            DealDetail = dealDatail;
        }
예제 #10
0
        public WeGeneralCoupon(WeCardBaseInfo baseInfo, string defaultDetail)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(defaultDetail, "defaultDetail", null);

            BaseInfo = baseInfo;
            DefaultDetail = defaultDetail;
        }
예제 #11
0
        public WeMeetingTicket(WeCardBaseInfo baseInfo, string meetingDetail)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(meetingDetail, "meetingDetail", null);

            BaseInfo = baseInfo;
            MeetingDetail = meetingDetail;
        }
예제 #12
0
        public WeMemberCard(WeCardBaseInfo baseInfo, string bonusCleared, string bonusRules, string prerogative)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(bonusCleared, "bonusCleared", null);
            TkDebug.AssertArgumentNullOrEmpty(bonusRules, "bonusRules", null);

            BaseInfo = baseInfo;
            BonusCleared = bonusCleared;
            BonusRules = bonusRules;
            Prerogative = prerogative;
        }
예제 #13
0
        public WeMemberCard(WeCardBaseInfo baseInfo, string bonusCleared, string bonusRules, string prerogative)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(bonusCleared, "bonusCleared", null);
            TkDebug.AssertArgumentNullOrEmpty(bonusRules, "bonusRules", null);

            BaseInfo     = baseInfo;
            BonusCleared = bonusCleared;
            BonusRules   = bonusRules;
            Prerogative  = prerogative;
        }
예제 #14
0
        public WeBoardingPass(WeCardBaseInfo baseInfo, string from, string to, string flight)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(from, "from", null);
            TkDebug.AssertArgumentNullOrEmpty(to, "to", null);
            TkDebug.AssertArgumentNullOrEmpty(flight, "flight", null);

            BaseInfo = baseInfo;
            From = from;
            To = to;
            Flight = flight;
        }
예제 #15
0
        public WeBoardingPass(WeCardBaseInfo baseInfo, string from, string to, string flight)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);
            TkDebug.AssertArgumentNullOrEmpty(from, "from", null);
            TkDebug.AssertArgumentNullOrEmpty(to, "to", null);
            TkDebug.AssertArgumentNullOrEmpty(flight, "flight", null);

            BaseInfo = baseInfo;
            From     = from;
            To       = to;
            Flight   = flight;
        }
예제 #16
0
        public WeMovieTicket(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
        }
예제 #17
0
        public WeLuckyMoney(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInof = baseInfo;
        }
예제 #18
0
 public WeMemberCard(WeCardBaseInfo baseInfo, string prerogative, CardUrlType urlType, string cardUrl)
     : this(baseInfo, null, null, null, prerogative, urlType, cardUrl)
 {
     SupplyBonus = false;
     SupplyBalance = false;
 }
예제 #19
0
        public WeBoardingPass(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
        }
예제 #20
0
 // 仅支持积分、不支持储值
 public WeMemberCard(WeCardBaseInfo baseInfo, string bonusClared, string bonusRules,
                     string prerogative, CardUrlType urlType, string cardUrl)
     : this(baseInfo, bonusClared, bonusRules, null, prerogative, urlType, cardUrl)
 {
     SupplyBalance = false;
 }
예제 #21
0
 // 仅支持积分、不支持储值
 public WeMemberCard(WeCardBaseInfo baseInfo, string bonusClared, string bonusRules,
     string prerogative, CardUrlType urlType, string cardUrl)
     : this(baseInfo, bonusClared, bonusRules, null, prerogative, urlType, cardUrl)
 {
     SupplyBalance = false;
 }
예제 #22
0
        public WeBoardingPass(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
        }
예제 #23
0
        public WeMeetingTicket(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInfo = baseInfo;
        }
예제 #24
0
        public WeLuckyMoney(WeCardBaseInfo baseInfo)
        {
            TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null);

            BaseInof = baseInfo;
        }
예제 #25
0
 public WeMemberCard(WeCardBaseInfo baseInfo, string prerogative, CardUrlType urlType, string cardUrl)
     : this(baseInfo, null, null, null, prerogative, urlType, cardUrl)
 {
     SupplyBonus   = false;
     SupplyBalance = false;
 }