public TicketHeader(PlayerTicketDetailResponse d, IEnumerable <PlayerTicketDetailResponse> data) { this.TicketId = d.TicketId; this.TicketDate = d.TicketDate; this.Player = d.Username; this.Partner = d.Partner; this.Stake = d.Stake; this.StakePerbet = d.StakePerBet; this.Status = d.HeaderStatus; this.Currency = d.Currency; this.MaxOdds = d.MaxOdds; this.Payout = d.Payout; this.IsSystem = d.IsSystem; this.BetCount = d.BetCount; this.System = d.System; this.TicketCount = d.TicketCount; this.CountryName = d.CountryName; this.PlayerIp = d.PlayerIp; this.EvaluationDate = d.EvaluationDate; this.Details = new List <TicketDetail>(); foreach (var da in data) { this.Details.Add(new TicketDetail(da)); } }
public TicketDetail(PlayerTicketDetailResponse d) { this.MatchDate = d.MatchDate; this.MatchId = d.MatchId; this.BetradarId = d.BetradarId; this.Tournament = d.Tournament; this.Teams = d.Teams; this.OddsType = d.OddsType; this.Outcome = d.Outcome; this.OddsValue = d.OddValue; this.Live = d.Live; this.Banko = d.Banko ? "B" : null; this.Status = d.DetailStatus; this.DStatus = d.DStatus; }