21 lines
665 B
C#
21 lines
665 B
C#
using System;
|
|
using Kreta.Ellenorzo.Domain.VN.Interfaces;
|
|
using Kreta.Ellenorzo.Domain.VN.Logic;
|
|
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
|
|
|
namespace Kreta.Ellenorzo.Domain.VN.HaziFeladat
|
|
{
|
|
public class HaziFeladatGetRequest : IRequestUidFilter<HaziFeladatUid>
|
|
{
|
|
public HaziFeladatGetRequest(string uidRaw = null)
|
|
{
|
|
Uid = UidLogic.GetUid(uidRaw, UidConverter);
|
|
}
|
|
|
|
public HaziFeladatUid Uid { get; set; }
|
|
|
|
public bool IsCallerGetOnlyOneItem { get; set; } = true;
|
|
|
|
public static readonly Converter<string[], HaziFeladatUid> UidConverter = uidRaw => new HaziFeladatUid(uidRaw[0]);
|
|
}
|
|
}
|