Esempio n. 1
0
 public GiftConditionInfo(GiftConditionType type,
                          ItemDateGiftType dateGiftType,
                          int itemDefinitionID,
                          bool inverse)
 {
     Type             = type;
     ItemDefinitionID = itemDefinitionID;
     DateGiftType     = dateGiftType;
     Inverse          = inverse;
 }
Esempio n. 2
0
        public GiftConditionInfo(GiftCondition giftCondition)
        {
            if (giftCondition == null)
            {
                throw new ArgumentNullException(nameof(giftCondition));
            }

            Type             = giftCondition.type;
            ItemDefinitionID = giftCondition.itemDefinition?.id ?? -1;
            DateGiftType     = giftCondition.dateGiftType;
            Inverse          = giftCondition.inverse;
        }