/// <summary> /// 实例化一个新的公告信息 /// </summary> /// <param name="model">公告信息的数据模型</param> public BulletinExport(Bulletin model) { this.Id = model.Id; this.Title = model.Title; this.Context = model.Context; this.BeginTime = model.BeginTime; this.EndTime = model.EndTime; this.Hide = model.Hide; this.Status = model.Status; }
/// <summary> /// 实例化一个新的注册奖励的计划信息 /// </summary> /// <param name="model">注册奖励的计划的数据模型</param> public RewardForRegisterPlanExport(RewardForRegisterPlan model) { this.Id = model.Id; this.Title = model.Title; this.Description = model.Description; this.PrizeType = model.PrizeType; this.Sum = model.Sum; this.Code = model.Code; this.BeginTime = model.BeginTime; this.EndTime = model.EndTime; this.Hide = model.Hide; this.Status = model.Status; }
/// <summary> /// 实例化一个新的积分兑换的计划 /// </summary> /// <param name="model">积分兑换的计划的数据模型</param> public RedeemPlanExport(RedeemPlan model) { this.Id = model.Id; this.Title = model.Title; this.Description = model.Description; this.Integral = model.Integral; this.Money = model.Money; this.Code = model.Code; this.BeginTime = model.BeginTime; this.EndTime = model.EndTime; this.Hide = model.Hide; this.Status = model.Status; }
/// <summary> /// 实例化一个新的充值奖励的计划 /// </summary> /// <param name="model">充值奖励的计划的数据模型</param> public RewardForRechargePlanExport(RewardForRechargePlan model) { this.Id = model.Id; this.Title = model.Title; this.Description = model.Description; this.PlanType = model.PlanType; this.Timescale = model.Timescale; this.Details = model.Details.ConvertAll(x => new RewardForRechargePlanDetailExport(x)); this.Code = model.Code; this.BeginTime = model.BeginTime; this.EndTime = model.EndTime; this.Hide = model.Hide; this.Status = model.Status; }