//支持储值和积分 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; } }
public WeMemberCard(WeCardBaseInfo baseInfo, string prerogative, CardUrlType urlType, string cardUrl) : this(baseInfo, null, null, null, prerogative, urlType, cardUrl) { SupplyBonus = false; SupplyBalance = false; }
// 仅支持积分、不支持储值 public WeMemberCard(WeCardBaseInfo baseInfo, string bonusClared, string bonusRules, string prerogative, CardUrlType urlType, string cardUrl) : this(baseInfo, bonusClared, bonusRules, null, prerogative, urlType, cardUrl) { SupplyBalance = false; }