using Kreta.Client.KozpontiKreta.Model;

namespace Kreta.BusinessLogic.HelperClasses
{
    public class TantargyFelosztasSearchCo
    {
        public int IntezmenyId { get; set; }

        public int? SearchOsztalyCsoport { get; set; }

        public int? SearchTantargy { get; set; }

        public int? SearchTanar { get; set; }

        public int? SearchEvfolyam { get; set; }

        public int? SearchTanev { get; set; }

        public double? SearchOraszam { get; set; }

        public int? SearchFeladatellatasihely { get; set; }

        public int? SearchFoglalkozasTipusa { get; set; }

        public bool ElfogadottTTF { get; set; }

        public bool ElfogadottESL { get; set; }

        public bool VeglegesTTF { get; set; }

        public bool VeglegesESL { get; set; }

        public bool VeglegesETTF { get; set; }

        public bool Islocked { get; set; }

        public int StatusCode { get; set; }

        public string RegNumber { get; set; }

        public string StatusTitle { get; set; }

        public string StatusText { get; set; }

        public static implicit operator TantargyFelosztasSearchCo(TantargyFelosztasResponse tantargyFelosztasResponse) => new TantargyFelosztasSearchCo
        {
            IntezmenyId = tantargyFelosztasResponse.IntezmenyId,
            SearchOsztalyCsoport = tantargyFelosztasResponse.SearchOsztalyCsoport,
            SearchTantargy = tantargyFelosztasResponse.SearchTantargy,
            SearchTanar = tantargyFelosztasResponse.SearchTanar,
            SearchEvfolyam = tantargyFelosztasResponse.SearchEvfolyam,
            SearchTanev = tantargyFelosztasResponse.SearchTanev,
            SearchOraszam = tantargyFelosztasResponse.SearchOraszam,
            SearchFeladatellatasihely = tantargyFelosztasResponse.SearchFeladatellatasihely,
            SearchFoglalkozasTipusa = tantargyFelosztasResponse.SearchFoglalkozasTipusa,
            ElfogadottTTF = tantargyFelosztasResponse.ElfogadottTTF,
            ElfogadottESL = tantargyFelosztasResponse.ElfogadottESL,
            VeglegesTTF = tantargyFelosztasResponse.VeglegesTTF,
            VeglegesESL = tantargyFelosztasResponse.VeglegesESL,
            VeglegesETTF = tantargyFelosztasResponse.VeglegesETTF,
            Islocked = tantargyFelosztasResponse.Islocked,
            StatusCode = tantargyFelosztasResponse.StatusCode,
            RegNumber = tantargyFelosztasResponse.RegNumber,
            StatusTitle = tantargyFelosztasResponse.StatusTitle,
            StatusText = tantargyFelosztasResponse.StatusText
        };
    }
}