public WeDiscountCard(WeCardBaseInfo baseInfo, int discount) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); BaseInfo = baseInfo; Discount = discount; }
//支持储值和积分 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 WeCash(WeCardBaseInfo baseInfo, int reduceCost) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); BaseInfo = baseInfo; ReduceCost = reduceCost; }
public WeGift(WeCardBaseInfo baseInfo, string gift) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); TkDebug.AssertArgumentNullOrEmpty(gift, "gift", null); BaseInfo = baseInfo; Gift = gift; }
public WeMeetingTicket(WeCardBaseInfo baseInfo, string meetingDetail) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); TkDebug.AssertArgumentNullOrEmpty(meetingDetail, "meetingDetail", null); BaseInfo = baseInfo; MeetingDetail = meetingDetail; }
public WeGroupon(WeCardBaseInfo baseInfo, string dealDatail) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); TkDebug.AssertArgumentNullOrEmpty(dealDatail, "dealDatail", null); BaseInfo = baseInfo; DealDetail = dealDatail; }
public WeGeneralCoupon(WeCardBaseInfo baseInfo, string defaultDetail) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); TkDebug.AssertArgumentNullOrEmpty(defaultDetail, "defaultDetail", null); BaseInfo = baseInfo; DefaultDetail = defaultDetail; }
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; }
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; }
public WeMovieTicket(WeCardBaseInfo baseInfo) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); BaseInfo = baseInfo; }
public WeLuckyMoney(WeCardBaseInfo baseInfo) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); BaseInof = baseInfo; }
public WeMemberCard(WeCardBaseInfo baseInfo, string prerogative, CardUrlType urlType, string cardUrl) : this(baseInfo, null, null, null, prerogative, urlType, cardUrl) { SupplyBonus = false; SupplyBalance = false; }
public WeBoardingPass(WeCardBaseInfo baseInfo) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); BaseInfo = baseInfo; }
// 仅支持积分、不支持储值 public WeMemberCard(WeCardBaseInfo baseInfo, string bonusClared, string bonusRules, string prerogative, CardUrlType urlType, string cardUrl) : this(baseInfo, bonusClared, bonusRules, null, prerogative, urlType, cardUrl) { SupplyBalance = false; }
public WeMeetingTicket(WeCardBaseInfo baseInfo) { TkDebug.AssertArgumentNull(baseInfo, "baseInfo", null); BaseInfo = baseInfo; }