public GiftConditionInfo(GiftConditionType type, ItemDateGiftType dateGiftType, int itemDefinitionID, bool inverse) { Type = type; ItemDefinitionID = itemDefinitionID; DateGiftType = dateGiftType; Inverse = inverse; }
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; }