/// <summary> /// 实例化一个新的投注信息 /// </summary> /// <param name="model">投注信息的数据模型</param> public BettingExport(Betting model) { this.Id = model.Id; this.OwnerId = model.Owner.Id; this.Owner = model.Owner.Username; this.Issue = model.Issue; this.Notes = model.Notes; this.Multiple = model.Multiple; this.Points = model.Points; this.Ticket = model.HowToPlay.Tag.Ticket.Name; this.PlayTag = model.HowToPlay.Tag.Name; this.HowToPlay = model.HowToPlay.Name; this.values = model.GetBetStr(); this.Status = model.Status; this.Pay = model.Pay; this.Bonus = model.Bonus; this.CreatedTime = model.CreatedTime; this.LotteryValue = model.LotteryValues; }
/// <summary> /// 实例化一个新的投注信息 /// </summary> /// <param name="model">投注信息的数据模型</param> public BettingExport(Betting model) { this.Id = model.Id; this.OwnerId = model.Owner.Id; this.Owner = model.Owner.Username; this.Issue = model.Issue; this.Notes = model.Notes; this.Multiple = model.Multiple; this.Points = model.Points; this.HowToPlay = model.GetDescription(); this.Values = model.GetBetStr(); this.Status = model.Status; this.Pay = model.Pay; this.Bonus = model.Bonus; this.CreatedTime = model.CreatedTime; this.LotteryValue = model.LotteryValues; }