using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkFlowCheck.Common.DTO
{
    public class CheckListRowDTO
    {
        public int Id { get; set; }
        public int CheckListHeaderId { get; set; }
        public int CheckListTemplateRowId { get; set; }
        public CheckListTemplateRowDTO? CheckListTemplateRowDTO { get; set; }
        public string GroupName => $"AnswerGroup_{CheckListTemplateRowDTO?.RowIndex ?? 0}";

        [DisplayName("Eredmény")]
        public string Answer { get; set; } = null!;
        
        public bool? AnswerYes { get; set; } = null!;
        public bool? AnswerNo { get; set; } = null!;

        [DisplayName("Kép")]
        public byte[]? Photo { get; set; } = null!;
        public Guid GuidNumber { get; set; }
    }
}
