53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Kreta.DataAccessManual.Interfaces;
|
|
using Kreta.Ellenorzo.Dao.VN.Ellenorzo;
|
|
using Kreta.Ellenorzo.Enums;
|
|
|
|
namespace Kreta.Ellenorzo.Domain.VN.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 int TanuloId { get; }
|
|
|
|
public int? GondviseloId { get; }
|
|
|
|
public IEnumerable<FelhasznaloSzerepkor> JogosultsagLista { get; }
|
|
|
|
public IDalHandler DalHandler { get; set; }
|
|
|
|
public string UserName { get; }
|
|
|
|
public Guid UserIdpUniqueId { get; }
|
|
|
|
public Guid StudentIdpUniqueId { get; }
|
|
|
|
public Guid InstituteUniqueId { get; }
|
|
|
|
public DefaultConnectionParameters(MobileUser mobileUser, IntezmenyAdatokDao intezmenyAdatok, string intezmenyAzonosito)
|
|
{
|
|
IntezmenyAzonosito = intezmenyAzonosito;
|
|
TanuloId = mobileUser.UserId;
|
|
GondviseloId = mobileUser.TutelaryId;
|
|
FelhasznaloId = GondviseloId ?? TanuloId;
|
|
JogosultsagLista = mobileUser.Roles;
|
|
UserName = mobileUser.UserName;
|
|
UserIdpUniqueId = mobileUser.UserIdpUniqueId;
|
|
StudentIdpUniqueId = mobileUser.StudentIdpUniqueId;
|
|
TanevId = intezmenyAdatok.TanevId;
|
|
TanevSorszam = intezmenyAdatok.TanevSorszam;
|
|
IntezmenyId = intezmenyAdatok.IntezmenyId;
|
|
InstituteUniqueId = mobileUser.InstituteUniqueId;
|
|
}
|
|
}
|
|
}
|