using System; namespace Kreta.Framework.Caching.DictionaryItemTables { /// /// Kódtétel osztály. /// [Serializable] public class ErtekelesModDictionaryItem : DictionaryItem { /// /// Az osztály konstruktora. /// /// Kódtétel elem public ErtekelesModDictionaryItem(DictionaryItem dictionaryItem) : base(dictionaryItem) { ExtendedProperties = dictionaryItem.ExtendedProperties; } #region Properties /// /// Félkövér-e az értékelés mód? /// public bool IsBold => (bool)ExtendedProperties[nameof(IsBold)]; /// /// Az értékelés mód számonkérés korlátozott-e? /// public bool IsSzamonkeresKorlatozott => (bool)ExtendedProperties[nameof(IsSzamonkeresKorlatozott)]; /// /// Az értékelés mód súlyozása /// public int Suly => (int)ExtendedProperties[nameof(Suly)]; #endregion } }