Пример #1
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;
            }
        }
Пример #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 WeMemberCard(WeCardBaseInfo baseInfo, string prerogative, CardUrlType urlType, string cardUrl)
     : this(baseInfo, null, null, null, prerogative, urlType, cardUrl)
 {
     SupplyBonus   = false;
     SupplyBalance = false;
 }
Пример #4
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;
 }
Пример #5
0
 public WeMemberCard(WeCardBaseInfo baseInfo, string prerogative, CardUrlType urlType, string cardUrl)
     : this(baseInfo, null, null, null, prerogative, urlType, cardUrl)
 {
     SupplyBonus = false;
     SupplyBalance = false;
 }
Пример #6
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;
 }