kreta/Kreta.WebApi/Naplo/Kreta.Naplo.Domain/V3/Common/DefaultConnectionParameters.cs
2024-03-13 00:33:46 +01:00

44 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using Kreta.DataAccessManual.Interfaces;
using Kreta.Naplo.Dao.V3.Naplo;
using Kreta.Naplo.Domain.V3.Enum;
namespace Kreta.Naplo.Domain.V3.Common
{
public class DefaultConnectionParameters
{
public string IntezmenyAzonosito { get; }
public int IntezmenyId { get; }
public int TanevId { get; }
public int TanevSorszam { get; }
public int FelhasznaloId { get; }
public IEnumerable<FelhasznaloSzerepkor> JogosultsagLista { get; }
public IDalHandler DalHandler { get; set; }
public string UserName { get; }
public Guid UserIdpUniqueId { get; }
public Guid InstituteUniqueId { get; }
public DefaultConnectionParameters(MobileUser mobileUser, IntezmenyAdatokDao intezmenyAdatok, string intezmenyAzonosito)
{
IntezmenyAzonosito = intezmenyAzonosito;
FelhasznaloId = mobileUser.UserId;
JogosultsagLista = mobileUser.Roles;
UserName = mobileUser.UserName;
UserIdpUniqueId = mobileUser.UserIdpUniqueId;
TanevId = intezmenyAdatok.TanevId;
TanevSorszam = intezmenyAdatok.TanevSorszam;
IntezmenyId = intezmenyAdatok.IntezmenyId;
InstituteUniqueId = mobileUser.InstituteUniqueId;
}
}
}