Пример #1
0
 public FiledPlayslipDto(Playslip playslip, Draw draw)
 {
     playslip.notNull();
     RefId = playslip.RefId;
     IsInvalidOrEmpty = playslip.invalid() || !playslip.valid();
     IsWin = playslip.valid() && null != draw && playslip.win(draw);
 }
Пример #2
0
 public TemplateDto(Playslip playslip, Draw draw)
 {
     playslip.notNull();
     IsInvalid = playslip.invalid();
     RefId = playslip.RefId;
     Nr = playslip.Nr.AsString;
     HasSpiel77 = playslip.IsS77;
     HasSuper6 = playslip.IsS6;
     Boards = new List<BoardDto>(playslip.Select(board => new BoardDto(board, draw)));
 }